2019-08-01 14:55:40 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
2018-12-21 17:27:09 +00:00
|
|
|
version = "0.0.1"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "This is the humble begginings of library similar to web3.[js|py]"
|
|
|
|
license = "MIT or Apache License 2.0"
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
requires "nim >= 0.18.0"
|
|
|
|
requires "chronicles"
|
2019-06-10 10:57:51 +00:00
|
|
|
requires "chronos"
|
2020-07-09 22:07:58 +00:00
|
|
|
requires "eth"
|
|
|
|
requires "faststreams"
|
2018-12-21 17:27:09 +00:00
|
|
|
requires "json_rpc"
|
2020-07-09 22:07:58 +00:00
|
|
|
requires "json_serialization"
|
|
|
|
requires "nimcrypto"
|
2019-08-24 19:48:57 +00:00
|
|
|
requires "stew"
|
2020-07-09 22:07:58 +00:00
|
|
|
requires "stint"
|
2019-06-12 16:46:29 +00:00
|
|
|
|
2018-12-21 17:27:09 +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"
|