Commit Graph

144 Commits

Author SHA1 Message Date
protolambda 5048b9e87a temporary fix for phase-1 spec typing 2019-06-20 20:20:45 +02:00
protolambda 6f46c1d837 fix typing in spec builder monkey patch 2019-06-20 20:17:30 +02:00
protolambda 5be0c57aad fix linting + mypy 2019-06-20 20:17:29 +02:00
protolambda c9747b634f
improve build spec, get clean dependencies list 2019-06-20 20:13:55 +02:00
protolambda 439e4d4859
Build spec 2019-06-20 20:12:17 +02: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
protolambda 6df75ec3d4
cleanup unused byte part of builder 2019-06-18 22:16:21 +02:00
Hsiao-Wei Wang 7d2f0a9dc0
clean up 2019-06-18 14:07:42 -06:00
protolambda 207f632e1a
resolve other ret comment 2019-06-18 21:53:39 +02:00
protolambda f4de5e3c72
fix review comment: one line cache set 2019-06-18 21:50:53 +02:00
Carl Beekhuizen 31a4700223
Merge conflicts on `dev` 2019-06-17 22:09:43 -04:00
Hsiao-Wei Wang 9af9bbf42b
Merge branch 'dev' into mypy 2019-06-17 17:51:00 -04:00
Hsiao-Wei Wang 18ebd2aa90
Bytes32 -> Hash 2019-06-17 17:21:45 -04:00
Carl Beekhuizen 2ea6cede3e
Moves fork-choice objects away from SSZ 2019-06-17 10:48:33 -04:00
Carl Beekhuizen 11edda64ed
Adds fork-choice to spec builder 2019-06-15 18:42:03 -04:00
Hsiao-Wei Wang 9b77ec11f8
Version: Bytes4 2019-06-15 17:32:52 -04:00
Hsiao-Wei Wang b772b03847
Handle `BLSPubkey` and `BLSSignature` 2019-06-15 17:23:44 -04:00
Hsiao-Wei Wang 00a68e28b5
Define Custom Types via function_puller 2019-06-15 16:57:50 -04:00
Justin Drake ed748a7d76 Address Danny's comments 2019-06-15 15:09:50 +01:00
Hsiao-Wei Wang 48e8164e28
Add phase1 type hinting checks and fix many bugs 2019-06-12 20:08:19 -04:00
Hsiao-Wei Wang 7a366828ba
Make phase0 pass 2019-06-12 14:54:00 -04:00
Hsiao-Wei Wang 9f454185f8
WIP!
1. Use custom types in SSZ declaration
2. Casting
2019-06-11 00:44:54 -04:00
Hsiao-Wei Wang 8b64f37d22
Make uint64 be `class` for type hinting 2019-06-10 23:16:59 -04:00
Hsiao-Wei Wang 9fc197af67
class Bytes32 2019-06-10 11:10:13 -04:00
Justin Drake 565f61dfaa Cleanup containers 2019-06-09 20:41:21 +01:00
Carl Beekhuizen 60d9dc68c4
Apply suggestions from @djrtwo's code review 2019-06-05 21:49:30 +02:00
Carl Beekhuizen d761b6f041
Implements new SSZ types 2019-06-05 15:29:26 +02:00
Carl Beekhuizen f6bb47c402
Apply @dankrad's suggestions from code review 2019-06-04 17:08:18 +02:00
Carl Beekhuizen c06a60c95a
Fix descriptions
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-06-04 15:37:08 +02:00
Carl Beekhuizen 381fcc3215
Adds label explainer 2019-06-03 15:14:20 +02:00
Carl Beekhuizen 226adb35df
Adds Docstrings and type-checking to spec builder. 2019-06-03 14:22:03 +02:00
Hsiao-Wei Wang 6cd981128d
Delete extra newline 2019-06-03 17:21:38 +08:00
protolambda 7df788c7d5
resolve linting problems, except ssz-partials 2019-06-01 02:22:14 +02:00
protolambda e044305457
Merge branch 'dev' into ssz-impl-rework 2019-06-01 01:34:49 +02:00
Carl Beekhuizen 5155bc6c4f
Makes everything pass around 2019-05-30 22:57:18 +02:00
Hsiao-Wei Wang 6ec59867ef
Fix linter errors 2019-05-30 09:53:46 +08:00
Danny Ryan a994a5d835
Merge pull request #1131 from ethereum/v06x-to-dev
V06x to dev
2019-05-28 15:59:49 -06:00
Carl Beekhuizen fd05b6e364
Minor bugfixes 2019-05-28 09:58:51 +02:00
protolambda 0e9a047b1d
Merge branch 'dev' into ssz-impl-rework 2019-05-28 00:42:35 +02:00
protolambda c99fa52d9f
fix dev branch build script, missing quotes 2019-05-27 23:56:17 +02:00
protolambda b4c4df6a09
bugfix in sss_types global building in script 2019-05-27 23:41:29 +02:00
protolambda 132d3c976a
fix spec builder 2019-05-27 21:14:59 +02:00
Danny Ryan d3d8b36365
Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
Carl Beekhuizen a7dbbafc92
Integrates shard-data-chains 2019-05-26 14:14:48 +02:00
protolambda 81cb4a23b3
update some common usage of SSZ types, as a start 2019-05-25 00:10:06 +02:00
Carl Beekhuizen ac9564c2b7
Adds Insert-into-label functionality 2019-05-24 16:51:21 +02:00
Carl Beekhuizen 271f615873
Dramatically speed up tests 2019-05-22 12:40:57 +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 fac9f6c91d
Automatic SSZ dependancy Ordering! 2019-05-20 14:00:54 +02:00
Carl Beekhuizen c954687f58
Corrects combination of ssz objects 2019-05-20 11:27:41 +02:00
Carl Beekhuizen cfed4bb41c
Adds missing functions 2019-05-20 10:50:07 +02:00
Carl Beekhuizen 0e2d9e4963
Function_puller returns objects 2019-05-18 10:42:04 +02:00
Carl Beekhuizen 7c8f83d5e8
partial combination of phase0 and phase1 implemented 2019-05-16 23:52:40 +02:00
Carl Beekhuizen 306a613c8a
Simplify minimal SSZ again 2019-05-16 21:01:32 +02:00
Carl Beekhuizen 9f2d410a17
removes old files 2019-05-16 17:15:45 +02:00
Carl Beekhuizen f6f7d53735
simplify function_puller 2019-05-16 17:14:07 +02:00
Carl Beekhuizen 14ea7d9f40
new spec buildign stratergy 2019-05-16 16:36:35 +02: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
protolambda 904e2e9c0c
BLS on/off deco 2019-05-13 23:15:02 +02:00
Danny Ryan 27c8e41b32
Merge branch 'dev' into JustinDrake-patch-14 2019-05-13 16:29:29 -04:00
protolambda 08faa86d70
POC ssz types spec build + update spec defs, typing still needs work 2019-05-12 23:56:53 +02:00
Hsiao-Wei Wang 84472a5a6e
fix pyspec lint 2019-05-09 14:34:23 +08:00
Hsiao-Wei Wang ef41d7a064
No "import *" 2019-05-09 14:34:23 +08:00
Dankrad Feist ec230f443a
Merge branch 'dev' into dankrad-patch-7
# Conflicts:
#	specs/core/1_custody-game.md
#	specs/core/1_shard-data-chains.md
2019-05-09 01:00:25 +01:00
Dankrad Feist 6ab55efd3d
Phase 0 tests work on phase 1, yay :) 2019-05-08 23:30:08 +01:00
Danny Ryan 8da4b8173e
remove unnecessary import of copy 2019-05-08 14:49:53 -06:00
Justin Drake ecc6429b9e Address Danny's comment 2019-05-07 15:01:23 +01:00
Dankrad Feist 4ad92a0989
Fix typing 2019-05-07 13:23:28 +01:00
Dankrad Feist a604d03dff
Basic phase 1 pulling + correcting syntax errors in phase 1 2019-05-07 12:13:22 +01:00
Justin Drake 22b06d581d Update instances of int_to_bytes 2019-05-07 10:57:41 +01:00
Justin 9eeca0cdbd
Merge branch 'dev' into JustinDrake-patch-14 2019-05-07 10:16:38 +01:00
Justin Drake 50009ea85b Implement HW's exception-handling suggestion 2019-05-07 10:12:33 +01:00
Danny Ryan d15ca4c50c
replace asserts in get_active_index_root and get_randao_mix with comment 2019-05-02 18:11:11 -06:00
Danny Ryan b169c42339
fix underflows in generate_seed, get_randao_mix, and get_active_index_roots 2019-05-01 17:44:34 -06:00
Danny Ryan ef72b7ec20
Merge branch 'master' into vbuterin-patch-2 2019-05-01 16:19:21 -06:00
Danny Ryan 8f2c7a3663
revert cache to compute_committee 2019-05-01 12:56:48 -06:00
Danny Ryan b3373a2d71
fix up some PR feedback and testing for #1009 2019-04-30 12:55:14 -06:00
Hsiao-Wei Wang fc7d57eec6
PEP8-ish clean up 2019-04-25 16:03:02 +08:00
protolambda 23d6b468e3 Work towards testing all edge-cases of SSZ, for known (static) object types 2019-04-19 12:06:00 +10:00
Hsiao-Wei Wang 110af997cd Update scripts/phase0/function_puller.py
Co-Authored-By: protolambda <proto@protolambda.com>
2019-04-16 13:32:28 +10:00
protolambda 18d54fa1f8
fix deposit contract placeholder address length 2019-04-14 19:38:37 +10:00
protolambda db91c7fe9e
Work for new pyspec based test generators 2019-04-10 21:45:46 +10:00
protolambda 9eb640dd3b
intro configuration support pkg 2019-04-07 17:02:20 +10:00
protolambda 9e010da118
rename pyspec pkg to eth2spec 2019-04-03 14:18:17 +11:00
protolambda 00c3c1e2a6
rename eth2 pkg to pyspec, per request of hww 2019-03-30 00:24:04 +08:00
protolambda a106edacad
Scope pyspec packages, make pyspec more readable, fix imports 2019-03-28 01:21:07 +08:00
protolambda 53e528e56c
work in progress: setup test libs, pyspec, pytests 2019-03-28 00:28:20 +08:00
Danny Ryan 009563b2c3
fix a few bugs in testing compute_committee 2019-03-19 11:15:51 -06:00
Hsiao-Wei Wang a07219c570
Fix linter 2019-03-19 11:39:19 +08:00
Danny Ryan 6715a0d4cc
reconfigure build a bit 2019-03-18 14:14:26 -06:00
Danny Ryan 839590b5f4
initial pytests passing 2019-03-18 12:51:52 -06:00
Danny Ryan 828dd455ba
add basic dependencies and build script for phase0 testing 2019-03-18 10:18:57 -06:00