Commit Graph

178 Commits

Author SHA1 Message Date
Hsiao-Wei Wang 6e8b4b3ea9
Add eth2spec.merge.spec 2021-04-08 05:57:16 +08:00
protolambda 07b7774241
misc. phase1 modules refactor updates 2021-03-30 01:46:02 +02:00
protolambda 0c94be4204
clean up more phase1 test references 2021-03-27 00:14:32 +01:00
protolambda a6c01f8212
no phase1 in tests, per-feature testing now, executable specs will be re-enabled per feature 2021-03-26 23:21:36 +01:00
protolambda 6d2d8cb982
toc updates 2021-03-26 22:37:32 +01:00
Hsiao-Wei Wang f360a9823f
Add Makefile commands `detect_generator_error_log` and `detect_generator_incomplete` 2021-03-17 02:45:52 +08:00
Hsiao-Wei Wang a2268a432c
Fix missing --cov-report 2021-03-15 19:20:36 +08:00
Hsiao-Wei Wang b44e576e95
LIGHTCLIENT_PATCH/HF1 -> ALTAIR 2021-03-11 21:32:00 +08:00
Hsiao-Wei Wang 844c879f1c
Bump `py_ecc` and `milagro_bls_binding` (#2169)
* Bump py_ecc to v5.1.0 and milagro_bls_binding to v1.6.2

* python3.8 -> python3 for py39 compatibility

* fix

* Try python:3.9

* Revert: using Python3.8 in CI now
2021-01-05 21:00:52 +08:00
Hsiao-Wei Wang acfe49e3f3
executable light client patch: beacon-chain.md (#2141)
* Bump remerkleable to 0.1.18

* Disable `sync-protocol.md` for now. Make linter pass

* Enable lightclient tests

* Use *new* `optional_fast_aggregate_verify`

* Fix ToC and codespell

* Do not run phase1 tests with Lightclient patch

* Fix the Eth1Data casting bug. Add a workaround.

* Fix `run_on_attestation` testing helper

* Revert

* Rename `optional_fast_aggregate_verify` to `eth2_fast_aggregate_verify`

* Apply Proto's suggestion

* Apply Danny's suggestion

* Fixing tests

* Fix after rebasing

* Rename `LIGHTCLIENT` -> `LIGHTCLIENT_PATCH`

* New doctoc

* Add lightclient patch configs

* fix gitignore light client patch generator output

* Upgrade state for light client patch

* Add `lightclient-fork.md` to deal the fork boundary and fix
`process_block_header`

* Misc cleanups

1) Add a summary note for every function that is changed.
2) Avoid changing `process_block` (instead only change `process_block_header`).
3) Rename `G2_INFINITY_POINT_SIG` to `G2_POINT_AT_INFINITY` to avoid `SIG` contraction.
4) Misc cleanups

* Update block.py

* Update beacon-chain.md

* Fix typo "minimal" -> "mainnet"

Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>

* Use the new `BeaconBlockHeader` instead of phase 0 version

* Update config files

