2019-03-05 22:54:08 +00:00
|
|
|
import
|
2019-03-12 12:56:33 +00:00
|
|
|
beacon_chain/version as ver
|
2019-03-05 22:54:08 +00:00
|
|
|
|
2018-07-20 13:46:03 +00:00
|
|
|
packageName = "beacon_chain"
|
2019-03-05 22:54:08 +00:00
|
|
|
version = versionAsStr
|
2018-07-20 13:46:03 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
2018-09-26 16:26:39 +00:00
|
|
|
description = "Eth2.0 research implementation of the beacon chain"
|
2018-07-20 13:46:03 +00:00
|
|
|
license = "MIT or Apache License 2.0"
|
2018-12-21 22:37:46 +00:00
|
|
|
installDirs = @["beacon_chain", "research"]
|
|
|
|
bin = @[
|
|
|
|
"beacon_chain/beacon_node",
|
|
|
|
"beacon_chain/validator_keygen",
|
2018-12-27 20:14:37 +00:00
|
|
|
"research/serialized_sizes",
|
|
|
|
"research/state_sim",
|
|
|
|
]
|
2018-07-20 13:46:03 +00:00
|
|
|
|
|
|
|
### Dependencies
|
2019-02-07 11:02:40 +00:00
|
|
|
requires "nim >= 0.19.0",
|
2019-02-06 17:56:04 +00:00
|
|
|
"eth",
|
2018-09-26 16:26:39 +00:00
|
|
|
"nimcrypto",
|
2019-02-21 04:42:17 +00:00
|
|
|
"blscurve",
|
2018-11-26 16:26:54 +00:00
|
|
|
"ranges",
|
2018-11-23 23:58:49 +00:00
|
|
|
"chronicles",
|
|
|
|
"confutils",
|
|
|
|
"serialization",
|
|
|
|
"json_serialization",
|
2019-02-06 17:56:04 +00:00
|
|
|
"json_rpc",
|
2019-03-01 23:50:01 +00:00
|
|
|
"chronos",
|
2019-03-05 22:54:08 +00:00
|
|
|
"yaml",
|
|
|
|
"libp2p"
|
2018-07-20 13:46:03 +00:00
|
|
|
|
|
|
|
### Helper functions
|
|
|
|
proc test(name: string, defaultLang = "c") =
|
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
--run
|
|
|
|
switch("out", ("./build/" & name))
|
2019-03-20 20:01:48 +00:00
|
|
|
switch("opt", "speed")
|
2018-07-20 13:46:03 +00:00
|
|
|
setCommand defaultLang, "tests/" & name & ".nim"
|
|
|
|
|
|
|
|
### tasks
|
|
|
|
task test, "Run all tests":
|
|
|
|
test "all_tests"
|