Commit Graph

61 Commits

Author SHA1 Message Date
Emil Ivanichkov 1e697e253e feat(SNM): Initial implementation of `doRunStatusNodeManager`
This includes:
- Initial implementation of global state object called `SNM`
- It's corresponding `init` & `run` functions that initialize and start
a rest server
- Formatting improvements in the `import` section of
  `src/status_node_manager.nim`
2024-03-08 18:10:12 +02:00
Emil Ivanichkov e79d36b411 feat(rest): Add common `rest server` utils 2024-03-08 18:10:12 +02:00
Emil Ivanichkov d69a0206a7 feat(rest): Add common `serialization` utils 2024-03-08 18:10:12 +02:00
Emil Ivanichkov 40543e3706 feat(SNM config): Add `rest` config params 2024-03-08 18:10:12 +02:00
Emil Ivanichkov 2ddcb2863f fix(.gitignore): Do not ignore `src/status_node_manager` 2024-03-07 18:40:35 +02:00
Emil Ivanichkov 93de2f4792 fix(build): Fix build after `nwaku` pkg bump 2024-03-05 11:03:16 +02:00
Emil Ivanichkov 6831b73f13 chore(nimble): Bump `nwaku` & `nim-metrics` 2024-03-05 11:03:16 +02:00
Emil Ivanichkov 8f4aaaf95e fix(nims): Fix paths in example tasks 2024-03-05 11:03:16 +02:00
Emil Ivanichkov c1709f8c0c config(git): Use `https` in `.gitmodules` 2024-03-05 10:11:53 +02:00
Emil Ivanichkov ee19a3a443 build(nimble): Add `before build` step 2024-03-05 10:11:53 +02:00
Emil Ivanichkov 67029328e9 build(nimble): Add nim link flags related to rln
This is a temporary solution to ensure that `nimble build` will succeed
2024-03-05 10:11:53 +02:00
Emil Ivanichkov fa6fdc5d53 feat(cli/pair): Implement `pair` CLI command 2024-03-05 10:11:53 +02:00
Emil Ivanichkov b188b19e62 feat(cli/pair): Add configuration for `pair` CLI command 2024-03-05 10:11:53 +02:00
Emil Ivanichkov d150d6d60a build(SNM): Add task and make command for building `status-node-manager` 2024-03-05 10:11:53 +02:00
Emil Ivanichkov d7a4f0b246 feat(waku-utils): Add function that performs pairing
A single function that set-up and start nwaku instance, init and
finalize handshake (pairing) and return 2 objects - Waku node &
handshake result. They can be used for future message transfers.
2024-03-05 10:11:53 +02:00
Emil Ivanichkov 0e955cb653 chore(folder names): Rename `waku-utils` to `waku_utils`
It is more Nim friendly this way
2024-03-05 10:11:53 +02:00
Emil Ivanichkov 8d85619eb0 refactor(waku utils): Minor improvements
- Fix types
- Remove unused variables
- Formating changes
2024-03-05 10:11:53 +02:00
Emil Ivanichkov e4695e382c refactor(ci): Split `Install dependencies` step from `Run tests` 2024-02-29 09:41:31 +02:00
Emil Ivanichkov ac56cf7e67 refactor(ci): Allow failure on Windows
This is a temporary change, as there is currently a problem on
Windows that requires investigation.

