prysm-pulse/contracts/deposit-contract
Preston Van Loon eb694ab5d5
Update rules_go and fix proto conflicts (#8596)
* Update rules_go and fix proto conflicts

* gaz

* Update generated code

* more emptypb fixes

* gaz

Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-11 18:03:19 -06:00
..
abi.json Update run time to v0.9 (#3935) 2019-11-11 17:03:43 -05:00
BUILD.bazel Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
bytecode.bin Update to Discovery V5.1 (#7302) 2020-10-20 04:05:48 +00:00
deposit_tree_test.go Numeric conversion cleanup (#7465) 2020-10-13 12:43:49 +00:00
depositContract_test.go Unnecessary Slice-to-Slice Conversion analyzer (#7321) 2020-09-23 16:14:34 +00:00
depositContract.go Update to Discovery V5.1 (#7302) 2020-10-20 04:05:48 +00:00
depositContract.v.py Update run time to v0.9 (#3935) 2019-11-11 17:03:43 -05:00
ETH1logs.go Update to Discovery V5.1 (#7302) 2020-10-20 04:05:48 +00:00
README.md Fix Up READMEs for Mainnet (#7910) 2020-11-23 18:47:55 +00:00
testutils.go Unnecessary Slice-to-Slice Conversion analyzer (#7321) 2020-09-23 16:14:34 +00:00

Prysm Internal Validator Deposit Contract

NOTE: THIS IS NOT THE OFFICIAL ETH2 VALIDATOR DEPOSIT CONTRACT. THE OFFICIAL CONTRACT CAN ONLY BE FOUND HERE. THE ONLY DEPOSIT CONTRACT ON MAINNET HAS ADDRESS 0x00000000219ab540356cbb839cbe05303d7705fa. DO NOT USE THE CONTRACT IN THIS FOLDER OUTSIDE OF DEVELOPMENT

How to execute tests

bazel test //contracts/deposit-contract:go_default_test

Run with -v option for detailed log output

bazel test //contracts/deposit-contract:go_default_test --test_arg=-test.v --test_output=streamed 
=== RUN   TestSetupRegistrationContract_OK
--- PASS: TestSetupRegistrationContract_OK (0.07s)
=== RUN   TestRegister_Below1ETH
--- PASS: TestRegister_Below1ETH (0.02s)
=== RUN   TestRegister_Above32Eth
--- PASS: TestRegister_Above32Eth (0.02s)
=== RUN   TestValidatorRegister_OK
--- PASS: TestValidatorRegister_OK (0.08s)
=== RUN   TestDrain
--- PASS: TestDrain (0.04s)
PASS
ok      contracts/deposit-contract        0.633s