Skip to content

Commit

Permalink
move compiling before web3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f authored Sep 14, 2020
1 parent b734f7d commit 8f5f20b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions solidity_deposit_contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,12 @@ See this [blog post](https://blog.ethereum.org/2020/06/23/eth2-quick-update-no-1

In August 2020, version `r2` was released with metadata modifications and relicensed to CC0-1.0. Afterward, this contract has been ported back to from [`axic/eth2-deposit-contract`](https://github.com/axic/eth2-deposit-contract) to this repository and replaced the Vyper deposit contract.

## Running web3 tests

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 in the `eth2.0-specs` directory run:

```sh
make test_deposit_contract
```
## Compiling solidity

In the `eth2.0-specs` directory run:
```sh
make compile_deposit_contract
```

The following parameters were used to generate the bytecode for the `DepositContract` available in this repository:

Expand All @@ -40,3 +29,16 @@ The following parameters were used to generate the bytecode for the `DepositCont
```sh
solc --optimize --optimize-runs 5000000 --metadata-literal --bin deposit_contract.sol
```

## Running web3 tests

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 in the `eth2.0-specs` directory run:

```sh
make test_deposit_contract
```

0 comments on commit 8f5f20b

Please sign in to comment.