2018-07-20 13:46:03 +00:00
|
|
|
packageName = "beacon_chain"
|
|
|
|
version = "0.0.1"
|
|
|
|
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-11-23 23:58:49 +00:00
|
|
|
installDirs = @["beacon_chain"]
|
|
|
|
bin = @["beacon_chain/beacon_node"]
|
2018-07-20 13:46:03 +00:00
|
|
|
|
|
|
|
### Dependencies
|
2018-09-26 16:26:39 +00:00
|
|
|
requires "nim >= 0.18.0",
|
|
|
|
"eth_common",
|
2018-11-23 23:58:49 +00:00
|
|
|
"eth_keys",
|
2018-09-26 16:26:39 +00:00
|
|
|
"nimcrypto",
|
2018-11-23 23:58:49 +00:00
|
|
|
"https://github.com/status-im/nim-milagro-crypto#master",
|
|
|
|
"eth_p2p",
|
2018-11-26 16:26:54 +00:00
|
|
|
"ranges",
|
2018-11-23 23:58:49 +00:00
|
|
|
"chronicles",
|
|
|
|
"confutils",
|
|
|
|
"serialization",
|
|
|
|
"json_serialization",
|
2018-11-26 16:26:54 +00:00
|
|
|
"json_rpc"
|
2018-07-20 13:46:03 +00:00
|
|
|
|
|
|
|
### Helper functions
|
|
|
|
proc test(name: string, defaultLang = "c") =
|
|
|
|
# TODO, don't forget to change defaultLang to `cpp` if the project requires C++
|
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
--run
|
|
|
|
switch("out", ("./build/" & name))
|
|
|
|
setCommand defaultLang, "tests/" & name & ".nim"
|
|
|
|
|
|
|
|
### tasks
|
|
|
|
task test, "Run all tests":
|
|
|
|
test "all_tests"
|