More information about the problem can be found here https://github.com/status-im/status-node-manager/issues/9.
2024-02-29 09:41:31 +02:00
Emil Ivanichkov 12af66cef2 refactor(ci): Test only with `nim version 1.6`
`nwaku` is built on the `nimbus-build-system` that is based on
`nim 1.6.18`, and is therefore not compatible with `2.0`
2024-02-29 09:41:31 +02:00
Emil Ivanichkov 93db4c8a84 refactor(ci): Remove `i386` cpu jobs
Running the status node manager on 32-bit architectures is highly
unlikely.
2024-02-29 09:41:31 +02:00
Emil Ivanichkov 7714f6d492 feat(waku utils): Add function that init and start `waku` instance 2024-02-12 16:15:01 +02:00
Emil Ivanichkov e9c728c64d config(tasks): Fix path of `nwaku` examples 2024-02-12 15:58:15 +02:00
Emil Ivanichkov e4b310467c feat(waku examples): Add examples of pairing with `nwaku` instance 2024-02-12 15:58:15 +02:00
Emil Ivanichkov 572c240c35 config(tasks): Add build task for `js-waku` example 2024-02-12 15:58:15 +02:00
Emil Ivanichkov f13adff445 feat(waku examples): Add examples of pairing with `js-waku` instance 2024-02-12 15:58:13 +02:00
Emil Ivanichkov bac788bbdc refactor(format): Imports and formatting improvements 2024-02-08 17:05:17 +02:00
Emil Ivanichkov 3b625211f2 feat(waku-utils): Implement `initiatorHandshake`
closes https://github.com/status-im/status-node-manager/issues/7
2024-02-08 17:05:17 +02:00
Emil Ivanichkov 428ed13946 fix(waku-utils): Set `transportMessage` to correct value 2024-02-08 17:05:17 +02:00
Emil Ivanichkov 3a52927a55 config(nimcache) Use full path for nim cache in `config.nims` 2024-02-02 21:07:13 +02:00
Emil Ivanichkov c94a8b77f8 config(libbacktrace): Disable `libbacktrace` 2024-02-02 21:07:13 +02:00
Emil Ivanichkov 982459187b build(Makefile): Set up `libbacktrace` make instructions 2024-02-02 21:07:13 +02:00
Emil Ivanichkov 73ae79ce29 chore(nimble): Add `libbacktrace` to the dependencies 2024-02-02 21:07:13 +02:00
Emil Ivanichkov 828cc4d580 config(verbosity): Set up verbosity level during building 2024-02-02 21:07:13 +02:00
Emil Ivanichkov ac63e53d49 config(logging): Add `chronicles` configuration 2024-02-02 21:07:13 +02:00
Emil Ivanichkov ba5c3a85f6 config(discovery): Set `discv5_protocol_id` to `d5waku`
Upon detailed examination, it was discovered that the discrepancy
described in #6 originated due to the absence of this define in
the `status-node-manager`'s config.
2024-02-02 21:07:13 +02:00
Emil Ivanichkov 7b2f06ad8b refactor(config.nim): Sync `config.nim` with the one in `nwaku` 2024-02-02 21:07:13 +02:00
Emil Ivanichkov 27cbacfbd0 fix(ci): Use the local `nim_build.sh` in `Build Nim and Nimble` step 2024-02-01 11:03:11 +02:00
Emil Ivanichkov 75f2514e61 feat(scripts): Add `build_nim.sh` script for the CI
This is custom version of the
[`build_nim.sh`](https://github.com/status-im/nimbus-build-system/blob/master/scripts/build_nim.sh) script used by Status
The difference is that we use newer version of `nimble`
2024-02-01 11:03:11 +02:00
Zahary Karadjov fdede4171b fix(CI): Setting NIMBLE_COMMIT alone is not enough to force a Nimble build 2024-02-01 11:03:11 +02:00
Zahary Karadjov 714abe5d35 fix(CI): Switch to the latest Nimble 2024-02-01 11:03:11 +02:00
Emil Ivanichkov 7b8bd8964e chore(nimble): Update `nimble.lock` file 2024-01-19 16:16:08 +02:00
Emil Ivanichkov adca5d0389 chore(nix): Update `nim` version to `1.6.18` in the dev env 2024-01-19 16:15:51 +02:00
Zahary Karadjov 621cf9750b
docs: Add README 2024-01-13 22:24:59 +02:00
Zahary Karadjov d1ef092006 feat: Add an example confutils setup 2024-01-13 16:28:27 +02:00
zah 734ffbef72
Merge pull request #1 from status-im/add-ci
config(github): Add CI workflow
2024-01-13 15:27:11 +02:00
Zahary Karadjov 7b2ab4cf93
config(github): Add CI workflow 2024-01-13 15:23:24 +02:00
Zahary Karadjov 859bb13b43
chore: rename to status_node_manager; config: make sure nimble test works 2024-01-13 15:20:46 +02:00
Zahary Karadjov 4519b41aea
chore(nix): Make the flake compatible with macOS 2024-01-13 14:16:12 +02:00
Emil Ivanichkov 8488fa343c config(build): Add building utils 2024-01-11 18:07:57 +02:00