eth2.0-specs/solidity_deposit_contract/README.md

21 lines
987 B
Markdown
Raw Normal View History

2020-04-14 20:44:39 +00:00
# eth2-deposit-contract
2020-08-17 16:20:20 +00:00
This is a port of the [Vyper Eth 2.0 deposit contract](https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/deposit_contract/contracts/validator_registration.vy) to Solidity.
2020-04-14 20:44:39 +00:00
The original motivation was to run the SMTChecker and the new Yul IR generator option (`--ir`) in the compiler.
2020-04-14 20:44:39 +00:00
As of June 2020, this contract (the version tagged as `r1`) has been verified and is considered for adoption.
See this [blog post](https://blog.ethereum.org/2020/06/23/eth2-quick-update-no-12/) for more information.
2020-08-17 16:20:20 +00:00
## Running web3 tests
2020-08-17 16:20:20 +00:00
1. In the `eth2.0-specs` directory run `make install_deposit_contract_web3_tester` to install the tools needed (make sure to have Python 3.7 and pip installed)
2. In the `eth2.0-specs` directory run `make test_deposit_contract_web3_tests` to execute the tests
## Running randomized `dapp` tests:
Install the latest version of `dapp` by following the instructions at [dapp.tools](https://dapp.tools/). Then run
```sh
make test
```