Commit Graph

22 Commits

Author SHA1 Message Date
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 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 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 2b6c176043
Add ERC-165 support (#4) 2020-05-14 12:19:03 +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 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 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