Merge pull request #80 from status-im/nimble-lock-file

Nimble lock file
This commit is contained in:
zah 2022-04-12 19:24:43 +03:00 committed by GitHub
commit 4bf28f1619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 384 additions and 13 deletions

4
.gitignore vendored
View File

@ -12,6 +12,10 @@ build/
# Nimble packages
/vendor/.nimble
# Nimble user files
nimble.develop
nimble.paths
# vscode
.vscode

View File

@ -67,3 +67,8 @@ switch("warning", "ObservableStores:off")
# Too many false positives for "Warning: method has lock level <unknown>, but another method has 0 [LockLevel]"
switch("warning", "LockLevel:off")
switch("define", "chronicles_sinks=textlines[dynamic],json[dynamic]")
# begin Nimble config (version 1)
when system.fileExists("nimble.paths"):
include "nimble.paths"
# end Nimble config

View File

@ -4,21 +4,32 @@ version = "0.1.0"
author = "Dagger Team"
description = "p2p data durability engine"
license = "MIT"
binDir = "build"
srcDir = "."
requires "libp2p#unstable",
"nimcrypto >= 0.4.1",
requires "nim >= 1.2.0",
"asynctest >= 0.3.0 & < 0.4.0",
"bearssl >= 0.1.4",
"chronicles >= 0.7.2",
"chronos >= 2.5.2",
"confutils",
"ethers >= 0.1.3 & < 0.2.0",
"libbacktrace",
"libp2p",
"metrics",
"secp256k1",
"stew#head",
"protobufserialization >= 0.2.0 & < 0.3.0",
"https://github.com/status-im/nim-nitro >= 0.4.0 & < 0.5.0",
"https://github.com/status-im/nim-ethers >= 0.1.3 & < 0.2.0",
"nimcrypto >= 0.4.1",
"nitro >= 0.4.0 & < 0.5.0",
"presto",
"protobuf_serialization >= 0.2.0 & < 0.3.0",
"questionable >= 0.9.1 & < 0.10.0",
"upraises >= 0.1.0 & < 0.2.0",
"asynctest >= 0.3.0 & < 0.4.0"
"secp256k1",
"stew",
"upraises >= 0.1.0 & < 0.2.0"
when declared(namedBin):
namedBin = {
"dagger/dagger": "dagger"
}.toTable()
### Helper functions
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
@ -30,15 +41,15 @@ proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
extra_params &= " " & paramStr(i)
exec "nim " & lang & " --out:build/" & name & " " & extra_params & " " & srcDir & name & ".nim"
proc test(name: string, srcDir = "tests/", params = "-d:chronicles_log_level=DEBUG", lang = "c") =
buildBinary name, srcDir, params
proc test(name: string, srcDir = "tests/", lang = "c") =
buildBinary name, srcDir
exec "build/" & name
task testDagger, "Build & run Dagger tests":
test "testDagger", params = "-d:chronicles_log_level=WARN"
test "testDagger"
task testContracts, "Build & run Dagger Contract tests":
test "testContracts", "tests/", "-d:chronicles_log_level=WARN"
test "testContracts"
task test, "Run tests":
testDaggerTask()

348
nimble.lock Normal file
View File

