Commit Graph

26 Commits

Author SHA1 Message Date
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