├── .gitignore ├── Makefile ├── README.md ├── __init__.py ├── computer ├── cpu.py ├── memory.py ├── stack.py └── storage.py ├── ethereum ├── account.py ├── number.py ├── opcodes.py └── precompiles.py ├── notebook └── evm.ipynb ├── ops ├── arithmetic.py ├── bit.py ├── comp.py ├── dup.py ├── env.py ├── jump.py ├── log.py ├── logic.py ├── memory_ops.py ├── misc.py ├── push.py ├── storage_ops.py └── swap.py ├── run.py ├── static └── logo.png ├── test ├── __init__.py └── test_arithmetic.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/.gitignore -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | python -m unittest 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /computer/cpu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/computer/cpu.py -------------------------------------------------------------------------------- /computer/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/computer/memory.py -------------------------------------------------------------------------------- /computer/stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/computer/stack.py -------------------------------------------------------------------------------- /computer/storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/computer/storage.py -------------------------------------------------------------------------------- /ethereum/account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ethereum/account.py -------------------------------------------------------------------------------- /ethereum/number.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ethereum/number.py -------------------------------------------------------------------------------- /ethereum/opcodes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ethereum/opcodes.py -------------------------------------------------------------------------------- /ethereum/precompiles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ethereum/precompiles.py -------------------------------------------------------------------------------- /notebook/evm.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/notebook/evm.ipynb -------------------------------------------------------------------------------- /ops/arithmetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/arithmetic.py -------------------------------------------------------------------------------- /ops/bit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/bit.py -------------------------------------------------------------------------------- /ops/comp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/comp.py -------------------------------------------------------------------------------- /ops/dup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/dup.py -------------------------------------------------------------------------------- /ops/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/env.py -------------------------------------------------------------------------------- /ops/jump.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/jump.py -------------------------------------------------------------------------------- /ops/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/log.py -------------------------------------------------------------------------------- /ops/logic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/logic.py -------------------------------------------------------------------------------- /ops/memory_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/memory_ops.py -------------------------------------------------------------------------------- /ops/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/misc.py -------------------------------------------------------------------------------- /ops/push.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/push.py -------------------------------------------------------------------------------- /ops/storage_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/storage_ops.py -------------------------------------------------------------------------------- /ops/swap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/ops/swap.py -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/run.py -------------------------------------------------------------------------------- /static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/static/logo.png -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_arithmetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/test/test_arithmetic.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shafu0x/evm-from-scratch-python/HEAD/utils.py --------------------------------------------------------------------------------