py-geth 5.0.0b1__tar.gz → 5.0.0b3__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.
Files changed (65) hide show
  1. {py_geth-5.0.0b1/py_geth.egg-info → py_geth-5.0.0b3}/PKG-INFO +5 -5
  2. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/README.md +4 -4
  3. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/genesis.json +1 -1
  4. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/install.py +8 -0
  5. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/types.py +7 -1
  6. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/validation.py +8 -1
  7. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/wrapper.py +3 -0
  8. {py_geth-5.0.0b1 → py_geth-5.0.0b3/py_geth.egg-info}/PKG-INFO +5 -5
  9. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/py_geth.egg-info/SOURCES.txt +0 -6
  10. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/setup.py +1 -1
  11. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/utility/test_validation.py +14 -2
  12. py_geth-5.0.0b1/tests/core/accounts/projects/test-01/geth/LOCK +0 -0
  13. py_geth-5.0.0b1/tests/core/accounts/projects/test-01/geth/nodekey +0 -1
  14. py_geth-5.0.0b1/tests/core/accounts/projects/test-02/geth/LOCK +0 -0
  15. py_geth-5.0.0b1/tests/core/accounts/projects/test-02/geth/nodekey +0 -1
  16. py_geth-5.0.0b1/tests/core/accounts/projects/test-03/geth/LOCK +0 -0
  17. py_geth-5.0.0b1/tests/core/accounts/projects/test-03/geth/nodekey +0 -1
  18. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/LICENSE +0 -0
  19. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/MANIFEST.in +0 -0
  20. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/__init__.py +0 -0
  21. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/accounts.py +0 -0
  22. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/chain.py +0 -0
  23. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/default_blockchain_password +0 -0
  24. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/exceptions.py +0 -0
  25. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/main.py +0 -0
  26. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/mixins.py +0 -0
  27. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/process.py +0 -0
  28. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/py.typed +0 -0
  29. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/reset.py +0 -0
  30. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/__init__.py +0 -0
  31. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/encoding.py +0 -0
  32. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/filesystem.py +0 -0
  33. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/networking.py +0 -0
  34. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/proc.py +0 -0
  35. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/thread.py +0 -0
  36. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/geth/utils/timeout.py +0 -0
  37. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/py_geth.egg-info/dependency_links.txt +0 -0
  38. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/py_geth.egg-info/not-zip-safe +0 -0
  39. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/py_geth.egg-info/requires.txt +0 -0
  40. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/py_geth.egg-info/top_level.txt +0 -0
  41. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/pyproject.toml +0 -0
  42. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/setup.cfg +0 -0
  43. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/conftest.py +0 -0
  44. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/projects/test-01/keystore/UTC--2015-08-24T21-30-14.222885490Z--ae71658b3ab452f7e4f03bda6f777b860b2e2ff2 +0 -0
  45. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-30-14.222885490Z--ae71658b3ab452f7e4f03bda6f777b860b2e2ff2 +0 -0
  46. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-32-00.716418819Z--e8e085862a8d951dd78ec5ea784b3e22ee1ca9c6 +0 -0
  47. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-32-04.748321142Z--0da70f43a568e88168436be52ed129f4a9bbdaf5 +0 -0
  48. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/test_account_list_parsing.py +0 -0
  49. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/test_create_geth_account.py +0 -0
  50. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/accounts/test_geth_accounts.py +0 -0
  51. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/running/test_running_dev_chain.py +0 -0
  52. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/running/test_running_mainnet_chain.py +0 -0
  53. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/running/test_running_sepolia_chain.py +0 -0
  54. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/running/test_running_with_logging.py +0 -0
  55. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/running/test_use_as_a_context_manager.py +0 -0
  56. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/test_import_and_version.py +0 -0
  57. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/test_library_files.py +0 -0
  58. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/utility/test_constructing_test_chain_kwargs.py +0 -0
  59. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/utility/test_geth_version.py +0 -0
  60. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/utility/test_is_live_chain.py +0 -0
  61. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/utility/test_is_sepolia_chain.py +0 -0
  62. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/waiting/conftest.py +0 -0
  63. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/waiting/test_waiting_for_ipc_socket.py +0 -0
  64. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/core/waiting/test_waiting_for_rpc_connection.py +0 -0
  65. {py_geth-5.0.0b1 → py_geth-5.0.0b3}/tests/installation/test_geth_installation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-geth
3
- Version: 5.0.0b1
3
+ Version: 5.0.0b3
4
4
  Summary: py-geth: Run Go-Ethereum as a subprocess
5
5
  Home-page: https://github.com/ethereum/py-geth
