Skip to content

Commit 0ff7bc0

Browse files
mneedham91pipermerriam
authored andcommitted
[WIP] issue #931: Rename core module from evm to eth (#1002)
* main package evm renamed eth All changes within eth and its subdirectories have been made. Other directories need to be inspected for refernces. * Edited docs To reflect main package name change from evm to eth * Changes to docs Reflect name change of main package from evm to eth. Should include all relevant docs. * Edits to p2p Reflect name change of main package from evm to eth. All necessary edits made in p2p. Also corrected mistake in db/chain.py as noted by pipermerriam in code review. * Edits to trinity Reflect name change of main package from evm to eth. All necessary edits made in p2p. Also inspected stubs, no edits were needed. * Edits to tests Reflect name change of main package from evm to eth. All necessary edits made in tests. This should cover all of py-evm. * cleanup renaming evm to eth renames * fix p2p.eth import * typo
1 parent 8335f32 commit 0ff7bc0

File tree

317 files changed

+982
-979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+982
-979
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ monkeytype.sqlite3
6969

7070
# pyenv
7171
.python-version
72+
73+
# idea
74+
.idea/**

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test-all:
3232
tox
3333

3434
coverage:
35-
coverage run --source evm
35+
coverage run --source eth
3636
coverage report -m
3737
coverage html
3838
open htmlcov/index.html

docs/api/eth/api.chain.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Chain
2+
=====
3+
4+
BaseChain
5+
---------
6+
7+
.. autoclass:: eth.chains.base.BaseChain
8+
:members:
9+
10+
Chain
11+
-----
12+
13+
.. autoclass:: eth.chains.base.Chain
14+
:members:

docs/api/evm/api.db.rst renamed to docs/api/eth/api.db.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DataBase
44

55
.. toctree::
66
:maxdepth: 4
7-
:name: toc-evm-api-db
7+
:name: toc-eth-api-db
88
:caption: Database
99

1010
db/api.db.backends

docs/api/evm/api.exceptions.rst renamed to docs/api/eth/api.exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Exceptions
22
==========
33

44

5-
.. automodule:: evm.exceptions
5+
.. automodule:: eth.exceptions
66
:members:

docs/api/evm/api.rlp.rst renamed to docs/api/eth/api.rlp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RLP
44

55
.. toctree::
66
:maxdepth: 4
7-
:name: toc-evm-api-rlp
7+
:name: toc-eth-api-rlp
88
:caption: RLP Objects
99

1010
rlp/api.rlp.accounts

docs/api/evm/api.vm.rst renamed to docs/api/eth/api.vm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Virtual Machine
44

55
.. toctree::
66
:maxdepth: 4
7-
:name: toc-evm-api-vm
7+
:name: toc-eth-api-vm
88
:caption: Virtual Machine
99

1010
vm/api.vm.computation

docs/api/evm/db/api.db.account.rst renamed to docs/api/eth/db/api.db.account.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Account
44
BaseAccountDB
55
-------------
66

7-
.. autoclass:: evm.db.account.BaseAccountDB
7+
.. autoclass:: eth.db.account.BaseAccountDB
88
:members:
99

1010
AccountDB
1111
-------------
1212

13-
.. autoclass:: evm.db.account.AccountDB
13+
.. autoclass:: eth.db.account.AccountDB
1414
:members:

docs/api/eth/db/api.db.backends.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Backends
2+
========
3+
4+
BaseDB
5+
------
6+
7+
.. autoclass:: eth.db.backends.base.BaseDB
8+
:members:
9+
10+
LevelDB
11+
-------
12+
13+
.. autoclass:: eth.db.backends.level.LevelDB
14+
:members:
15+
16+
MemoryDB
17+
--------
18+
19+
.. autoclass:: eth.db.backends.memory.MemoryDB
20+
:members:

docs/api/evm/db/api.db.chain.rst renamed to docs/api/eth/db/api.db.chain.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Chain
44
BaseChainDB
55
~~~~~~~~~~~
66

7-
.. autoclass:: evm.db.chain.BaseChainDB
7+
.. autoclass:: eth.db.chain.BaseChainDB
88
:members:
99

1010
ChainDB
1111
~~~~~~~
1212

13-
.. autoclass:: evm.db.chain.ChainDB
13+
.. autoclass:: eth.db.chain.ChainDB
1414
:members:
1515

1616
AsyncChainDB
1717
------------
1818

19-
.. autoclass:: evm.db.chain.AsyncChainDB
19+
.. autoclass:: eth.db.chain.AsyncChainDB
2020
:members:

0 commit comments

Comments
 (0)