diff --git a/.gitignore b/.gitignore index ec02f99..04b390e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # Project -nimbus_node_manager -nimbus_node_manager.exe +status_node_manager +status_node_manager.exe # Nim cache nimcache diff --git a/Makefile b/Makefile index 15241ef..ae0c9f8 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ clean: | clean-librln ################## waku-utils: | librln - nim wakuUtils $(NIM_PARAMS) nimbus_node_manager.nims + nim wakuUtils $(NIM_PARAMS) status_node_manager.nims waku-utils-example: | librln - nim wakuUtilsExamples $(NIM_PARAMS) nimbus_node_manager.nims + nim wakuUtilsExamples $(NIM_PARAMS) status_node_manager.nims diff --git a/config.nims b/config.nims index 933d84f..0ccafc1 100644 --- a/config.nims +++ b/config.nims @@ -9,3 +9,4 @@ when withDir(thisDir(), system.fileExists("nimble.paths")): --excessiveStackTrace:on # enable metric collection --define:metrics +--path:"src" diff --git a/nimbus_node_manager.nimble b/nimbus_node_manager.nimble deleted file mode 100644 index d0e55ef..0000000 --- a/nimbus_node_manager.nimble +++ /dev/null @@ -1,30 +0,0 @@ -# Package - -version = "0.1.0" -author = "Emil Ivanichkov" -description = "Nimbus Node Manager" -license = "MIT" -srcDir = "src" -installExt = @["nim"] -bin = @["nimbus_node_manager"] - - -# Dependencies - -requires "nim >= 1.6.14", - "waku", - "libp2p#head", - "unittest2 == 0.2.1", - "confutils#head", - "serialization", - "untar", - "presto", - "stew", - "chronos#head", - "nimcrypto", - "eth", - "prompt", - "chronicles", - "metrics", - "https://github.com/status-im/nim-dnsdisc", - "web3#428b931e7c4f1284b4272bc2c11fca2bd70991cd" diff --git a/src/nimbus_node_manager.nim b/src/nimbus_node_manager.nim index d0a0bc9..8564ac5 100644 --- a/src/nimbus_node_manager.nim +++ b/src/nimbus_node_manager.nim @@ -1,7 +1,7 @@ # This is just an example to get you started. A typical hybrid package # uses this file as the main entry point of the application. -import nimbus_node_managerpkg/submodule +import status_node_manager/submodule when isMainModule: echo(getWelcomeMessage()) diff --git a/src/nimbus_node_managerpkg/submodule.nim b/src/status_node_manager/submodule.nim similarity index 70% rename from src/nimbus_node_managerpkg/submodule.nim rename to src/status_node_manager/submodule.nim index c09f84c..2679348 100644 --- a/src/nimbus_node_managerpkg/submodule.nim +++ b/src/status_node_manager/submodule.nim @@ -1,5 +1,5 @@ # This is just an example to get you started. Users of your hybrid library will -# import this file by writing ``import nimbus_node_managerpkg/submodule``. Feel free to rename or +# import this file by writing ``import status_node_manager/submodule``. Feel free to rename or # remove this file altogether. You may create additional modules alongside # this file as required. diff --git a/status_node_manager.nimble b/status_node_manager.nimble new file mode 100644 index 0000000..99f46cb --- /dev/null +++ b/status_node_manager.nimble @@ -0,0 +1,29 @@ +# Package + +version = "0.1.0" +author = "Status Research & Development GmbH" +description = "Back-end service for the Status node management GUI" +license = "MIT or Apache License 2.0" +srcDir = "src" +installExt = @["nim"] +bin = @["status_node_manager"] + +# Dependencies + +requires "nim >= 1.6.14", + "waku", + "libp2p", + "unittest2 >= 0.2.1", + "confutils", + "serialization", + "untar", + "presto", + "stew", + "chronos", + "nimcrypto", + "eth", + "prompt", + "chronicles", + "metrics", + "dnsdisc", + "web3" diff --git a/nimbus_node_manager.nims b/status_node_manager.nims similarity index 100% rename from nimbus_node_manager.nims rename to status_node_manager.nims diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..b2275a7 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,2 @@ +test1 +test1.exe diff --git a/tests/test1.nim b/tests/test1.nim index 0b24e96..fc60e66 100644 --- a/tests/test1.nim +++ b/tests/test1.nim @@ -7,6 +7,6 @@ import unittest -import nimbus_node_managerpkg/submodule +import status_node_manager/submodule test "correct welcome": check getWelcomeMessage() == "Hello, World!"