6
6
  Author: The Ethereum Foundation
@@ -165,19 +165,19 @@ the current list of supported versions.
165
165
  Installation can be done via the command line:
166
166
 
167
167
  ```bash
168
- $ python -m geth.install v1.14.5
168
+ $ python -m geth.install v1.14.7
169
169
  ```
170
170
 
171
171
  Or from python using the `install_geth` function.
172
172
 
173
173
  ```python
174
174
  >>> from geth import install_geth
175
- >>> install_geth('v1.14.5')
175
+ >>> install_geth('v1.14.7')
176
176
  ```
177
177
 
178
178
  The installed binary can be found in the `$HOME/.py-geth` directory, under your
179
- home directory. The `v1.14.5` binary would be located at
180
- `$HOME/.py-geth/geth-v1.14.5/bin/geth`.
179
+ home directory. The `v1.14.7` binary would be located at
180
+ `$HOME/.py-geth/geth-v1.14.7/bin/geth`.
181
181
 
182
182
  ## About `DevGethProcess`
183
183
 
@@ -118,19 +118,19 @@ the current list of supported versions.
118
118
  Installation can be done via the command line:
119
119
 
120
120
  ```bash
121
- $ python -m geth.install v1.14.5
121
+ $ python -m geth.install v1.14.7
122
122
  ```
123
123
 
124
124
  Or from python using the `install_geth` function.
125
125
 
126
126
  ```python
127
127
  >>> from geth import install_geth
128
- >>> install_geth('v1.14.5')
128
+ >>> install_geth('v1.14.7')
129
129
  ```
130
130
 
131
131
  The installed binary can be found in the `$HOME/.py-geth` directory, under your
132
- home directory. The `v1.14.5` binary would be located at
133
- `$HOME/.py-geth/geth-v1.14.5/bin/geth`.
132
+ home directory. The `v1.14.7` binary would be located at
133
+ `$HOME/.py-geth/geth-v1.14.7/bin/geth`.
134
134
 
135
135
  ## About `DevGethProcess`
136
136
 
@@ -24,6 +24,6 @@
24
24
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
25
25
  "gasLimit": "0x47e7c4",
26
26
  "difficulty": "0x0",
27
- "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
27
+ "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
28
28
  "alloc": {}
29
29
  }
@@ -32,6 +32,8 @@ V1_14_2 = "v1.14.2"
32
32
  V1_14_3 = "v1.14.3"
33
33
  V1_14_4 = "v1.14.4"
34
34
  V1_14_5 = "v1.14.5"
35
+ V1_14_6 = "v1.14.6"
36
+ V1_14_7 = "v1.14.7"
35
37
 
36
38
 
37
39
  LINUX = "linux"
@@ -322,6 +324,8 @@ install_v1_14_2 = functools.partial(install_from_source_code_release, V1_14_2)
322
324
  install_v1_14_3 = functools.partial(install_from_source_code_release, V1_14_3)
323
325
  install_v1_14_4 = functools.partial(install_from_source_code_release, V1_14_4)
324
326
  install_v1_14_5 = functools.partial(install_from_source_code_release, V1_14_5)
327
+ install_v1_14_6 = functools.partial(install_from_source_code_release, V1_14_6)
328
+ install_v1_14_7 = functools.partial(install_from_source_code_release, V1_14_7)
325
329
 
326
330
 