* Move `sync_committee_bits` and `sync_committee_signature` back to `BeaconBlockBody`

Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: Justin <drakefjustin@gmail.com>
Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>
2020-12-15 13:18:20 +08:00
Hsiao-Wei Wang 4df3547edf
Make `lightclient` patch pass the linter (#2133)
* Make `lightclient` an executable patch fork

* fix conflicts

* Fix ToC

* Lightclient -> Light client

* Try protolambda/remerkleable#8

* Fix sync-protocol.md ToC

* Build lightclient/sync-protocol

* Fix typo

Co-authored-by: vbuterin <v@buterin.com>

Co-authored-by: vbuterin <v@buterin.com>
2020-11-17 10:41:26 +08:00
Hsiao-Wei Wang 20bd00cef0
Add `make lint_generators` linter check for test generators 2020-09-15 11:19:50 +08:00
Hsiao-Wei Wang adf8698778
Update the docs and remove unused code 2020-08-18 00:58:08 +08:00
Hsiao-Wei Wang 094dd1470f
Cleaning 2020-08-18 00:35:50 +08:00
Hsiao-Wei Wang 377b2e3f83
Clean up the CI workflow, enable web3.py tests 2020-08-18 00:27:23 +08:00
Hsiao-Wei Wang 80fb126401
WIP: add solidity deposit contract CI workflow
Export `DAPP_LIB`

Fix .gitmodules

update CI solc version

Kick cache

Make metadata remain the same
2020-08-17 23:37:33 +08:00
Hsiao-Wei Wang 819bb6d21d
Use Milagro BLS in CI 2020-07-24 02:00:52 +08:00
Hsiao-Wei Wang 5171a91dfb
Fix path 2020-06-18 19:03:40 +08:00
Hsiao-Wei Wang 51e7969147
Set linter configs in `linter.ini` 2020-06-18 14:36:14 +08:00
Danny Ryan c761c437d4
revert e128 and c901 in lint 2020-06-16 12:11:47 -06:00
Dankrad Feist bcfaa1b635
Fix tests 2020-06-12 11:07:44 +01:00
Danny Ryan 3a4db69a20
Merge branch 'dev' into dankrad-custody-256bit 2020-06-01 18:45:22 -06:00
protolambda b1c2c6e3a2
Default BLS to ON, keep CI BLS off for now, add milagro option 2020-05-11 19:18:49 +02:00
Hsiao-Wei Wang ee4c866575
Merge branch 'dev' into dankrad-custody-256bit-merging 2020-05-05 15:22:36 +08:00
Dankrad Feist d30f11a781
Fix lint 2020-05-01 00:16:00 +01:00
Dankrad Feist ab2ee0e2c2
Restoring chunk challenges and testing 2020-04-24 17:06:27 +01:00
Giuseppe Bertone 79d6b49a90
Fixed target compile_deposit_contract
Path of validator_registration.vy contract was wrong
2020-04-10 17:38:37 +02:00
protolambda 33f8f4936d
Fix base-reward memoization bug, improve memoization with LRU, and improve misc rewards test 2020-03-20 21:15:13 +01:00
protolambda 1a16e9a3ab
version eth2spec 2020-02-05 18:38:21 +01:00
protolambda 7848500ea9
spec packaging; implement review suggestions from hww 2020-01-25 22:10:03 +01:00
protolambda 675d404c38
Package eth2spec for tooling and experimentation
See tests/core/pyspec/README.md for usage description.

This commit:
- refactors config loading to be part of the pyspec package
- updates requirements and main files to use new config loading
- cleans up the build script
- converts the build script to a distutil command
- runs pyspec build as part of build package command
- provides pyspecdev command to get editable spec python files
2020-01-25 01:57:11 +01:00
protolambda 86b699bfd1
Merge branch 'dev' into phase1rebase 2020-01-23 19:24:03 +01:00
protolambda 01f7c6c1e2
separate deposit contract compiler and tester, pin compiler to python 3.7. Upgrade others to 3.8 2020-01-22 19:41:19 +01:00
Danny Ryan 3c07b2c954
Make phase 0 fork choice more modular to more easily adopt for slight modifications in phase 1 2020-01-15 16:40:50 -07:00
protolambda 4732c7beb1
merge in dev (v0.10) and fix reorg/lint issues 2020-01-13 18:55:21 +01:00
Danny Ryan 676e216beb
reorg specs by fork and move ssz out to own folder. make all of the build and link changes to support move 2020-01-10 11:55:13 -07:00
protolambda 140129ec51
Merge dev into phase1 refactor, update BLS phase1 2020-01-09 14:56:06 +01:00
Hsiao-Wei Wang fbfe024e7a Rename vyper file from `.v.py` to `.vy` 2020-01-07 17:20:17 +08:00
Danny Ryan c9f52d0099
Merge branch 'dev' into phase1rebase 2020-01-03 07:49:23 -07:00
Martin Lundfall 798fadc3cb Makefile: Use codespell as intended 2019-12-16 14:18:34 +01:00
Martin Lundfall 5234e431ec Add codespell to ci 2019-12-16 13:06:01 +01:00
Martin Lundfall a4f8a77c02 Fix spelling errors found by codespell 2019-12-16 13:02:36 +01:00
Martin Lundfall aa0c9f89c3 Add check_toc rule to makefile, which fails if table of contents of any of the MARKDOWN_FILES are out of sync 2019-12-10 18:29:50 +01:00
Danny Ryan 82c9adce8b
fix phase 1 make build (not lint or tests) 2019-12-05 13:29:51 -07:00
Hsiao-Wei Wang 72b9781051
Merge branch 'dev' into vbuterin-patch-13 2019-08-24 02:37:19 +08:00
Hsiao-Wei Wang 722a69467f
Add `light_client/merkle_proofs.md` to executable stack. Errors revealed. 2019-08-15 15:07:44 +08:00
Hsiao-Wei Wang e4e6c4d8ee
Fix the order of build spec 2019-08-12 00:45:33 +08:00
Hsiao-Wei Wang c5acddc071
Enable it in CI 2019-08-11 23:19:17 +08:00
protolambda 0c5153d3f0
add coment about test generation config filtering to makefile 2019-07-30 22:17:44 +02:00
protolambda eba473079b
update makefile to support generators outputting to same config, or even same runner dir 2019-07-30 12:49:18 +02:00
Carl Beekhuizen 90bba0348c
Fix spelling error
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2019-06-30 17:53:21 +02:00
Carl Beekhuizen f6322e199b
Fixes typing and Makefile 2019-06-30 11:18:36 +02:00
Carl Beekhuizen 1d9fe90d97
Makes v-guide executable 2019-06-30 10:58:04 +02:00
Diederik Loerakker c86108de00
Merge pull request #1207 from ethereum/fix_make_lint
Fix `make lint`
2019-06-22 17:07:00 +02:00
Hsiao-Wei Wang 99df7da94a
Add `&&` between the commands 2019-06-21 22:53:02 -06:00
Danny Ryan f12c32a690
Xdist tests for parallelism (#1201)
* add xdist parallelization

* reduce circleci cpus to 8

* reduce cpus to 4

* reduce circleci cpus to 2

* circleci back to 4 cpus
2019-06-21 14:18:28 -06:00
Carl Beekhuizen 3418c3506f
Merge dev and resolve conflicts (please let the CI tests pass with the new dev) 2019-06-19 20:27:54 +02:00
Carl Beekhuizen 31a4700223
Merge conflicts on `dev` 2019-06-17 22:09:43 -04:00
Hsiao-Wei Wang 01e9f18713
Merge branch 'dev' into mypy 2019-06-17 17:51:46 -04:00
Danny Ryan 2f9c554bf7
minor fix to makefile, add codecov instructiosn to readme 2019-06-16 17:38:48 -06:00
Carl Beekhuizen 11edda64ed
Adds fork-choice to spec builder 2019-06-15 18:42:03 -04:00
protolambda 20aa539f4d
update clean command 2019-06-15 01:13:29 +02:00
protolambda 1c51982c6b
generate coverage reports in make test, open as html site 2019-06-14 23:12:04 +02:00
Hsiao-Wei Wang 8577cff72e
enable mypy check in CI 2019-06-12 20:10:24 -04:00
Hsiao-Wei Wang 8a54203796
Modify the mypy config 2019-06-12 16:50:49 -04:00
Hsiao-Wei Wang f2c33529df
Add mypy check in CI 2019-06-11 00:45:00 -04:00
protolambda bce6c899f6
improve makefile: declare new targets as non-file 2019-06-08 13:30:47 +02:00
Hsiao-Wei Wang e52c4a5526
fix 2019-06-07 23:01:10 -04:00
Hsiao-Wei Wang 5b8cca8314
deposit_contract/venv
PR feedback + bump eth-tester
2019-06-07 22:41:50 -04:00
Hsiao-Wei Wang b78f5b2cc9
Merge branch 'dev' into deposit_contract_venvs 2019-06-07 15:22:43 -04:00
Carl Beekhuizen d761b6f041
Implements new SSZ types 2019-06-05 15:29:26 +02:00
protolambda fb584bc067
fix linting dependency + caching issue 2019-06-03 17:23:30 +02:00
protolambda b79f01e2fa
update flake8 to support type annotation in linting, ignore operator format and default param equals without spaces warnings 2019-06-01 02:39:41 +02:00
Carl Beekhuizen 28d98b5cf4
PEP8 cleanups 2019-05-31 13:20:10 +02:00
Carl Beekhuizen 9e8a969f22
Removes old tests & fixes phase1 tests 2019-05-31 12:44:34 +02:00
Carl Beekhuizen 5155bc6c4f
Makes everything pass around 2019-05-30 22:57:18 +02:00
Hsiao-Wei Wang c277703423
Add `compile_deposit_contract` command 2019-05-30 13:26:36 +08:00
Hsiao-Wei Wang 22a3bb2d9f
Merge branch 'dev' into deposit_contract 2019-05-30 09:31:34 +08:00
Danny Ryan d3d8b36365
Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
Hsiao-Wei Wang 0ec03db0fb
test 2019-05-27 18:48:40 +08:00
Hsiao-Wei Wang 05dc4b576f
deposit contract requires `eth2spec.phase0.spec.DepositData` 2019-05-27 18:15:33 +08:00
Hsiao-Wei Wang b05444a92c
Update Makefile and CI config
1. Add `install_deposit_contract_test` command
2. Add `test_deposit_contract` command
2019-05-27 15:59:01 +08:00
Carl Beekhuizen a7dbbafc92
Integrates shard-data-chains 2019-05-26 14:14:48 +02:00
Carl Beekhuizen 9058647b67
flake8v3.7->flake8v3.5 2019-05-22 10:28:03 +02:00
Carl Beekhuizen 24c4d21d5e
Minor edits + PEP8 2019-05-21 12:41:24 +02:00
Carl Beekhuizen 6b062405c9
merge dev -> carl-exec-phase1 2019-05-20 20:59:08 +02:00
Carl Beekhuizen 65b0701f8c
Helpers depend on spec version and p1 tests work 2019-05-20 18:14:37 +02:00
Carl Beekhuizen 14ea7d9f40
new spec buildign stratergy 2019-05-16 16:36:35 +02:00
Carl Beekhuizen 49d708e44b
Ok, lets at least pass tests :/ 2019-05-16 12:51:36 +02:00
Carl Beekhuizen b1711b4ff1
Implements parameterised phase1 tests 2019-05-16 12:10:08 +02:00
Hsiao-Wei Wang 2885f853c2
clean up lint 2019-05-16 16:34:07 +08:00
Carl Beekhuizen f3742566f7
The new test structure starts to take shape 2019-05-15 15:02:27 +02:00
Carl Beekhuizen c10fb92776
Merge dev -> dankrad-p-7 2019-05-15 10:36:01 +02:00
Hsiao-Wei Wang d7c1305ce4
Add flake8 check
max-line-length=120
2019-05-09 14:34:16 +08:00
Dankrad Feist 838496c3d4
Fix Makefile 2019-05-09 00:42:59 +01:00
Dankrad Feist 909158ed2d
Correct makefile 2019-05-08 23:41:44 +01:00
Dankrad Feist 6ab55efd3d
Phase 0 tests work on phase 1, yay :) 2019-05-08 23:30:08 +01:00
protolambda d9baee2481
move tests to standard pkg/test folder, enable conftest options with soft-import, update readme and makefile 2019-05-08 18:14:47 +02:00
Dankrad Feist 79c193ff60
Underscores for python modules 2019-05-07 18:07:51 +01:00
Dankrad Feist a604d03dff
Basic phase 1 pulling + correcting syntax errors in phase 1 2019-05-07 12:13:22 +01:00