pactus-grpc 1.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Pactus blockchain
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.4
2
+ Name: pactus-grpc
3
+ Version: 1.7.2
4
+ Summary: gRPC client bindings for the Pactus blockchain
5
+ Home-page: https://github.com/pactus-project/pactus
6
+ Author: Pactus Development Team
7
+ Author-email: info@pactus.org
8
+ License: MIT
9
+ Keywords: pactus,blockchain,grpc
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Topic :: Software Development :: Build Tools
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.6
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: grpcio
18
+ Requires-Dist: protobuf
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: keywords
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: requires-dist
29
+ Dynamic: requires-python
30
+ Dynamic: summary
31
+
32
+ [![codecov](https://codecov.io/gh/pactus-project/pactus/branch/main/graph/badge.svg?token=8N6N60D5UI)](https://codecov.io/gh/pactus-project/pactus)
33
+ [![Go Report Card](https://goreportcard.com/badge/github.com/pactus-project/pactus)](https://goreportcard.com/report/github.com/pactus-project/pactus)
34
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/zPqWqV85ch)
35
+
36
+ ------
37
+
38
+ # Pactus Blockchain
39
+
40
+ A full-node implementation of the Pactus blockchain in Go.
41
+
42
+ ## Install
43
+
44
+ Please check the [install](./docs/install.md) document to build and run the Pactus blockchain.
45
+
46
+ ## Contribution
47
+
48
+ Contributions to the Pactus blockchain are appreciated.
49
+ Please read the [CONTRIBUTING](./CONTRIBUTING.md) guidelines before submitting a pull request or opening an issue.
50
+
51
+ ## License
52
+
53
+ The Pactus blockchain is under MIT [license](./LICENSE).
54
+
@@ -0,0 +1,23 @@
1
+ [![codecov](https://codecov.io/gh/pactus-project/pactus/branch/main/graph/badge.svg?token=8N6N60D5UI)](https://codecov.io/gh/pactus-project/pactus)
2
+ [![Go Report Card](https://goreportcard.com/badge/github.com/pactus-project/pactus)](https://goreportcard.com/report/github.com/pactus-project/pactus)
3
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/zPqWqV85ch)
4
+
5
+ ------
6
+
7
+ # Pactus Blockchain
8
+
9
+ A full-node implementation of the Pactus blockchain in Go.
10
+
11
+ ## Install
12
+
13
+ Please check the [install](./docs/install.md) document to build and run the Pactus blockchain.
14
+
15
+ ## Contribution
16
+
17
+ Contributions to the Pactus blockchain are appreciated.
18
+ Please read the [CONTRIBUTING](./CONTRIBUTING.md) guidelines before submitting a pull request or opening an issue.
19
+
20
+ ## License
21
+
22
+ The Pactus blockchain is under MIT [license](./LICENSE).
23
+
@@ -0,0 +1,3 @@
1
+ import os
2
+ import sys
3
+ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
@@ -0,0 +1,3 @@
1
+ import os
2
+ import sys
3
+ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
@@ -0,0 +1,87 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: blockchain.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ import transaction_pb2 as transaction__pb2
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x62lockchain.proto\x12\x06pactus\x1a\x11transaction.proto\"-\n\x11GetAccountRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"C\n\x12GetAccountResponse\x12-\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x13.pactus.AccountInfoR\x07\x61\x63\x63ount\"\x1e\n\x1cGetValidatorAddressesRequest\"=\n\x1dGetValidatorAddressesResponse\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\"/\n\x13GetValidatorRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"5\n\x1bGetValidatorByNumberRequest\x12\x16\n\x06number\x18\x01 \x01(\x05R\x06number\"K\n\x14GetValidatorResponse\x12\x33\n\tvalidator\x18\x01 \x01(\x0b\x32\x15.pactus.ValidatorInfoR\tvalidator\"/\n\x13GetPublicKeyRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"5\n\x14GetPublicKeyResponse\x12\x1d\n\npublic_key\x18\x01 \x01(\tR\tpublicKey\"_\n\x0fGetBlockRequest\x12\x16\n\x06height\x18\x01 \x01(\rR\x06height\x12\x34\n\tverbosity\x18\x02 \x01(\x0e\x32\x16.pactus.BlockVerbosityR\tverbosity\"\x83\x02\n\x10GetBlockResponse\x12\x16\n\x06height\x18\x01 \x01(\rR\x06height\x12\x12\n\x04hash\x18\x02 \x01(\tR\x04hash\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\tR\x04\x64\x61ta\x12\x1d\n\nblock_time\x18\x04 \x01(\rR\tblockTime\x12/\n\x06header\x18\x05 \x01(\x0b\x32\x17.pactus.BlockHeaderInfoR\x06header\x12\x34\n\tprev_cert\x18\x06 \x01(\x0b\x32\x17.pactus.CertificateInfoR\x08prevCert\x12)\n\x03txs\x18\x07 \x03(\x0b\x32\x17.pactus.TransactionInfoR\x03txs\"-\n\x13GetBlockHashRequest\x12\x16\n\x06height\x18\x01 \x01(\rR\x06height\"*\n\x14GetBlockHashResponse\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\"+\n\x15GetBlockHeightRequest\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\"0\n\x16GetBlockHeightResponse\x12\x16\n\x06height\x18\x01 \x01(\rR\x06height\"\x1a\n\x18GetBlockchainInfoRequest\"\xc1\x03\n\x19GetBlockchainInfoResponse\x12*\n\x11last_block_height\x18\x01 \x01(\rR\x0flastBlockHeight\x12&\n\x0flast_block_hash\x18\x02 \x01(\tR\rlastBlockHash\x12%\n\x0etotal_accounts\x18\x03 \x01(\x05R\rtotalAccounts\x12)\n\x10total_validators\x18\x04 \x01(\x05R\x0ftotalValidators\x12\x1f\n\x0btotal_power\x18\x05 \x01(\x03R\ntotalPower\x12\'\n\x0f\x63ommittee_power\x18\x06 \x01(\x03R\x0e\x63ommitteePower\x12H\n\x14\x63ommittee_validators\x18\x07 \x03(\x0b\x32\x15.pactus.ValidatorInfoR\x13\x63ommitteeValidators\x12\x1b\n\tis_pruned\x18\x08 \x01(\x08R\x08isPruned\x12%\n\x0epruning_height\x18\t \x01(\rR\rpruningHeight\x12&\n\x0flast_block_time\x18\n \x01(\x03R\rlastBlockTime\"\x19\n\x17GetConsensusInfoRequest\"\x81\x01\n\x18GetConsensusInfoResponse\x12\x30\n\x08proposal\x18\x01 \x01(\x0b\x32\x14.pactus.ProposalInfoR\x08proposal\x12\x33\n\tinstances\x18\x02 \x03(\x0b\x32\x15.pactus.ConsensusInfoR\tinstances\"Q\n\x17GetTxPoolContentRequest\x12\x36\n\x0cpayload_type\x18\x01 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\"E\n\x18GetTxPoolContentResponse\x12)\n\x03txs\x18\x01 \x03(\x0b\x32\x17.pactus.TransactionInfoR\x03txs\"\xdc\x02\n\rValidatorInfo\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\tR\x04\x64\x61ta\x12\x1d\n\npublic_key\x18\x03 \x01(\tR\tpublicKey\x12\x16\n\x06number\x18\x04 \x01(\x05R\x06number\x12\x14\n\x05stake\x18\x05 \x01(\x03R\x05stake\x12.\n\x13last_bonding_height\x18\x06 \x01(\rR\x11lastBondingHeight\x12\x32\n\x15last_sortition_height\x18\x07 \x01(\rR\x13lastSortitionHeight\x12)\n\x10unbonding_height\x18\x08 \x01(\rR\x0funbondingHeight\x12\x18\n\x07\x61\x64\x64ress\x18\t \x01(\tR\x07\x61\x64\x64ress\x12-\n\x12\x61vailability_score\x18\n \x01(\x01R\x11\x61vailabilityScore\"\x81\x01\n\x0b\x41\x63\x63ountInfo\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\tR\x04\x64\x61ta\x12\x16\n\x06number\x18\x03 \x01(\x05R\x06number\x12\x18\n\x07\x62\x61lance\x18\x04 \x01(\x03R\x07\x62\x61lance\x12\x18\n\x07\x61\x64\x64ress\x18\x05 \x01(\tR\x07\x61\x64\x64ress\"\xc4\x01\n\x0f\x42lockHeaderInfo\x12\x18\n\x07version\x18\x01 \x01(\x05R\x07version\x12&\n\x0fprev_block_hash\x18\x02 \x01(\tR\rprevBlockHash\x12\x1d\n\nstate_root\x18\x03 \x01(\tR\tstateRoot\x12%\n\x0esortition_seed\x18\x04 \x01(\tR\rsortitionSeed\x12)\n\x10proposer_address\x18\x05 \x01(\tR\x0fproposerAddress\"\x97\x01\n\x0f\x43\x65rtificateInfo\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x14\n\x05round\x18\x02 \x01(\x05R\x05round\x12\x1e\n\ncommitters\x18\x03 \x03(\x05R\ncommitters\x12\x1c\n\tabsentees\x18\x04 \x03(\x05R\tabsentees\x12\x1c\n\tsignature\x18\x05 \x01(\tR\tsignature\"\xb1\x01\n\x08VoteInfo\x12$\n\x04type\x18\x01 \x01(\x0e\x32\x10.pactus.VoteTypeR\x04type\x12\x14\n\x05voter\x18\x02 \x01(\tR\x05voter\x12\x1d\n\nblock_hash\x18\x03 \x01(\tR\tblockHash\x12\x14\n\x05round\x18\x04 \x01(\x05R\x05round\x12\x19\n\x08\x63p_round\x18\x05 \x01(\x05R\x07\x63pRound\x12\x19\n\x08\x63p_value\x18\x06 \x01(\x05R\x07\x63pValue\"\x97\x01\n\rConsensusInfo\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06\x61\x63tive\x18\x02 \x01(\x08R\x06\x61\x63tive\x12\x16\n\x06height\x18\x03 \x01(\rR\x06height\x12\x14\n\x05round\x18\x04 \x01(\x05R\x05round\x12&\n\x05votes\x18\x05 \x03(\x0b\x32\x10.pactus.VoteInfoR\x05votes\"y\n\x0cProposalInfo\x12\x16\n\x06height\x18\x01 \x01(\rR\x06height\x12\x14\n\x05round\x18\x02 \x01(\x05R\x05round\x12\x1d\n\nblock_data\x18\x03 \x01(\tR\tblockData\x12\x1c\n\tsignature\x18\x04 \x01(\tR\tsignature*H\n\x0e\x42lockVerbosity\x12\x0e\n\nBLOCK_DATA\x10\x00\x12\x0e\n\nBLOCK_INFO\x10\x01\x12\x16\n\x12\x42LOCK_TRANSACTIONS\x10\x02*\\\n\x08VoteType\x12\x10\n\x0cVOTE_UNKNOWN\x10\x00\x12\x10\n\x0cVOTE_PREPARE\x10\x01\x12\x12\n\x0eVOTE_PRECOMMIT\x10\x02\x12\x18\n\x14VOTE_CHANGE_PROPOSER\x10\x03\x32\x8b\x07\n\nBlockchain\x12=\n\x08GetBlock\x12\x17.pactus.GetBlockRequest\x1a\x18.pactus.GetBlockResponse\x12I\n\x0cGetBlockHash\x12\x1b.pactus.GetBlockHashRequest\x1a\x1c.pactus.GetBlockHashResponse\x12O\n\x0eGetBlockHeight\x12\x1d.pactus.GetBlockHeightRequest\x1a\x1e.pactus.GetBlockHeightResponse\x12X\n\x11GetBlockchainInfo\x12 .pactus.GetBlockchainInfoRequest\x1a!.pactus.GetBlockchainInfoResponse\x12U\n\x10GetConsensusInfo\x12\x1f.pactus.GetConsensusInfoRequest\x1a .pactus.GetConsensusInfoResponse\x12\x43\n\nGetAccount\x12\x19.pactus.GetAccountRequest\x1a\x1a.pactus.GetAccountResponse\x12I\n\x0cGetValidator\x12\x1b.pactus.GetValidatorRequest\x1a\x1c.pactus.GetValidatorResponse\x12Y\n\x14GetValidatorByNumber\x12#.pactus.GetValidatorByNumberRequest\x1a\x1c.pactus.GetValidatorResponse\x12\x64\n\x15GetValidatorAddresses\x12$.pactus.GetValidatorAddressesRequest\x1a%.pactus.GetValidatorAddressesResponse\x12I\n\x0cGetPublicKey\x12\x1b.pactus.GetPublicKeyRequest\x1a\x1c.pactus.GetPublicKeyResponse\x12U\n\x10GetTxPoolContent\x12\x1f.pactus.GetTxPoolContentRequest\x1a .pactus.GetTxPoolContentResponseBE\n\x11pactus.blockchainZ0github.com/pactus-project/pactus/www/grpc/pactusb\x06proto3')
18
+
19
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'blockchain_pb2', globals())
21
+ if _descriptor._USE_C_DESCRIPTORS == False:
22
+
23
+ DESCRIPTOR._options = None
24
+ DESCRIPTOR._serialized_options = b'\n\021pactus.blockchainZ0github.com/pactus-project/pactus/www/grpc/pactus'
25
+ _BLOCKVERBOSITY._serialized_start=3174
26
+ _BLOCKVERBOSITY._serialized_end=3246
27
+ _VOTETYPE._serialized_start=3248
28
+ _VOTETYPE._serialized_end=3340
29
+ _GETACCOUNTREQUEST._serialized_start=47
30
+ _GETACCOUNTREQUEST._serialized_end=92
31
+ _GETACCOUNTRESPONSE._serialized_start=94
32
+ _GETACCOUNTRESPONSE._serialized_end=161
33
+ _GETVALIDATORADDRESSESREQUEST._serialized_start=163
34
+ _GETVALIDATORADDRESSESREQUEST._serialized_end=193
35
+ _GETVALIDATORADDRESSESRESPONSE._serialized_start=195
36
+ _GETVALIDATORADDRESSESRESPONSE._serialized_end=256
37
+ _GETVALIDATORREQUEST._serialized_start=258
38
+ _GETVALIDATORREQUEST._serialized_end=305
39
+ _GETVALIDATORBYNUMBERREQUEST._serialized_start=307
40
+ _GETVALIDATORBYNUMBERREQUEST._serialized_end=360
41
+ _GETVALIDATORRESPONSE._serialized_start=362
42
+ _GETVALIDATORRESPONSE._serialized_end=437
43
+ _GETPUBLICKEYREQUEST._serialized_start=439
44
+ _GETPUBLICKEYREQUEST._serialized_end=486
45
+ _GETPUBLICKEYRESPONSE._serialized_start=488
46
+ _GETPUBLICKEYRESPONSE._serialized_end=541
47
+ _GETBLOCKREQUEST._serialized_start=543
48
+ _GETBLOCKREQUEST._serialized_end=638
49
+ _GETBLOCKRESPONSE._serialized_start=641
50
+ _GETBLOCKRESPONSE._serialized_end=900
51
+ _GETBLOCKHASHREQUEST._serialized_start=902
52
+ _GETBLOCKHASHREQUEST._serialized_end=947
53
+ _GETBLOCKHASHRESPONSE._serialized_start=949
54
+ _GETBLOCKHASHRESPONSE._serialized_end=991
55
+ _GETBLOCKHEIGHTREQUEST._serialized_start=993
56
+ _GETBLOCKHEIGHTREQUEST._serialized_end=1036
57
+ _GETBLOCKHEIGHTRESPONSE._serialized_start=1038
58
+ _GETBLOCKHEIGHTRESPONSE._serialized_end=1086
59
+ _GETBLOCKCHAININFOREQUEST._serialized_start=1088
60
+ _GETBLOCKCHAININFOREQUEST._serialized_end=1114
61
+ _GETBLOCKCHAININFORESPONSE._serialized_start=1117
62
+ _GETBLOCKCHAININFORESPONSE._serialized_end=1566
63
+ _GETCONSENSUSINFOREQUEST._serialized_start=1568
64
+ _GETCONSENSUSINFOREQUEST._serialized_end=1593
65
+ _GETCONSENSUSINFORESPONSE._serialized_start=1596
66
+ _GETCONSENSUSINFORESPONSE._serialized_end=1725
67
+ _GETTXPOOLCONTENTREQUEST._serialized_start=1727
68
+ _GETTXPOOLCONTENTREQUEST._serialized_end=1808
69
+ _GETTXPOOLCONTENTRESPONSE._serialized_start=1810
70
+ _GETTXPOOLCONTENTRESPONSE._serialized_end=1879
71
+ _VALIDATORINFO._serialized_start=1882
72
+ _VALIDATORINFO._serialized_end=2230
73
+ _ACCOUNTINFO._serialized_start=2233
74
+ _ACCOUNTINFO._serialized_end=2362
75
+ _BLOCKHEADERINFO._serialized_start=2365
76
+ _BLOCKHEADERINFO._serialized_end=2561
77
+ _CERTIFICATEINFO._serialized_start=2564
78
+ _CERTIFICATEINFO._serialized_end=2715
79
+ _VOTEINFO._serialized_start=2718
80
+ _VOTEINFO._serialized_end=2895
81
+ _CONSENSUSINFO._serialized_start=2898
82
+ _CONSENSUSINFO._serialized_end=3049
83
+ _PROPOSALINFO._serialized_start=3051
84
+ _PROPOSALINFO._serialized_end=3172
85
+ _BLOCKCHAIN._serialized_start=3343
86
+ _BLOCKCHAIN._serialized_end=4250
87
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,290 @@
1
+ import transaction_pb2 as _transaction_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class BlockVerbosity(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
+ __slots__ = ()
12
+ BLOCK_DATA: _ClassVar[BlockVerbosity]
13
+ BLOCK_INFO: _ClassVar[BlockVerbosity]
14
+ BLOCK_TRANSACTIONS: _ClassVar[BlockVerbosity]
15
+
16
+ class VoteType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
17
+ __slots__ = ()
18
+ VOTE_UNKNOWN: _ClassVar[VoteType]
19
+ VOTE_PREPARE: _ClassVar[VoteType]
20
+ VOTE_PRECOMMIT: _ClassVar[VoteType]
21
+ VOTE_CHANGE_PROPOSER: _ClassVar[VoteType]
22
+ BLOCK_DATA: BlockVerbosity
23
+ BLOCK_INFO: BlockVerbosity
24
+ BLOCK_TRANSACTIONS: BlockVerbosity
25
+ VOTE_UNKNOWN: VoteType
26
+ VOTE_PREPARE: VoteType
27
+ VOTE_PRECOMMIT: VoteType
28
+ VOTE_CHANGE_PROPOSER: VoteType
29
+
30
+ class GetAccountRequest(_message.Message):
31
+ __slots__ = ("address",)
32
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
33
+ address: str
34
+ def __init__(self, address: _Optional[str] = ...) -> None: ...
35
+
36
+ class GetAccountResponse(_message.Message):
37
+ __slots__ = ("account",)
38
+ ACCOUNT_FIELD_NUMBER: _ClassVar[int]
39
+ account: AccountInfo
40
+ def __init__(self, account: _Optional[_Union[AccountInfo, _Mapping]] = ...) -> None: ...
41
+
42
+ class GetValidatorAddressesRequest(_message.Message):
43
+ __slots__ = ()
44
+ def __init__(self) -> None: ...
45
+
46
+ class GetValidatorAddressesResponse(_message.Message):
47
+ __slots__ = ("addresses",)
48
+ ADDRESSES_FIELD_NUMBER: _ClassVar[int]
49
+ addresses: _containers.RepeatedScalarFieldContainer[str]
50
+ def __init__(self, addresses: _Optional[_Iterable[str]] = ...) -> None: ...
51
+
52
+ class GetValidatorRequest(_message.Message):
53
+ __slots__ = ("address",)
54
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
55
+ address: str
56
+ def __init__(self, address: _Optional[str] = ...) -> None: ...
57
+
58
+ class GetValidatorByNumberRequest(_message.Message):
59
+ __slots__ = ("number",)
60
+ NUMBER_FIELD_NUMBER: _ClassVar[int]
61
+ number: int
62
+ def __init__(self, number: _Optional[int] = ...) -> None: ...
63
+
64
+ class GetValidatorResponse(_message.Message):
65
+ __slots__ = ("validator",)
66
+ VALIDATOR_FIELD_NUMBER: _ClassVar[int]
67
+ validator: ValidatorInfo
68
+ def __init__(self, validator: _Optional[_Union[ValidatorInfo, _Mapping]] = ...) -> None: ...
69
+
70
+ class GetPublicKeyRequest(_message.Message):
71
+ __slots__ = ("address",)
72
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
73
+ address: str
74
+ def __init__(self, address: _Optional[str] = ...) -> None: ...
75
+
76
+ class GetPublicKeyResponse(_message.Message):
77
+ __slots__ = ("public_key",)
78
+ PUBLIC_KEY_FIELD_NUMBER: _ClassVar[int]
79
+ public_key: str
80
+ def __init__(self, public_key: _Optional[str] = ...) -> None: ...
81
+
82
+ class GetBlockRequest(_message.Message):
83
+ __slots__ = ("height", "verbosity")
84
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
85
+ VERBOSITY_FIELD_NUMBER: _ClassVar[int]
86
+ height: int
87
+ verbosity: BlockVerbosity
88
+ def __init__(self, height: _Optional[int] = ..., verbosity: _Optional[_Union[BlockVerbosity, str]] = ...) -> None: ...
89
+
90
+ class GetBlockResponse(_message.Message):
91
+ __slots__ = ("height", "hash", "data", "block_time", "header", "prev_cert", "txs")
92
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
93
+ HASH_FIELD_NUMBER: _ClassVar[int]
94
+ DATA_FIELD_NUMBER: _ClassVar[int]
95
+ BLOCK_TIME_FIELD_NUMBER: _ClassVar[int]
96
+ HEADER_FIELD_NUMBER: _ClassVar[int]
97
+ PREV_CERT_FIELD_NUMBER: _ClassVar[int]
98
+ TXS_FIELD_NUMBER: _ClassVar[int]
99
+ height: int
100
+ hash: str
101
+ data: str
102
+ block_time: int
103
+ header: BlockHeaderInfo
104
+ prev_cert: CertificateInfo
105
+ txs: _containers.RepeatedCompositeFieldContainer[_transaction_pb2.TransactionInfo]
106
+ def __init__(self, height: _Optional[int] = ..., hash: _Optional[str] = ..., data: _Optional[str] = ..., block_time: _Optional[int] = ..., header: _Optional[_Union[BlockHeaderInfo, _Mapping]] = ..., prev_cert: _Optional[_Union[CertificateInfo, _Mapping]] = ..., txs: _Optional[_Iterable[_Union[_transaction_pb2.TransactionInfo, _Mapping]]] = ...) -> None: ...
107
+
108
+ class GetBlockHashRequest(_message.Message):
109
+ __slots__ = ("height",)
110
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
111
+ height: int
112
+ def __init__(self, height: _Optional[int] = ...) -> None: ...
113
+
114
+ class GetBlockHashResponse(_message.Message):
115
+ __slots__ = ("hash",)
116
+ HASH_FIELD_NUMBER: _ClassVar[int]
117
+ hash: str
118
+ def __init__(self, hash: _Optional[str] = ...) -> None: ...
119
+
120
+ class GetBlockHeightRequest(_message.Message):
121
+ __slots__ = ("hash",)
122
+ HASH_FIELD_NUMBER: _ClassVar[int]
123
+ hash: str
124
+ def __init__(self, hash: _Optional[str] = ...) -> None: ...
125
+
126
+ class GetBlockHeightResponse(_message.Message):
127
+ __slots__ = ("height",)
128
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
129
+ height: int
130
+ def __init__(self, height: _Optional[int] = ...) -> None: ...
131
+
132
+ class GetBlockchainInfoRequest(_message.Message):
133
+ __slots__ = ()
134
+ def __init__(self) -> None: ...
135
+
136
+ class GetBlockchainInfoResponse(_message.Message):
137
+ __slots__ = ("last_block_height", "last_block_hash", "total_accounts", "total_validators", "total_power", "committee_power", "committee_validators", "is_pruned", "pruning_height", "last_block_time")
138
+ LAST_BLOCK_HEIGHT_FIELD_NUMBER: _ClassVar[int]
139
+ LAST_BLOCK_HASH_FIELD_NUMBER: _ClassVar[int]
140
+ TOTAL_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
141
+ TOTAL_VALIDATORS_FIELD_NUMBER: _ClassVar[int]
142
+ TOTAL_POWER_FIELD_NUMBER: _ClassVar[int]
143
+ COMMITTEE_POWER_FIELD_NUMBER: _ClassVar[int]
144
+ COMMITTEE_VALIDATORS_FIELD_NUMBER: _ClassVar[int]
145
+ IS_PRUNED_FIELD_NUMBER: _ClassVar[int]
146
+ PRUNING_HEIGHT_FIELD_NUMBER: _ClassVar[int]
147
+ LAST_BLOCK_TIME_FIELD_NUMBER: _ClassVar[int]
148
+ last_block_height: int
149
+ last_block_hash: str
150
+ total_accounts: int
151
+ total_validators: int
152
+ total_power: int
153
+ committee_power: int
154
+ committee_validators: _containers.RepeatedCompositeFieldContainer[ValidatorInfo]
155
+ is_pruned: bool
156
+ pruning_height: int
157
+ last_block_time: int
158
+ def __init__(self, last_block_height: _Optional[int] = ..., last_block_hash: _Optional[str] = ..., total_accounts: _Optional[int] = ..., total_validators: _Optional[int] = ..., total_power: _Optional[int] = ..., committee_power: _Optional[int] = ..., committee_validators: _Optional[_Iterable[_Union[ValidatorInfo, _Mapping]]] = ..., is_pruned: bool = ..., pruning_height: _Optional[int] = ..., last_block_time: _Optional[int] = ...) -> None: ...
159
+
160
+ class GetConsensusInfoRequest(_message.Message):
161
+ __slots__ = ()
162
+ def __init__(self) -> None: ...
163
+
164
+ class GetConsensusInfoResponse(_message.Message):
165
+ __slots__ = ("proposal", "instances")
166
+ PROPOSAL_FIELD_NUMBER: _ClassVar[int]
167
+ INSTANCES_FIELD_NUMBER: _ClassVar[int]
168
+ proposal: ProposalInfo
169
+ instances: _containers.RepeatedCompositeFieldContainer[ConsensusInfo]
170
+ def __init__(self, proposal: _Optional[_Union[ProposalInfo, _Mapping]] = ..., instances: _Optional[_Iterable[_Union[ConsensusInfo, _Mapping]]] = ...) -> None: ...
171
+
172
+ class GetTxPoolContentRequest(_message.Message):
173
+ __slots__ = ("payload_type",)
174
+ PAYLOAD_TYPE_FIELD_NUMBER: _ClassVar[int]
175
+ payload_type: _transaction_pb2.PayloadType
176
+ def __init__(self, payload_type: _Optional[_Union[_transaction_pb2.PayloadType, str]] = ...) -> None: ...
177
+
178
+ class GetTxPoolContentResponse(_message.Message):
179
+ __slots__ = ("txs",)
180
+ TXS_FIELD_NUMBER: _ClassVar[int]
181
+ txs: _containers.RepeatedCompositeFieldContainer[_transaction_pb2.TransactionInfo]
182
+ def __init__(self, txs: _Optional[_Iterable[_Union[_transaction_pb2.TransactionInfo, _Mapping]]] = ...) -> None: ...
183
+
184
+ class ValidatorInfo(_message.Message):
185
+ __slots__ = ("hash", "data", "public_key", "number", "stake", "last_bonding_height", "last_sortition_height", "unbonding_height", "address", "availability_score")
186
+ HASH_FIELD_NUMBER: _ClassVar[int]
187
+ DATA_FIELD_NUMBER: _ClassVar[int]
188
+ PUBLIC_KEY_FIELD_NUMBER: _ClassVar[int]
189
+ NUMBER_FIELD_NUMBER: _ClassVar[int]
190
+ STAKE_FIELD_NUMBER: _ClassVar[int]
191
+ LAST_BONDING_HEIGHT_FIELD_NUMBER: _ClassVar[int]
192
+ LAST_SORTITION_HEIGHT_FIELD_NUMBER: _ClassVar[int]
193
+ UNBONDING_HEIGHT_FIELD_NUMBER: _ClassVar[int]
194
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
195
+ AVAILABILITY_SCORE_FIELD_NUMBER: _ClassVar[int]
196
+ hash: str
197
+ data: str
198
+ public_key: str
199
+ number: int
200
+ stake: int
201
+ last_bonding_height: int
202
+ last_sortition_height: int
203
+ unbonding_height: int
204
+ address: str
205
+ availability_score: float
206
+ def __init__(self, hash: _Optional[str] = ..., data: _Optional[str] = ..., public_key: _Optional[str] = ..., number: _Optional[int] = ..., stake: _Optional[int] = ..., last_bonding_height: _Optional[int] = ..., last_sortition_height: _Optional[int] = ..., unbonding_height: _Optional[int] = ..., address: _Optional[str] = ..., availability_score: _Optional[float] = ...) -> None: ...
207
+
208
+ class AccountInfo(_message.Message):
209
+ __slots__ = ("hash", "data", "number", "balance", "address")
210
+ HASH_FIELD_NUMBER: _ClassVar[int]
211
+ DATA_FIELD_NUMBER: _ClassVar[int]
212
+ NUMBER_FIELD_NUMBER: _ClassVar[int]
213
+ BALANCE_FIELD_NUMBER: _ClassVar[int]
214
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
215
+ hash: str
216
+ data: str
217
+ number: int
218
+ balance: int
219
+ address: str
220
+ def __init__(self, hash: _Optional[str] = ..., data: _Optional[str] = ..., number: _Optional[int] = ..., balance: _Optional[int] = ..., address: _Optional[str] = ...) -> None: ...
221
+
222
+ class BlockHeaderInfo(_message.Message):
223
+ __slots__ = ("version", "prev_block_hash", "state_root", "sortition_seed", "proposer_address")
224
+ VERSION_FIELD_NUMBER: _ClassVar[int]
225
+ PREV_BLOCK_HASH_FIELD_NUMBER: _ClassVar[int]
226
+ STATE_ROOT_FIELD_NUMBER: _ClassVar[int]
227
+ SORTITION_SEED_FIELD_NUMBER: _ClassVar[int]
228
+ PROPOSER_ADDRESS_FIELD_NUMBER: _ClassVar[int]
229
+ version: int
230
+ prev_block_hash: str
231
+ state_root: str
232
+ sortition_seed: str
233
+ proposer_address: str
234
+ def __init__(self, version: _Optional[int] = ..., prev_block_hash: _Optional[str] = ..., state_root: _Optional[str] = ..., sortition_seed: _Optional[str] = ..., proposer_address: _Optional[str] = ...) -> None: ...
235
+
236
+ class CertificateInfo(_message.Message):
237
+ __slots__ = ("hash", "round", "committers", "absentees", "signature")
238
+ HASH_FIELD_NUMBER: _ClassVar[int]
239
+ ROUND_FIELD_NUMBER: _ClassVar[int]
240
+ COMMITTERS_FIELD_NUMBER: _ClassVar[int]
241
+ ABSENTEES_FIELD_NUMBER: _ClassVar[int]
242
+ SIGNATURE_FIELD_NUMBER: _ClassVar[int]
243
+ hash: str
244
+ round: int
245
+ committers: _containers.RepeatedScalarFieldContainer[int]
246
+ absentees: _containers.RepeatedScalarFieldContainer[int]
247
+ signature: str
248
+ def __init__(self, hash: _Optional[str] = ..., round: _Optional[int] = ..., committers: _Optional[_Iterable[int]] = ..., absentees: _Optional[_Iterable[int]] = ..., signature: _Optional[str] = ...) -> None: ...
249
+
250
+ class VoteInfo(_message.Message):
251
+ __slots__ = ("type", "voter", "block_hash", "round", "cp_round", "cp_value")
252
+ TYPE_FIELD_NUMBER: _ClassVar[int]
253
+ VOTER_FIELD_NUMBER: _ClassVar[int]
254
+ BLOCK_HASH_FIELD_NUMBER: _ClassVar[int]
255
+ ROUND_FIELD_NUMBER: _ClassVar[int]
256
+ CP_ROUND_FIELD_NUMBER: _ClassVar[int]
257
+ CP_VALUE_FIELD_NUMBER: _ClassVar[int]
258
+ type: VoteType
259
+ voter: str
260
+ block_hash: str
261
+ round: int
262
+ cp_round: int
263
+ cp_value: int
264
+ def __init__(self, type: _Optional[_Union[VoteType, str]] = ..., voter: _Optional[str] = ..., block_hash: _Optional[str] = ..., round: _Optional[int] = ..., cp_round: _Optional[int] = ..., cp_value: _Optional[int] = ...) -> None: ...
265
+
266
+ class ConsensusInfo(_message.Message):
267
+ __slots__ = ("address", "active", "height", "round", "votes")
268
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
269
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
270
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
271
+ ROUND_FIELD_NUMBER: _ClassVar[int]
272
+ VOTES_FIELD_NUMBER: _ClassVar[int]
273
+ address: str
274
+ active: bool
275
+ height: int
276
+ round: int
277
+ votes: _containers.RepeatedCompositeFieldContainer[VoteInfo]
278
+ def __init__(self, address: _Optional[str] = ..., active: bool = ..., height: _Optional[int] = ..., round: _Optional[int] = ..., votes: _Optional[_Iterable[_Union[VoteInfo, _Mapping]]] = ...) -> None: ...
279
+
280
+ class ProposalInfo(_message.Message):
281
+ __slots__ = ("height", "round", "block_data", "signature")
282
+ HEIGHT_FIELD_NUMBER: _ClassVar[int]
283
+ ROUND_FIELD_NUMBER: _ClassVar[int]
284
+ BLOCK_DATA_FIELD_NUMBER: _ClassVar[int]
285
+ SIGNATURE_FIELD_NUMBER: _ClassVar[int]
286
+ height: int
287
+ round: int
288
+ block_data: str
289
+ signature: str
290
+ def __init__(self, height: _Optional[int] = ..., round: _Optional[int] = ..., block_data: _Optional[str] = ..., signature: _Optional[str] = ...) -> None: ...