@ -0,0 +1,348 @@
{
"version": 1,
"packages": {
"stew": {
"version": "0.1.0",
"vcsRevision": "bb705bf17b46d2c8f9bfb106d9cc7437009a2501",
"url": "https://github.com/status-im/nim-stew",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "adac4b56a0dc35b1f5fc8fb66e8bb182100c857a"
}
},
"unittest2": {
"version": "0.0.3",
"vcsRevision": "24eb5e829ed07e71e3a5d09786d5f80aa988874f",
"url": "https://github.com/status-im/nim-unittest2.git",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "0140709df36bca378cfa8678e04082f9a1fccabf"
}
},
"httputils": {
"version": "0.3.0",
"vcsRevision": "40048e8b3e69284bdb5d4daa0a16ad93402c55db",
"url": "https://github.com/status-im/nim-http-utils",
"downloadMethod": "git",
"dependencies": [
"stew",
"unittest2"
],
"checksums": {
"sha1": "7a3ddd118b1f5eecd413a2effcc289cd19cb812e"
}
},
"nimcrypto": {
"version": "0.5.4",
"vcsRevision": "a5742a9a214ac33f91615f3862c7b099aec43b00",
"url": "https://github.com/cheatfate/nimcrypto",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "f76c87707cd4e96355b8bb6ef27e7f8b0aac1e08"
}
},
"questionable": {
"version": "0.9.1",
"vcsRevision": "54516fd2d1afb9ac556099c061ec60aa201cae74",
"url": "https://github.com/markspanbroek/questionable",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "534951f20e446566ab1f2a412a924b1f0da943af"
}
},
"upraises": {
"version": "0.1.0",
"vcsRevision": "d9f268db1021959fe0f2c7a5e49fba741f9932a0",
"url": "https://github.com/markspanbroek/upraises",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "176234f808b44a0be763df706ed634d6e8df17bb"
}
},
"secp256k1": {
"version": "0.5.2",
"vcsRevision": "e092373a5cbe1fa25abfc62e0f2a5f138dc3fb13",
"url": "https://github.com/status-im/nim-secp256k1",
"downloadMethod": "git",
"dependencies": [
"stew",
"nimcrypto"
],
"checksums": {
"sha1": "75aafb13984bb6006e3c2a1e74be19ff40a08b0f"
}
},
"stint": {
"version": "0.0.1",
"vcsRevision": "ddfa6c608a6c2a843d7b405f377a22703947267a",
"url": "https://github.com/status-im/nim-stint",
"downloadMethod": "git",
"dependencies": [
"stew"
],
"checksums": {
"sha1": "b08fe1fc190d9e07016cd4047d872836264adebe"
}
},
"nitro": {
"version": "0.4.0",
"vcsRevision": "adcd534eb57be1c2535c2b34c62c8dd45e9e8252",
"url": "https://github.com/status-im/nim-nitro",
"downloadMethod": "git",
"dependencies": [
"nimcrypto",
"questionable",
"upraises",
"secp256k1",
"stint",
"stew"
],
"checksums": {
"sha1": "a1d33ed5176aa7c0bc112d5174187afee888e58d"
}
},
"bearssl": {
"version": "0.1.5",
"vcsRevision": "ba80e2a0d7ae8aab666cee013e38ff8d33a3e5e7",
"url": "https://github.com/status-im/nim-bearssl",
"downloadMethod": "git",
"dependencies": [
"unittest2"
],
"checksums": {
"sha1": "383abd5becc77bf8e365b780a29d20529e1d9c4c"
}
},
"chronos": {
"version": "3.0.11",
"vcsRevision": "b47b2a96ce824fa331a76877df0b1764a0bcb6d9",
"url": "https://github.com/status-im/nim-chronos",
"downloadMethod": "git",
"dependencies": [
"stew",
"bearssl",
"httputils",
"unittest2"
],
"checksums": {
"sha1": "b74877f986ee5128261dc863c647cbfbc895a686"
}
},
"testutils": {
"version": "0.4.2",
"vcsRevision": "aa6e5216f4b4ab5aa971cdcdd70e1ec1203cedf2",
"url": "https://github.com/status-im/nim-testutils",
"downloadMethod": "git",
"dependencies": [
"unittest2"
],
"checksums": {
"sha1": "94427e0cce0e0c5841edcd3a6530b4e6b857a3cb"
}
},
"faststreams": {
"version": "0.3.0",
"vcsRevision": "37a183153c071539ab870f427c09a1376ba311b9",
"url": "https://github.com/status-im/nim-faststreams",
"downloadMethod": "git",
"dependencies": [
"stew",
"testutils",
"chronos",
"unittest2"
],
"checksums": {
"sha1": "5f7dbee99012f64e5d2365337e0a1fa056af63a0"
}
},
"serialization": {
"version": "0.1.0",
"vcsRevision": "37bc0db558d85711967acb16e9bb822b06911d46",
"url": "https://github.com/status-im/nim-serialization",
"downloadMethod": "git",
"dependencies": [
"faststreams",
"unittest2",
"stew"
],
"checksums": {
"sha1": "5420a09b1d955e77971389852951892f42150241"
}
},
"json_serialization": {
"version": "0.1.0",
"vcsRevision": "4b8f487d2dfdd941df7408ceaa70b174cce02180",
"url": "https://github.com/status-im/nim-json-serialization",
"downloadMethod": "git",
"dependencies": [
"serialization",
"stew"
],
"checksums": {
"sha1": "942d54991c742b5d21c6999b0481e0f276650c62"
}
},
"chronicles": {
"version": "0.10.2",
"vcsRevision": "2a2681b60289aaf7895b7056f22616081eb1a882",
"url": "https://github.com/status-im/nim-chronicles",
"downloadMethod": "git",
"dependencies": [
"testutils",
"json_serialization"
],
"checksums": {
"sha1": "25a184d59b6ffa7e47498a56a12f8a313c748863"
}
},
"presto": {
"version": "0.0.4",
"vcsRevision": "22746c5cd20522176a4a4de1d660c735087517e9",
"url": "https://github.com/status-im/nim-presto",
"downloadMethod": "git",
"dependencies": [
"chronos",
"chronicles",
"stew"
],
"checksums": {
"sha1": "7b7b6977d77fa4b403c7ce6fc11de7a46950fe6d"
}
},
"zlib": {
"version": "0.1.0",
"vcsRevision": "74cdeb54b21bededb5a515d36f608bc1850555a2",
"url": "https://github.com/status-im/nim-zlib",
"downloadMethod": "git",
"dependencies": [
"stew"
],
"checksums": {
"sha1": "01d330dc4c1924e56b1559ee73bc760e526f635c"
}
},
"libbacktrace": {
"version": "0.0.8",
"vcsRevision": "ce966b1c469dda179b54346feaaf1a62202c984f",
"url": "https://github.com/status-im/nim-libbacktrace",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "ba7a2f3d21db894ace7bb4ebe0a5b06af995d68b"
}
},
"dnsclient": {
"version": "0.1.0",
"vcsRevision": "647ed10deca7758a147c7f0af90d5addfe514c0f",
"url": "https://github.com/ba0f3/dnsclient.nim",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "ddf1f02944db2802fbb9dfe8b11085681b3b2a46"
}
},
"metrics": {
"version": "0.0.1",
"vcsRevision": "71e0f0e354e1f4c59e3dc92153989c8b723c3440",
"url": "https://github.com/status-im/nim-metrics",
"downloadMethod": "git",
"dependencies": [
"chronos"
],
"checksums": {
"sha1": "86da251fe532ef2163da30343688ab1c148c0340"
}
},
"asynctest": {
"version": "0.3.0",
"vcsRevision": "3882ed64ed3159578f796bc5ae0c6b13837fe798",
"url": "https://github.com/markspanbroek/asynctest",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "7a3182c135b291e8e486d83accfc6d960cf75191"
}
},
"websock": {
"version": "0.1.0",
"vcsRevision": "73edde4417f7b45003113b7a34212c3ccd95b9fd",
"url": "https://github.com/status-im/nim-websock",
"downloadMethod": "git",
"dependencies": [
"chronos",
"httputils",
"chronicles",
"stew",
"asynctest",
"nimcrypto",
"bearssl",
"zlib"
],
"checksums": {
"sha1": "ec2b137543f280298ca48de9ed4461a033ba88d3"
}
},
"libp2p": {
"version": "0.0.2",
"vcsRevision": "58f383e661521314df314e7096c24db5a7490372",
"url": "https://github.com/status-im/nim-libp2p",
"downloadMethod": "git",
"dependencies": [
"nimcrypto",
"dnsclient",
"bearssl",
"chronicles",
"chronos",
"metrics",
"secp256k1",
"stew",
"websock"
],
"checksums": {
"sha1": "58b1e544b91c886a4633946e9685d043417eaf16"
}
},
"combparser": {
"version": "0.2.0",
"vcsRevision": "ba4464c005d7617c008e2ed2ebc1ba52feb469c6",
"url": "https://github.com/PMunch/combparser",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "a3635260961a893b88f69aac19f1b24e032a7e97"
}
},
"protobuf_serialization": {
"version": "0.2.0",
"vcsRevision": "ae13ff450b9e578d611fea2609aee46fdbd6ca99",
"url": "https://github.com/status-im/nim-protobuf-serialization",
"downloadMethod": "git",
"dependencies": [
"stew",
"faststreams",
"serialization",
"combparser"
],
"checksums": {
"sha1": "8ea4647243be61be816f3a15239e648d1a9c1aed"
}
},
"confutils": {
"version": "0.1.0",
"vcsRevision": "0435e67832b6bb8dfdf0ddb102903e9d820206d2",
"url": "https://github.com/status-im/nim-confutils",
"downloadMethod": "git",
"dependencies": [
"stew"
],
"checksums": {
"sha1": "1edab14b434aca6ae28e2385982fa60d623c600a"
}
}
}
}

View File

@ -1,3 +1,4 @@
--path:".."
--threads:on
--tlsEmulation:off
-d:chronicles_log_level=DEBUG

View File

@ -0,0 +1 @@
-d:chronicles_log_level=WARN

1
tests/testDagger.nim.cfg Normal file
View File

@ -0,0 +1 @@
-d:chronicles_log_level=WARN