Ethereum 2.0 Specifications
Go to file
Alex Beregszaszi bc9b7ccfd3
Add test job for running eth2.0-specs tests (#25)
Also use python:3.8.1 docker image.
2020-05-14 20:36:54 +01:00
.gitattributes Add .gitattributes with Solidity 2020-04-15 14:37:41 +01:00
LICENSE Genesis 2020-04-15 00:32:40 +01:00
Makefile Use "literal metadata sources" setting (#21) 2020-05-14 11:46:54 +01:00
README.md Add Makefile and instructions for the tests in the README 2020-04-15 12:04:31 +01:00
circle.yml Add test job for running eth2.0-specs tests (#25) 2020-05-14 20:36:54 +01:00
deposit_contract.sol Add ERC-165 support (#4) 2020-05-14 12:19:03 +01:00

README.md

eth2-deposit-contract

This is a just for fun port of the Vyper Eth 2.0 deposit contract to Solidity.

The motivation is to run the SMTChecker and the new Yul IR generator option (--ir) in the compiler.

THIS IS NOT THE OFFICIAL DEPOSIT CONTRACT. NOT SUITABLE FOR ANY USE

Using this with the tests

  1. Create the deposit_contract.json with running make (this requires solc to be in the path)
  2. Download eth2.0-specs
  3. Replace eth2.0-specs/deposit_contract/contracts/validator_registration.json with deposit_contract.json
  4. In the eth2.0-specs directory run make install_deposit_contract_tester to install the tools needed (make sure to have Python 3.7 and pip installed)
  5. Finally in the eth2.0-specs directory run make test_deposit_contract to execute the tests

The Makefile currently compiles the code without optimisations. To enable optimisations add --optimize to the solc line.