pactus-jsonrpc 1.7.4__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.
- pactus_jsonrpc-1.7.4/LICENSE +21 -0
- pactus_jsonrpc-1.7.4/PKG-INFO +55 -0
- pactus_jsonrpc-1.7.4/README.md +23 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc/__init__.py +0 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc/client.py +245 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc/models.py +8 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc.egg-info/PKG-INFO +55 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc.egg-info/SOURCES.txt +12 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc.egg-info/dependency_links.txt +1 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc.egg-info/requires.txt +3 -0
- pactus_jsonrpc-1.7.4/pactus_jsonrpc.egg-info/top_level.txt +1 -0
- pactus_jsonrpc-1.7.4/pyproject.toml +3 -0
- pactus_jsonrpc-1.7.4/setup.cfg +4 -0
- pactus_jsonrpc-1.7.4/setup.py +29 -0
|
@@ -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,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pactus-jsonrpc
|
|
3
|
+
Version: 1.7.4
|
|
4
|
+
Summary: Python client for interacting with the Pactus blockchain via JSON-RPC
|
|
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,json-rpc
|
|
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: jsonrpc2-pyclient>=5.2.0
|
|
18
|
+
Requires-Dist: py-undefined>=0.1.5
|
|
19
|
+
Requires-Dist: pydantic>=2.5.3
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: keywords
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
[](https://codecov.io/gh/pactus-project/pactus)
|
|
34
|
+
[](https://goreportcard.com/report/github.com/pactus-project/pactus)
|
|
35
|
+
[](https://discord.gg/zPqWqV85ch)
|
|
36
|
+
|
|
37
|
+
------
|
|
38
|
+
|
|
39
|
+
# Pactus Blockchain
|
|
40
|
+
|
|
41
|
+
A full-node implementation of the Pactus blockchain in Go.
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
Please check the [install](./docs/install.md) document to build and run the Pactus blockchain.
|
|
46
|
+
|
|
47
|
+
## Contribution
|
|
48
|
+
|
|
49
|
+
Contributions to the Pactus blockchain are appreciated.
|
|
50
|
+
Please read the [CONTRIBUTING](./CONTRIBUTING.md) guidelines before submitting a pull request or opening an issue.
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
The Pactus blockchain is under MIT [license](./LICENSE).
|
|
55
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[](https://codecov.io/gh/pactus-project/pactus)
|
|
2
|
+
[](https://goreportcard.com/report/github.com/pactus-project/pactus)
|
|
3
|
+
[](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
|
+
|
|
File without changes
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"""Python client template."""
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
from typing import Any, Literal, Union
|
|
5
|
+
from uuid import UUID
|
|
6
|
+
|
|
7
|
+
from jsonrpc2pyclient.decorator import Transportable, rpc_class_method
|
|
8
|
+
from jsonrpc2pyclient.httpclient import AsyncRPCHTTPClient
|
|
9
|
+
from jsonrpc2pyclient.rpcclient import AsyncRPCClient, RPCClient
|
|
10
|
+
from py_undefined import Undefined
|
|
11
|
+
from pydantic import UUID1, UUID3, UUID4, UUID5
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
ClientType = Union[AsyncRPCClient, RPCClient]
|
|
15
|
+
CLIENT_URL = "example.com"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class PactusOpenRPCClient(Transportable):
|
|
19
|
+
def __init__(self, headers: dict[str, Any], **kwargs: Any) -> None:
|
|
20
|
+
transport = AsyncRPCHTTPClient(CLIENT_URL, headers, **kwargs)
|
|
21
|
+
self.pactus = PactusOpenRPCClient._PactusClient(transport)
|
|
22
|
+
super().__init__(transport)
|
|
23
|
+
|
|
24
|
+
class _PactusClient(Transportable):
|
|
25
|
+
def __init__(self, transport: ClientType) -> None:
|
|
26
|
+
self.transaction = PactusOpenRPCClient._PactusClient._TransactionClient(
|
|
27
|
+
transport
|
|
28
|
+
)
|
|
29
|
+
self.blockchain = PactusOpenRPCClient._PactusClient._BlockchainClient(
|
|
30
|
+
transport
|
|
31
|
+
)
|
|
32
|
+
self.network = PactusOpenRPCClient._PactusClient._NetworkClient(transport)
|
|
33
|
+
self.utils = PactusOpenRPCClient._PactusClient._UtilsClient(transport)
|
|
34
|
+
self.wallet = PactusOpenRPCClient._PactusClient._WalletClient(transport)
|
|
35
|
+
super().__init__(transport)
|
|
36
|
+
|
|
37
|
+
class _TransactionClient(Transportable):
|
|
38
|
+
@rpc_class_method(method_name="pactus.transaction.get_transaction")
|
|
39
|
+
async def get_transaction(
|
|
40
|
+
self, id: str = Undefined, verbosity: int = Undefined
|
|
41
|
+
) -> dict[str, Any]: ...
|
|
42
|
+
@rpc_class_method(method_name="pactus.transaction.calculate_fee")
|
|
43
|
+
async def calculate_fee(
|
|
44
|
+
self,
|
|
45
|
+
amount: int = Undefined,
|
|
46
|
+
payload_type: int = Undefined,
|
|
47
|
+
fixed_amount: bool = Undefined,
|
|
48
|
+
) -> dict[str, Any]: ...
|
|
49
|
+
@rpc_class_method(method_name="pactus.transaction.broadcast_transaction")
|
|
50
|
+
async def broadcast_transaction(
|
|
51
|
+
self, signed_raw_transaction: str = Undefined
|
|
52
|
+
) -> dict[str, Any]: ...
|
|
53
|
+
@rpc_class_method(
|
|
54
|
+
method_name="pactus.transaction.get_raw_transfer_transaction"
|
|
55
|
+
)
|
|
56
|
+
async def get_raw_transfer_transaction(
|
|
57
|
+
self,
|
|
58
|
+
lock_time: int = Undefined,
|
|
59
|
+
sender: str = Undefined,
|
|
60
|
+
receiver: str = Undefined,
|
|
61
|
+
amount: int = Undefined,
|
|
62
|
+
fee: int = Undefined,
|
|
63
|
+
memo: str = Undefined,
|
|
64
|
+
) -> dict[str, Any]: ...
|
|
65
|
+
@rpc_class_method(method_name="pactus.transaction.get_raw_bond_transaction")
|
|
66
|
+
async def get_raw_bond_transaction(
|
|
67
|
+
self,
|
|
68
|
+
lock_time: int = Undefined,
|
|
69
|
+
sender: str = Undefined,
|
|
70
|
+
receiver: str = Undefined,
|
|
71
|
+
stake: int = Undefined,
|
|
72
|
+
public_key: str = Undefined,
|
|
73
|
+
fee: int = Undefined,
|
|
74
|
+
memo: str = Undefined,
|
|
75
|
+
) -> dict[str, Any]: ...
|
|
76
|
+
@rpc_class_method(
|
|
77
|
+
method_name="pactus.transaction.get_raw_unbond_transaction"
|
|
78
|
+
)
|
|
79
|
+
async def get_raw_unbond_transaction(
|
|
80
|
+
self,
|
|
81
|
+
lock_time: int = Undefined,
|
|
82
|
+
validator_address: str = Undefined,
|
|
83
|
+
memo: str = Undefined,
|
|
84
|
+
) -> dict[str, Any]: ...
|
|
85
|
+
@rpc_class_method(
|
|
86
|
+
method_name="pactus.transaction.get_raw_withdraw_transaction"
|
|
87
|
+
)
|
|
88
|
+
async def get_raw_withdraw_transaction(
|
|
89
|
+
self,
|
|
90
|
+
lock_time: int = Undefined,
|
|
91
|
+
validator_address: str = Undefined,
|
|
92
|
+
account_address: str = Undefined,
|
|
93
|
+
amount: int = Undefined,
|
|
94
|
+
fee: int = Undefined,
|
|
95
|
+
memo: str = Undefined,
|
|
96
|
+
) -> dict[str, Any]: ...
|
|
97
|
+
|
|
98
|
+
class _BlockchainClient(Transportable):
|
|
99
|
+
@rpc_class_method(method_name="pactus.blockchain.get_block")
|
|
100
|
+
async def get_block(
|
|
101
|
+
self, height: int = Undefined, verbosity: int = Undefined
|
|
102
|
+
) -> dict[str, Any]: ...
|
|
103
|
+
@rpc_class_method(method_name="pactus.blockchain.get_block_hash")
|
|
104
|
+
async def get_block_hash(
|
|
105
|
+
self, height: int = Undefined
|
|
106
|
+
) -> dict[str, Any]: ...
|
|
107
|
+
@rpc_class_method(method_name="pactus.blockchain.get_block_height")
|
|
108
|
+
async def get_block_height(
|
|
109
|
+
self, hash: str = Undefined
|
|
110
|
+
) -> dict[str, Any]: ...
|
|
111
|
+
@rpc_class_method(method_name="pactus.blockchain.get_blockchain_info")
|
|
112
|
+
async def get_blockchain_info(self) -> dict[str, Any]: ...
|
|
113
|
+
@rpc_class_method(method_name="pactus.blockchain.get_consensus_info")
|
|
114
|
+
async def get_consensus_info(self) -> dict[str, Any]: ...
|
|
115
|
+
@rpc_class_method(method_name="pactus.blockchain.get_account")
|
|
116
|
+
async def get_account(self, address: str = Undefined) -> dict[str, Any]: ...
|
|
117
|
+
@rpc_class_method(method_name="pactus.blockchain.get_validator")
|
|
118
|
+
async def get_validator(
|
|
119
|
+
self, address: str = Undefined
|
|
120
|
+
) -> dict[str, Any]: ...
|
|
121
|
+
@rpc_class_method(method_name="pactus.blockchain.get_validator_by_number")
|
|
122
|
+
async def get_validator_by_number(
|
|
123
|
+
self, number: int = Undefined
|
|
124
|
+
) -> dict[str, Any]: ...
|
|
125
|
+
@rpc_class_method(method_name="pactus.blockchain.get_validator_addresses")
|
|
126
|
+
async def get_validator_addresses(self) -> dict[str, Any]: ...
|
|
127
|
+
@rpc_class_method(method_name="pactus.blockchain.get_public_key")
|
|
128
|
+
async def get_public_key(
|
|
129
|
+
self, address: str = Undefined
|
|
130
|
+
) -> dict[str, Any]: ...
|
|
131
|
+
@rpc_class_method(method_name="pactus.blockchain.get_tx_pool_content")
|
|
132
|
+
async def get_tx_pool_content(
|
|
133
|
+
self, payload_type: int = Undefined
|
|
134
|
+
) -> dict[str, Any]: ...
|
|
135
|
+
|
|
136
|
+
class _NetworkClient(Transportable):
|
|
137
|
+
@rpc_class_method(method_name="pactus.network.get_network_info")
|
|
138
|
+
async def get_network_info(
|
|
139
|
+
self, only_connected: bool = Undefined
|
|
140
|
+
) -> dict[str, Any]: ...
|
|
141
|
+
@rpc_class_method(method_name="pactus.network.get_node_info")
|
|
142
|
+
async def get_node_info(self) -> dict[str, Any]: ...
|
|
143
|
+
|
|
144
|
+
class _UtilsClient(Transportable):
|
|
145
|
+
@rpc_class_method(method_name="pactus.utils.sign_message_with_private_key")
|
|
146
|
+
async def sign_message_with_private_key(
|
|
147
|
+
self, private_key: str = Undefined, message: str = Undefined
|
|
148
|
+
) -> dict[str, Any]: ...
|
|
149
|
+
@rpc_class_method(method_name="pactus.utils.verify_message")
|
|
150
|
+
async def verify_message(
|
|
151
|
+
self,
|
|
152
|
+
message: str = Undefined,
|
|
153
|
+
signature: str = Undefined,
|
|
154
|
+
public_key: str = Undefined,
|
|
155
|
+
) -> dict[str, Any]: ...
|
|
156
|
+
@rpc_class_method(method_name="pactus.utils.b_l_s_public_key_aggregation")
|
|
157
|
+
async def b_l_s_public_key_aggregation(
|
|
158
|
+
self, public_keys: list[str] = Undefined
|
|
159
|
+
) -> dict[str, Any]: ...
|
|
160
|
+
@rpc_class_method(method_name="pactus.utils.b_l_s_signature_aggregation")
|
|
161
|
+
async def b_l_s_signature_aggregation(
|
|
162
|
+
self, signatures: list[str] = Undefined
|
|
163
|
+
) -> dict[str, Any]: ...
|
|
164
|
+
|
|
165
|
+
class _WalletClient(Transportable):
|
|
166
|
+
@rpc_class_method(method_name="pactus.wallet.create_wallet")
|
|
167
|
+
async def create_wallet(
|
|
168
|
+
self, wallet_name: str = Undefined, password: str = Undefined
|
|
169
|
+
) -> dict[str, Any]: ...
|
|
170
|
+
@rpc_class_method(method_name="pactus.wallet.restore_wallet")
|
|
171
|
+
async def restore_wallet(
|
|
172
|
+
self,
|
|
173
|
+
wallet_name: str = Undefined,
|
|
174
|
+
mnemonic: str = Undefined,
|
|
175
|
+
password: str = Undefined,
|
|
176
|
+
) -> dict[str, Any]: ...
|
|
177
|
+
@rpc_class_method(method_name="pactus.wallet.load_wallet")
|
|
178
|
+
async def load_wallet(
|
|
179
|
+
self, wallet_name: str = Undefined
|
|
180
|
+
) -> dict[str, Any]: ...
|
|
181
|
+
@rpc_class_method(method_name="pactus.wallet.unload_wallet")
|
|
182
|
+
async def unload_wallet(
|
|
183
|
+
self, wallet_name: str = Undefined
|
|
184
|
+
) -> dict[str, Any]: ...
|
|
185
|
+
@rpc_class_method(method_name="pactus.wallet.get_total_balance")
|
|
186
|
+
async def get_total_balance(
|
|
187
|
+
self, wallet_name: str = Undefined
|
|
188
|
+
) -> dict[str, Any]: ...
|
|
189
|
+
@rpc_class_method(method_name="pactus.wallet.sign_raw_transaction")
|
|
190
|
+
async def sign_raw_transaction(
|
|
191
|
+
self,
|
|
192
|
+
wallet_name: str = Undefined,
|
|
193
|
+
raw_transaction: str = Undefined,
|
|
194
|
+
password: str = Undefined,
|
|
195
|
+
) -> dict[str, Any]: ...
|
|
196
|
+
@rpc_class_method(method_name="pactus.wallet.get_validator_address")
|
|
197
|
+
async def get_validator_address(
|
|
198
|
+
self, public_key: str = Undefined
|
|
199
|
+
) -> dict[str, Any]: ...
|
|
200
|
+
@rpc_class_method(method_name="pactus.wallet.get_new_address")
|
|
201
|
+
async def get_new_address(
|
|
202
|
+
self,
|
|
203
|
+
wallet_name: str = Undefined,
|
|
204
|
+
address_type: int = Undefined,
|
|
205
|
+
label: str = Undefined,
|
|
206
|
+
password: str = Undefined,
|
|
207
|
+
) -> dict[str, Any]: ...
|
|
208
|
+
@rpc_class_method(method_name="pactus.wallet.get_address_history")
|
|
209
|
+
async def get_address_history(
|
|
210
|
+
self, wallet_name: str = Undefined, address: str = Undefined
|
|
211
|
+
) -> dict[str, Any]: ...
|
|
212
|
+
@rpc_class_method(method_name="pactus.wallet.sign_message")
|
|
213
|
+
async def sign_message(
|
|
214
|
+
self,
|
|
215
|
+
wallet_name: str = Undefined,
|
|
216
|
+
password: str = Undefined,
|
|
217
|
+
address: str = Undefined,
|
|
218
|
+
message: str = Undefined,
|
|
219
|
+
) -> dict[str, Any]: ...
|
|
220
|
+
@rpc_class_method(method_name="pactus.wallet.get_total_stake")
|
|
221
|
+
async def get_total_stake(
|
|
222
|
+
self, wallet_name: str = Undefined
|
|
223
|
+
) -> dict[str, Any]: ...
|
|
224
|
+
@rpc_class_method(method_name="pactus.wallet.get_address_info")
|
|
225
|
+
async def get_address_info(
|
|
226
|
+
self, wallet_name: str = Undefined, address: str = Undefined
|
|
227
|
+
) -> dict[str, Any]: ...
|
|
228
|
+
@rpc_class_method(method_name="pactus.wallet.set_address_label")
|
|
229
|
+
async def set_address_label(
|
|
230
|
+
self,
|
|
231
|
+
wallet_name: str = Undefined,
|
|
232
|
+
password: str = Undefined,
|
|
233
|
+
address: str = Undefined,
|
|
234
|
+
label: str = Undefined,
|
|
235
|
+
) -> dict[str, Any]: ...
|
|
236
|
+
@rpc_class_method(method_name="pactus.wallet.list_wallet")
|
|
237
|
+
async def list_wallet(self) -> dict[str, Any]: ...
|
|
238
|
+
@rpc_class_method(method_name="pactus.wallet.get_wallet_info")
|
|
239
|
+
async def get_wallet_info(
|
|
240
|
+
self, wallet_name: str = Undefined
|
|
241
|
+
) -> dict[str, Any]: ...
|
|
242
|
+
@rpc_class_method(method_name="pactus.wallet.list_address")
|
|
243
|
+
async def list_address(
|
|
244
|
+
self, wallet_name: str = Undefined
|
|
245
|
+
) -> dict[str, Any]: ...
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pactus-jsonrpc
|
|
3
|
+
Version: 1.7.4
|
|
4
|
+
Summary: Python client for interacting with the Pactus blockchain via JSON-RPC
|
|
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,json-rpc
|
|
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: jsonrpc2-pyclient>=5.2.0
|
|
18
|
+
Requires-Dist: py-undefined>=0.1.5
|
|
19
|
+
Requires-Dist: pydantic>=2.5.3
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: keywords
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
[](https://codecov.io/gh/pactus-project/pactus)
|
|
34
|
+
[](https://goreportcard.com/report/github.com/pactus-project/pactus)
|
|
35
|
+
[](https://discord.gg/zPqWqV85ch)
|
|
36
|
+
|
|
37
|
+
------
|
|
38
|
+
|
|
39
|
+
# Pactus Blockchain
|
|
40
|
+
|
|
41
|
+
A full-node implementation of the Pactus blockchain in Go.
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
Please check the [install](./docs/install.md) document to build and run the Pactus blockchain.
|
|
46
|
+
|
|
47
|
+
## Contribution
|
|
48
|
+
|
|
49
|
+
Contributions to the Pactus blockchain are appreciated.
|
|
50
|
+
Please read the [CONTRIBUTING](./CONTRIBUTING.md) guidelines before submitting a pull request or opening an issue.
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
The Pactus blockchain is under MIT [license](./LICENSE).
|
|
55
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
pactus_jsonrpc/__init__.py
|
|
6
|
+
pactus_jsonrpc/client.py
|
|
7
|
+
pactus_jsonrpc/models.py
|
|
8
|
+
pactus_jsonrpc.egg-info/PKG-INFO
|
|
9
|
+
pactus_jsonrpc.egg-info/SOURCES.txt
|
|
10
|
+
pactus_jsonrpc.egg-info/dependency_links.txt
|
|
11
|
+
pactus_jsonrpc.egg-info/requires.txt
|
|
12
|
+
pactus_jsonrpc.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pactus_jsonrpc
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from setuptools import find_packages, setup
|
|
4
|
+
|
|
5
|
+
setup(
|
|
6
|
+
name="pactus-jsonrpc",
|
|
7
|
+
version="1.7.4",
|
|
8
|
+
author="Pactus Development Team",
|
|
9
|
+
author_email="info@pactus.org",
|
|
10
|
+
description="Python client for interacting with the Pactus blockchain via JSON-RPC",
|
|
11
|
+
long_description=Path("README.md").read_text(encoding="utf-8"),
|
|
12
|
+
long_description_content_type="text/markdown",
|
|
13
|
+
url="https://github.com/pactus-project/pactus",
|
|
14
|
+
packages=find_packages(),
|
|
15
|
+
license="MIT",
|
|
16
|
+
install_requires=[
|
|
17
|
+
"jsonrpc2-pyclient>=5.2.0",
|
|
18
|
+
"py-undefined>=0.1.5",
|
|
19
|
+
"pydantic>=2.5.3"
|
|
20
|
+
],
|
|
21
|
+
keywords=["pactus", "blockchain", "json-rpc"],
|
|
22
|
+
classifiers=[
|
|
23
|
+
"Development Status :: 5 - Production/Stable",
|
|
24
|
+
"Intended Audience :: Developers",
|
|
25
|
+
"Topic :: Software Development :: Build Tools",
|
|
26
|
+
"Operating System :: OS Independent",
|
|
27
|
+
],
|
|
28
|
+
python_requires=">=3.6",
|
|
29
|
+
)
|