Skip to content

Commit

Permalink
[WIP] issue #931: Rename core module from evm to eth (#1002)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mneedham91 authored and pipermerriam committed Jul 12, 2018
1 parent 8335f32 commit 0ff7bc0
Show file tree
Hide file tree
Showing 317 changed files with 982 additions and 979 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ monkeytype.sqlite3

# pyenv
.python-version

# idea
.idea/**
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test-all:
tox

coverage:
coverage run --source evm
coverage run --source eth
coverage report -m
coverage html
open htmlcov/index.html
Expand Down
14 changes: 14 additions & 0 deletions docs/api/eth/api.chain.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Chain
=====

BaseChain
---------

.. autoclass:: eth.chains.base.BaseChain
:members:

Chain
-----

.. autoclass:: eth.chains.base.Chain
:members:
2 changes: 1 addition & 1 deletion docs/api/evm/api.db.rst → docs/api/eth/api.db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DataBase

.. toctree::
:maxdepth: 4
:name: toc-evm-api-db
:name: toc-eth-api-db
:caption: Database

db/api.db.backends
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Exceptions
==========


.. automodule:: evm.exceptions
.. automodule:: eth.exceptions
:members:
2 changes: 1 addition & 1 deletion docs/api/evm/api.rlp.rst → docs/api/eth/api.rlp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RLP

.. toctree::
:maxdepth: 4
:name: toc-evm-api-rlp
:name: toc-eth-api-rlp
:caption: RLP Objects

rlp/api.rlp.accounts
Expand Down
2 changes: 1 addition & 1 deletion docs/api/evm/api.vm.rst → docs/api/eth/api.vm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Virtual Machine

.. toctree::
:maxdepth: 4
:name: toc-evm-api-vm
:name: toc-eth-api-vm
:caption: Virtual Machine

vm/api.vm.computation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Account
BaseAccountDB
-------------

.. autoclass:: evm.db.account.BaseAccountDB
.. autoclass:: eth.db.account.BaseAccountDB
:members:

AccountDB
-------------

.. autoclass:: evm.db.account.AccountDB
.. autoclass:: eth.db.account.AccountDB
:members:
20 changes: 20 additions & 0 deletions docs/api/eth/db/api.db.backends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Backends
========

BaseDB
------

.. autoclass:: eth.db.backends.base.BaseDB
:members:

LevelDB
-------

.. autoclass:: eth.db.backends.level.LevelDB
:members:

MemoryDB
--------

.. autoclass:: eth.db.backends.memory.MemoryDB
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Chain
BaseChainDB
~~~~~~~~~~~

.. autoclass:: evm.db.chain.BaseChainDB
.. autoclass:: eth.db.chain.BaseChainDB
:members:

ChainDB
~~~~~~~

.. autoclass:: evm.db.chain.ChainDB
.. autoclass:: eth.db.chain.ChainDB
:members:

AsyncChainDB
------------

.. autoclass:: evm.db.chain.AsyncChainDB
.. autoclass:: eth.db.chain.AsyncChainDB
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Journal
JournalDB
---------

.. autoclass:: evm.db.journal.JournalDB
.. autoclass:: eth.db.journal.JournalDB
:members:
4 changes: 2 additions & 2 deletions docs/api/evm/index.rst → docs/api/eth/index.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Py-EVM
======

This section aims to provide a detailed description of all APIs. If you are looking for something more hands-on or higher-level check out the existing `EVM guides </guides/evm>`_.
This section aims to provide a detailed description of all APIs. If you are looking for something more hands-on or higher-level check out the existing `EVM guides </guides/eth>`_.

.. toctree::
:maxdepth: 4
:name: toc-api-evm
:name: toc-api-eth
:caption: API

api.chain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Accounts
Account
-------

.. autoclass:: evm.rlp.accounts.Account
.. autoclass:: eth.rlp.accounts.Account
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Blocks
BaseBlock
---------

.. autoclass:: evm.rlp.blocks.BaseBlock
.. autoclass:: eth.rlp.blocks.BaseBlock
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Collation
Collation
---------

.. autoclass:: evm.rlp.collations.Collation
.. autoclass:: eth.rlp.collations.Collation
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Headers
BlockHeader
-----------

.. autoclass:: evm.rlp.headers.BlockHeader
.. autoclass:: eth.rlp.headers.BlockHeader
:members:


CollationHeader
---------------

.. autoclass:: evm.rlp.headers.CollationHeader
.. autoclass:: eth.rlp.headers.CollationHeader
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Logs
Log
---

.. autoclass:: evm.rlp.logs.Log
.. autoclass:: eth.rlp.logs.Log
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Receipts
Receipt
-------

.. autoclass:: evm.rlp.receipts.Receipt
.. autoclass:: eth.rlp.receipts.Receipt
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ Transactions
BaseTransactionMethods
----------------------

.. autoclass:: evm.rlp.transactions.BaseTransactionMethods
.. autoclass:: eth.rlp.transactions.BaseTransactionMethods
:members:

BaseTransactionFields
----------------------

.. autoclass:: evm.rlp.transactions.BaseTransactionFields
.. autoclass:: eth.rlp.transactions.BaseTransactionFields
:members:

BaseTransaction
---------------

.. autoclass:: evm.rlp.transactions.BaseTransaction
.. autoclass:: eth.rlp.transactions.BaseTransaction
:members:

BaseUnsignedTransaction
-----------------------

.. autoclass:: evm.rlp.transactions.BaseUnsignedTransaction
.. autoclass:: eth.rlp.transactions.BaseUnsignedTransaction
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.code_stream.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CodeStream
==========

.. autoclass:: eth.vm.code_stream.CodeStream
:members:

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Computation
BaseComputation
---------------

.. autoclass:: evm.vm.computation.BaseComputation
.. autoclass:: eth.vm.computation.BaseComputation
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.execution_context.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ExecutionContext
================

.. autoclass:: eth.vm.execution_context.ExecutionContext
:members:

Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ Frontier
FrontierVM
~~~~~~~~~~

.. autoclass:: evm.vm.forks.frontier.FrontierVM
.. autoclass:: eth.vm.forks.frontier.FrontierVM
:members:

FrontierState
~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.frontier.state.FrontierState
.. autoclass:: eth.vm.forks.frontier.state.FrontierState
:members:

FrontierComputation
~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.frontier.computation.FrontierComputation
.. autoclass:: eth.vm.forks.frontier.computation.FrontierComputation
:members:


Expand All @@ -30,19 +30,19 @@ Homestead
HomesteadVM
~~~~~~~~~~~

.. autoclass:: evm.vm.forks.homestead.HomesteadVM
.. autoclass:: eth.vm.forks.homestead.HomesteadVM
:members:

HomesteadState
~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.homestead.state.HomesteadState
.. autoclass:: eth.vm.forks.homestead.state.HomesteadState
:members:

HomesteadComputation
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.homestead.computation.HomesteadComputation
.. autoclass:: eth.vm.forks.homestead.computation.HomesteadComputation
:members:


Expand All @@ -52,19 +52,19 @@ TangerineWhistle
TangerineWhistleVM
~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.tangerine_whistle.TangerineWhistleVM
.. autoclass:: eth.vm.forks.tangerine_whistle.TangerineWhistleVM
:members:

TangerineWhistleState
~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.tangerine_whistle.state.TangerineWhistleState
.. autoclass:: eth.vm.forks.tangerine_whistle.state.TangerineWhistleState
:members:

TangerineWhistleComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.tangerine_whistle.computation.TangerineWhistleComputation
.. autoclass:: eth.vm.forks.tangerine_whistle.computation.TangerineWhistleComputation
:members:


Expand All @@ -74,19 +74,19 @@ SpuriousDragon
SpuriousDragonVM
~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.spurious_dragon.SpuriousDragonVM
.. autoclass:: eth.vm.forks.spurious_dragon.SpuriousDragonVM
:members:

SpuriousDragonState
~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.spurious_dragon.state.SpuriousDragonState
.. autoclass:: eth.vm.forks.spurious_dragon.state.SpuriousDragonState
:members:

SpuriousDragonComputation
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.spurious_dragon.computation.SpuriousDragonComputation
.. autoclass:: eth.vm.forks.spurious_dragon.computation.SpuriousDragonComputation
:members:


Expand All @@ -96,17 +96,17 @@ Byzantium
ByzantiumVM
~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.byzantium.ByzantiumVM
.. autoclass:: eth.vm.forks.byzantium.ByzantiumVM
:members:

ByzantiumState
~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.byzantium.state.ByzantiumState
.. autoclass:: eth.vm.forks.byzantium.state.ByzantiumState
:members:

ByzantiumComputation
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: evm.vm.forks.byzantium.computation.ByzantiumComputation
.. autoclass:: eth.vm.forks.byzantium.computation.ByzantiumComputation
:members:
6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.gas_meter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GasMeter
========

.. autoclass:: eth.vm.gas_meter.GasMeter
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.memory.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Memory
======

.. autoclass:: eth.vm.memory.Memory
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.message.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Message
=======

.. autoclass:: eth.vm.message.Message
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.opcode.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Opcode
=======

.. autoclass:: eth.vm.opcode.Opcode
:members:

6 changes: 6 additions & 0 deletions docs/api/eth/vm/api.vm.stack.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Stack
=====

.. autoclass:: eth.vm.stack.Stack
:members:

Loading

0 comments on commit 0ff7bc0

Please sign in to comment.