Commit Graph

34 Commits

Author SHA1 Message Date
Alex Beregszaszi 9fe3c2f62c
Add authors file (#33) 2020-05-15 19:26:29 +01:00
Alex Beregszaszi ebb06dd53f
Remove some warnings in tests (#32) 2020-05-15 19:25:45 +01:00
Alex Beregszaszi 15fcaa0828
Introduce build directory for artifacts (#31) 2020-05-15 18:23:58 +01:00
chriseth a2e1e5aef0
Use bytes8 index access (#19)
Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
2020-05-15 17:47:21 +01:00
MrChico 8f2c64485e
Use less constants and fold the expressions into require statements (#24) 2020-05-15 17:46:38 +01:00
Alex Beregszaszi d1a5556a74
Compare against eth2.0-specs v0.11.2 (#30) 2020-05-15 13:17:14 +01:00
Alex Beregszaszi 636f22f0ac
Move require(deposit_count) statement to where the value is used (post hash calculation) (#23)
This tightly couples all require statements to their places of use.
2020-05-15 13:14:39 +01:00
Alex Beregszaszi 15bcfbaf91
Use 0.6.8 features (#22) 2020-05-15 13:14:03 +01:00
Alex Beregszaszi 69d0e8069d
Enable optimizer and set to 5m runs (#28)
The `deposit` function can be used up to 2^32-1 times anyway.
2020-05-15 13:13:31 +01:00
Alex Beregszaszi 62e3281411
Lock in Solidity 0.6.8 on CircleCI (#27)
* Fix Makefile on macOS
* Lock circleci to solc:0.6.8-alpine
* Lock version to 0.6.8
2020-05-15 11:48:00 +01:00
Alex Beregszaszi 5e78324030
Split CircleCI jobs (#26) 2020-05-15 11:22:20 +01:00
MrChico 6c07707f1d
Add unit test and fuzzing against Vyper (#20) 2020-05-14 20:58:48 +01:00
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
Alex Beregszaszi 2b6c176043
Add ERC-165 support (#4) 2020-05-14 12:19:03 +01:00
Alex Beregszaszi 0b50a3e1f5
Use "literal metadata sources" setting (#21) 2020-05-14 11:46:54 +01:00
MrChico 48755f704f
Add revert reason strings (#11)
Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
2020-05-14 11:42:59 +01:00
Alex Beregszaszi 823e8a5c68
Add CircleCI configuration (#18)
* Simplify Makefile
* Add CircleCI configuration
2020-05-13 23:03:42 +01:00
Alex Beregszaszi d18c12b776
Move ABI checks to be first in the code (#10) 2020-05-13 16:49:07 +01:00
MrChico 4d493e70af
Require deposit to be divisible by GWEI (#14) 2020-05-13 16:45:05 +01:00
Alex Beregszaszi c24305d5d2
Clarify/remove some comments (#16)
* Remove assert(deposit_count <= 2**64-1) comment
* Remove the outdated TODO comment
* Rephrase some comments

Co-authored-by: MrChico <martin.lundfall@protonmail.com>
2020-05-13 15:56:36 +01:00
MrChico 9cdf14da99
Remove unused variable (#15) 2020-05-13 14:47:49 +01:00
MrChico b236ce7a9a
Defensive handling of dead path (#13) 2020-05-13 14:46:58 +01:00
Alex Beregszaszi df7c2c538a
Require deposit amount to fit into uint64 (#9)
Ref https://github.com/ethereum/eth2.0-specs/issues/1726
2020-05-13 14:41:37 +01:00
Alex Beregszaszi a8ed83e087
Inline bytesN(0) instead of custom zero_bytesN vars (#8)
Co-authored-by: Martin Lundfall <martin.lundfall@protonmail.com>
2020-05-12 19:04:18 +01:00
chriseth acb658fbda
Make use of constants. (#7) 2020-05-12 19:01:27 +01:00
Alex Beregszaszi cd323c75db
Drop masking because of explicit uint8 conversion (#5) 2020-05-12 18:59:15 +01:00
Alex Beregszaszi 9957540744 Consider get_deposit_count and get_deposit_root part of the external interface 2020-05-12 01:07:22 +01:00
Alex Beregszaszi 3aaf6f06ad Add license header and clarify comment 2020-05-12 01:06:31 +01:00
Alex Beregszaszi 2000988671 Fix a typo in the assertion (within the comments) 2020-04-16 18:12:58 +01:00
Alex Beregszaszi 304bdc9d4e Add .gitattributes with Solidity 2020-04-15 14:37:41 +01:00
Alex Beregszaszi faecab1100 Add Makefile and instructions for the tests in the README 2020-04-15 12:04:31 +01:00
Alex Beregszaszi b0c9d8c2fd Implement get_deposit_count() and get_deposit_root() 2020-04-15 02:40:46 +01:00
Alex Beregszaszi 65ce39b500 First implementation of the deposit() function only 2020-04-15 02:40:41 +01:00
Alex Beregszaszi f441301d16 Genesis 2020-04-15 00:32:40 +01:00