327
331
  INSTALL_FUNCTIONS = {
@@ -331,6 +335,8 @@ INSTALL_FUNCTIONS = {
331
335
  V1_14_3: install_v1_14_3,
332
336
  V1_14_4: install_v1_14_4,
333
337
  V1_14_5: install_v1_14_5,
338
+ V1_14_6: install_v1_14_6,
339
+ V1_14_7: install_v1_14_7,
334
340
  },
335
341
  OSX: {
336
342
  V1_14_0: install_v1_14_0,
@@ -338,6 +344,8 @@ INSTALL_FUNCTIONS = {
338
344
  V1_14_3: install_v1_14_3,
339
345
  V1_14_4: install_v1_14_4,
340
346
  V1_14_5: install_v1_14_5,
347
+ V1_14_6: install_v1_14_6,
348
+ V1_14_7: install_v1_14_7,
341
349
  },
342
350
  }
343
351
 
@@ -37,6 +37,7 @@ class GethKwargsTypedDict(TypedDict, total=False):
37
37
  suffix_args: list[str] | None
38
38
  suffix_kwargs: dict[str, str] | None
39
39
  tx_pool_global_slots: str | None
40
+ tx_pool_lifetime: str | None
40
41
  tx_pool_price_limit: str | None
41
42
  verbosity: str | None
42
43
  ws_addr: str | None
@@ -48,12 +49,17 @@ class GethKwargsTypedDict(TypedDict, total=False):
48
49
 
49
50
  class GenesisDataTypedDict(TypedDict, total=False):
50
51
  alloc: dict[str, dict[str, Any]]
52
+ baseFeePerGas: str
53
+ blobGasUsed: str
51
54
  coinbase: str
52
55
  config: dict[str, Any]
53
56
  difficulty: str
57
+ excessBlobGas: str
54
58
  extraData: str
55
59
  gasLimit: str
56
- mixhash: str
60
+ gasUsed: str
61
+ mixHash: str
57
62
  nonce: str
63
+ number: str
58
64
  parentHash: str
59
65
  timestamp: str
@@ -46,6 +46,7 @@ class GethKwargs(BaseModel):
46
46
  suffix_args: list[str] | None = None
47
47
  suffix_kwargs: dict[str, str] | None = None
48
48
  tx_pool_global_slots: str | None = None
49
+ tx_pool_lifetime: str | None = None
49
50
  tx_pool_price_limit: str | None = None
50
51
  verbosity: str | None = None
51
52
  ws_addr: str | None = None
@@ -70,6 +71,7 @@ def validate_geth_kwargs(geth_kwargs: GethKwargsTypedDict) -> None:
70
71
 
71
72
 
72
73
  class GenesisDataConfig(BaseModel):
74
+ chainId: int = 0
73
75
  ethash: dict[str, Any] = {} # so that geth treats config as PoW -> PoS transition
74
76
  homesteadBlock: int = 0
75
77
  daoForkBlock: int = 0
@@ -97,15 +99,20 @@ class GenesisDataConfig(BaseModel):
97
99
 
98
100
  class GenesisData(BaseModel):
99
101
  alloc: dict[str, dict[str, Any]] = {}
102
+ baseFeePerGas: str = "0x0"
103
+ blobGasUsed: str = "0x0"
100
104
  coinbase: str = "0x3333333333333333333333333333333333333333"
101
105
  config: dict[str, Any] = GenesisDataConfig().model_dump()
102
106
  difficulty: str = "0x0"
107
+ excessBlobGas: str = "0x0"
103
108
  extraData: str = (
104
109
  "0x0000000000000000000000000000000000000000000000000000000000000000"
105
110
  )
106
111
  gasLimit: str = "0x47e7c4"
107
- mixhash: str = "0x0000000000000000000000000000000000000000000000000000000000000000"
112
+ gasUsed: str = "0x0"
113
+ mixHash: str = "0x0000000000000000000000000000000000000000000000000000000000000000"
108
114
  nonce: str = "0x0"
115
+ number: str = "0x0"
109
116
  parentHash: str = (
110
117
  "0x0000000000000000000000000000000000000000000000000000000000000000"
111
118
  )
@@ -219,6 +219,9 @@ def construct_popen_command(**geth_kwargs: Unpack[GethKwargsTypedDict]) -> list[
219
219
  if gk.tx_pool_global_slots is not None:
220
220
  builder.extend(("--txpool.globalslots", gk.tx_pool_global_slots))
221
221
 
222
+ if gk.tx_pool_lifetime is not None:
223
+ builder.extend(("--txpool.lifetime", gk.tx_pool_lifetime))
224
+
222
225
  if gk.tx_pool_price_limit is not None:
223
226
  builder.extend(("--txpool.pricelimit", gk.tx_pool_price_limit))
224
227
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-geth
3
- Version: 5.0.0b1
3
+ Version: 5.0.0b3
4
4
  Summary: py-geth: Run Go-Ethereum as a subprocess
5
5
  Home-page: https://github.com/ethereum/py-geth
6
6
  Author: The Ethereum Foundation
@@ -165,19 +165,19 @@ the current list of supported versions.
165
165
  Installation can be done via the command line:
166
166
 
167
167
  ```bash
168
- $ python -m geth.install v1.14.5
168
+ $ python -m geth.install v1.14.7
169
169
  ```
170
170
 
171
171
  Or from python using the `install_geth` function.
172
172
 
173
173
  ```python
174
174
  >>> from geth import install_geth
175
- >>> install_geth('v1.14.5')
175
+ >>> install_geth('v1.14.7')
176
176
  ```
177
177
 
178
178
  The installed binary can be found in the `$HOME/.py-geth` directory, under your
179
- home directory. The `v1.14.5` binary would be located at
180
- `$HOME/.py-geth/geth-v1.14.5/bin/geth`.
179
+ home directory. The `v1.14.7` binary would be located at
180
+ `$HOME/.py-geth/geth-v1.14.7/bin/geth`.
181
181
 
182
182
  ## About `DevGethProcess`
183
183
 
@@ -37,16 +37,10 @@ tests/core/accounts/conftest.py
37
37
  tests/core/accounts/test_account_list_parsing.py
38
38
  tests/core/accounts/test_create_geth_account.py
39
39
  tests/core/accounts/test_geth_accounts.py
40
- tests/core/accounts/projects/test-01/geth/LOCK
41
- tests/core/accounts/projects/test-01/geth/nodekey
42
40
  tests/core/accounts/projects/test-01/keystore/UTC--2015-08-24T21-30-14.222885490Z--ae71658b3ab452f7e4f03bda6f777b860b2e2ff2
43
- tests/core/accounts/projects/test-02/geth/LOCK
44
- tests/core/accounts/projects/test-02/geth/nodekey
45
41
  tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-30-14.222885490Z--ae71658b3ab452f7e4f03bda6f777b860b2e2ff2
46
42
  tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-32-00.716418819Z--e8e085862a8d951dd78ec5ea784b3e22ee1ca9c6
47
43
  tests/core/accounts/projects/test-02/keystore/UTC--2015-08-24T21-32-04.748321142Z--0da70f43a568e88168436be52ed129f4a9bbdaf5
48
- tests/core/accounts/projects/test-03/geth/LOCK
49
- tests/core/accounts/projects/test-03/geth/nodekey
50
44
  tests/core/running/test_running_dev_chain.py
51
45
  tests/core/running/test_running_mainnet_chain.py
52
46
  tests/core/running/test_running_sepolia_chain.py
@@ -38,7 +38,7 @@ with open("./README.md") as readme:
38
38
  setup(
39
39
  name="py-geth",
40
40
  # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
41
- version="5.0.0-beta.1",
41
+ version="5.0.0-beta.3",
42
42
  description="""py-geth: Run Go-Ethereum as a subprocess""",
43
43
  long_description_content_type="text/markdown",
44
44
  long_description=long_description,
@@ -104,8 +104,11 @@ def test_validate_genesis_data_bad(genesis_data):
104
104
  },
105
105
  {
106
106
  "alloc": {},
107
+ "baseFeePerGas": "0x0",
108
+ "blobGasUsed": "0x0",
107
109
  "coinbase": "0x3333333333333333333333333333333333333333",
108
110
  "config": {
111
+ "chainId": 0,
109
112
  "ethash": {},
110
113
  "homesteadBlock": 0,
111
114
  "daoForkBlock": 0,
@@ -127,10 +130,13 @@ def test_validate_genesis_data_bad(genesis_data):
127
130
  "cancunTime": 0,
128
131
  },
129
132
  "difficulty": "0x00012131",
133
+ "excessBlobGas": "0x0",
130
134
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
131
135
  "gasLimit": "0x47e7c4",
132
- "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
136
+ "gasUsed": "0x0",
137
+ "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
133
138
  "nonce": "abc",
139
+ "number": "0x0",
134
140
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
135
141
  "timestamp": "1234",
136
142
  },
@@ -150,8 +156,11 @@ def test_validate_genesis_data_bad(genesis_data):
150
156
  },
151
157
  {
152
158
  "alloc": {},
159
+ "baseFeePerGas": "0x0",
160
+ "blobGasUsed": "0x0",
153
161
  "coinbase": "0x3333333333333333333333333333333333333333",
154
162
  "config": {
163
+ "chainId": 0,
155
164
  "ethash": {},
156
165
  "homesteadBlock": 5,
157
166
  "daoForkBlock": 1,
@@ -173,10 +182,13 @@ def test_validate_genesis_data_bad(genesis_data):
173
182
  "cancunTime": 0,
174
183
  },
175
184
  "difficulty": "0x00012131",
185
+ "excessBlobGas": "0x0",
176
186
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
177
187
  "gasLimit": "0x47e7c4",
178
- "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
188
+ "gasUsed": "0x0",
189
+ "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
179
190
  "nonce": "abc",
191
+ "number": "0x0",
180
192
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
181
193
  "timestamp": "0x0",
182
194
  },
@@ -1 +0,0 @@
1
- 46cf87d2c3661d137fa3901cfeff7f58b74a4f118d004199580fd588eba10b5e
@@ -1 +0,0 @@
1
- 9fb3c3964107a7f76a2474221384c21dc0288552d59ef9aa3317c4e3a1e2045e
@@ -1 +0,0 @@
1
- b0352dc57ebd8601c833b6079e0140a38174c58f13b24f292e0fccc708fe2e4d
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes