forked from status-im/nimbus-eth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beacon_chain.nimble
92 lines (82 loc) · 1.97 KB
/
beacon_chain.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# beacon_chain
# Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
mode = ScriptMode.Verbose
version = "1.4.2"
author = "Status Research & Development GmbH"
description = "The Nimbus beacon chain node is a highly efficient Ethereum 2.0 client"
license = "MIT or Apache License 2.0"
requires(
"nim >= 1.6.12",
"https://github.com/status-im/NimYAML",
"bearssl",
"blscurve",
"chronicles",
"chronos",
"confutils",
"eth",
"faststreams",
"httputils",
"json_rpc",
"json_serialization",
"libbacktrace",
"libp2p",
"metrics",
"nat_traversal",
"nimcrypto",
"normalize",
"presto",
"secp256k1",
"serialization",
"snappy",
"sqlite3_abi",
"ssz_serialization",
"stew",
"stint",
"taskpools",
"testutils",
"unicodedb >= 0.10",
"unittest2",
"web3",
"zlib",
"zxcvbn"
)
requires "https://gitlab.com/status-im/nimbus-security-resources.git"
import tables
let namedBin = {
"beacon_chain/nimbus_beacon_node": "nimbus_beacon_node",
"beacon_chain/nimbus_validator_client": "nimbus_validator_client",
"ncli/ncli": "ncli",
}.toTable()
binDir = "build"
skipDirs = @[
".github",
".vscode",
"docker",
"grafana",
"installer",
"media",
"nfuzz",
"research",
"scripts",
"tests",
"tools",
"vendor",
"wasm",
]
proc getLang(): string =
var lang = "c"
if existsEnv"TEST_LANG":
lang = getEnv"TEST_LANG"
lang
proc test(name: string, defaultLang = getLang()) =
if not dirExists "build":
mkDir "build"
--run
switch("out", ("./build/" & name))
setCommand defaultLang, "tests/" & name & ".nim"
task test, "Run all tests":
test "all_tests"