From 422d314248fb39848fa4089153e7d003f77ff68c Mon Sep 17 00:00:00 2001 From: dynco-nym <173912580+dynco-nym@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:54:29 +0100 Subject: [PATCH] Revert magura changes on NS API --- Cargo.lock | 1034 ++++++++++++----- nym-node-status-agent/Cargo.toml | 2 +- nym-node-status-api/Cargo.toml | 12 +- nym-node-status-api/migrations/000_init.sql | 2 +- nym-node-status-api/src/db/models.rs | 2 +- .../src/db/queries/gateways.rs | 6 +- nym-node-status-api/src/monitor/mod.rs | 105 +- 7 files changed, 753 insertions(+), 410 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7e90ec8c48..e69036957c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2176,8 +2176,8 @@ dependencies = [ "cosmwasm-std", "cosmwasm-storage", "cw-storage-plus", - "nym-coconut-dkg-common", - "nym-contracts-common", + "nym-coconut-dkg-common 0.1.0", + "nym-contracts-common 0.5.0", ] [[package]] @@ -2438,13 +2438,13 @@ dependencies = [ "itertools 0.13.0", "log", "maxminddb", - "nym-bin-common", - "nym-contracts-common", + "nym-bin-common 0.6.0", + "nym-contracts-common 0.5.0", "nym-explorer-api-requests", - "nym-mixnet-contract-common", - "nym-network-defaults", + "nym-mixnet-contract-common 0.6.0", + "nym-network-defaults 0.1.0", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "okapi", "pretty_env_logger", "rand", @@ -3437,11 +3437,11 @@ dependencies = [ "clap 4.5.18", "dirs", "importer-contract", - "nym-bin-common", - "nym-mixnet-contract-common", - "nym-network-defaults", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-bin-common 0.6.0", + "nym-mixnet-contract-common 0.6.0", + "nym-network-defaults 0.1.0", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "serde", "serde_json", "tokio", @@ -4110,8 +4110,8 @@ dependencies = [ "async-trait", "futures", "js-sys", - "nym-bin-common", - "nym-http-api-client", + "nym-bin-common 0.6.0", + "nym-http-api-client 0.1.0", "nym-ordered-buffer", "nym-service-providers-common", "nym-socks5-requests", @@ -4476,37 +4476,37 @@ dependencies = [ "humantime-serde", "itertools 0.13.0", "k256", - "nym-api-requests", + "nym-api-requests 0.1.0", "nym-bandwidth-controller", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-coconut", - "nym-coconut-dkg-common", - "nym-compact-ecash", - "nym-config", - "nym-contracts-common", + "nym-coconut-dkg-common 0.1.0", + "nym-compact-ecash 0.1.0", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", "nym-credential-storage", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-dkg", - "nym-ecash-contract-common", + "nym-ecash-contract-common 0.1.0", "nym-ecash-double-spending", - "nym-ecash-time", + "nym-ecash-time 0.1.0", "nym-gateway-client", "nym-http-api-common", "nym-inclusion-probability", - "nym-mixnet-contract-common", - "nym-multisig-contract-common", - "nym-node-requests", + "nym-mixnet-contract-common 0.6.0", + "nym-multisig-contract-common 0.1.0", + "nym-node-requests 0.1.0", "nym-node-tester-utils", - "nym-pemstore", - "nym-serde-helpers", + "nym-pemstore 0.3.0", + "nym-serde-helpers 0.1.0", "nym-sphinx", "nym-task", "nym-topology", "nym-types", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "pin-project", "rand", "rand_chacha", @@ -4541,14 +4541,14 @@ dependencies = [ "cosmwasm-std", "ecdsa", "getset", - "nym-compact-ecash", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-time", - "nym-mixnet-contract-common", - "nym-network-defaults", - "nym-node-requests", - "nym-serde-helpers", + "nym-compact-ecash 0.1.0", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-time 0.1.0", + "nym-mixnet-contract-common 0.6.0", + "nym-network-defaults 0.1.0", + "nym-node-requests 0.1.0", + "nym-serde-helpers 0.1.0", "schemars", "serde", "serde_json", @@ -4560,6 +4560,32 @@ dependencies = [ "utoipa", ] +[[package]] +name = "nym-api-requests" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bs58", + "cosmrs 0.17.0-pre", + "cosmwasm-std", + "ecdsa", + "getset", + "nym-compact-ecash 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-credentials-interface 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-crypto 0.4.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-ecash-time 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-mixnet-contract-common 0.6.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-node-requests 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-serde-helpers 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "schemars", + "serde", + "sha2 0.10.8", + "tendermint 0.37.0", + "thiserror", + "time", + "utoipa", +] + [[package]] name = "nym-async-file-watcher" version = "0.1.0" @@ -4585,16 +4611,16 @@ dependencies = [ "ipnetwork 0.20.0", "log", "nym-authenticator-requests", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", - "nym-config", + "nym-config 0.1.0", "nym-credential-verification", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-gateway-requests", "nym-gateway-storage", "nym-id", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-sdk", "nym-service-provider-requests-common", "nym-service-providers-common", @@ -4602,7 +4628,7 @@ dependencies = [ "nym-task", "nym-types", "nym-wireguard", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "rand", "serde", "serde_json", @@ -4620,11 +4646,11 @@ dependencies = [ "base64 0.22.1", "bincode", "hmac", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-service-provider-requests-common", "nym-sphinx", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "rand", "serde", "sha2 0.10.8", @@ -4640,12 +4666,12 @@ dependencies = [ "log", "nym-credential-storage", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-contract-common", - "nym-ecash-time", - "nym-network-defaults", - "nym-validator-client", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-contract-common 0.1.0", + "nym-ecash-time 0.1.0", + "nym-network-defaults 0.1.0", + "nym-validator-client 0.1.0", "rand", "thiserror", "url", @@ -4675,6 +4701,21 @@ dependencies = [ "vergen", ] +[[package]] +name = "nym-bin-common" +version = "0.6.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "const-str", + "log", + "pretty_env_logger", + "schemars", + "semver 1.0.23", + "serde", + "utoipa", + "vergen", +] + [[package]] name = "nym-bity-integration" version = "0.1.0" @@ -4684,7 +4725,7 @@ dependencies = [ "eyre", "k256", "nym-cli-commands", - "nym-validator-client", + "nym-validator-client 0.1.0", "serde", "serde_json", "thiserror", @@ -4704,10 +4745,10 @@ dependencies = [ "dotenvy", "inquire", "log", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-cli-commands", - "nym-network-defaults", - "nym-validator-client", + "nym-network-defaults 0.1.0", + "nym-validator-client 0.1.0", "pretty_env_logger", "serde", "serde_json", @@ -4738,26 +4779,26 @@ dependencies = [ "k256", "log", "nym-bandwidth-controller", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", - "nym-coconut-dkg-common", - "nym-config", - "nym-contracts-common", + "nym-coconut-dkg-common 0.1.0", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", "nym-credential-storage", "nym-credential-utils", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-contract-common", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-contract-common 0.1.0", "nym-id", - "nym-mixnet-contract-common", - "nym-multisig-contract-common", - "nym-network-defaults", - "nym-pemstore", + "nym-mixnet-contract-common 0.6.0", + "nym-multisig-contract-common 0.1.0", + "nym-network-defaults 0.1.0", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-types", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "rand", "serde", "serde_json", @@ -4781,21 +4822,21 @@ dependencies = [ "futures", "log", "nym-bandwidth-controller", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", "nym-client-websocket-requests", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", "nym-credentials", - "nym-crypto", + "nym-crypto 0.4.0", "nym-gateway-requests", "nym-id", - "nym-network-defaults", - "nym-pemstore", + "nym-network-defaults 0.1.0", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-task", "nym-topology", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "serde_json", @@ -4829,24 +4870,24 @@ dependencies = [ "nym-client-core-config-types", "nym-client-core-gateways-storage", "nym-client-core-surb-storage", - "nym-config", + "nym-config 0.1.0", "nym-country-group", "nym-credential-storage", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-time", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-time 0.1.0", "nym-explorer-client", "nym-gateway-client", "nym-gateway-requests", "nym-id", "nym-metrics", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-nonexhaustive-delayqueue", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-task", "nym-topology", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "rand_chacha", "serde", @@ -4874,9 +4915,9 @@ name = "nym-client-core-config-types" version = "0.1.0" dependencies = [ "humantime-serde", - "nym-config", + "nym-config 0.1.0", "nym-country-group", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-sphinx-addressing", "nym-sphinx-params", "serde", @@ -4891,7 +4932,7 @@ dependencies = [ "async-trait", "cosmrs 0.17.0-pre", "log", - "nym-crypto", + "nym-crypto 0.4.0", "nym-gateway-requests", "serde", "sqlx", @@ -4909,7 +4950,7 @@ dependencies = [ "async-trait", "dashmap", "log", - "nym-crypto", + "nym-crypto 0.4.0", "nym-sphinx", "nym-task", "sqlx", @@ -4925,7 +4966,7 @@ dependencies = [ "anyhow", "futures", "js-sys", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-node-tester-utils", "nym-node-tester-wasm", "rand", @@ -4964,7 +5005,7 @@ dependencies = [ "group", "itertools 0.13.0", "nym-dkg", - "nym-pemstore", + "nym-pemstore 0.3.0", "rand", "rand_chacha", "serde", @@ -4981,7 +5022,17 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw2", - "nym-multisig-contract-common", + "nym-multisig-contract-common 0.1.0", +] + +[[package]] +name = "nym-coconut-bandwidth-contract-common" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "nym-multisig-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", ] [[package]] @@ -4993,8 +5044,22 @@ dependencies = [ "cw-utils", "cw2", "cw4", - "nym-contracts-common", - "nym-multisig-contract-common", + "nym-contracts-common 0.5.0", + "nym-multisig-contract-common 0.1.0", +] + +[[package]] +name = "nym-coconut-dkg-common" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "cw-utils", + "cw2", + "cw4", + "nym-contracts-common 0.5.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-multisig-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", ] [[package]] @@ -5017,8 +5082,8 @@ dependencies = [ "ff", "group", "itertools 0.13.0", - "nym-network-defaults", - "nym-pemstore", + "nym-network-defaults 0.1.0", + "nym-pemstore 0.3.0", "rand", "rayon", "serde", @@ -5028,6 +5093,28 @@ dependencies = [ "zeroize", ] +[[package]] +name = "nym-compact-ecash" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bincode", + "bls12_381", + "bs58", + "cfg-if", + "digest 0.9.0", + "ff", + "group", + "itertools 0.12.1", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-pemstore 0.3.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "rand", + "serde", + "sha2 0.9.9", + "thiserror", + "zeroize", +] + [[package]] name = "nym-config" version = "0.1.0" @@ -5035,7 +5122,21 @@ dependencies = [ "dirs", "handlebars", "log", - "nym-network-defaults", + "nym-network-defaults 0.1.0", + "serde", + "toml 0.8.14", + "url", +] + +[[package]] +name = "nym-config" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "dirs", + "handlebars", + "log", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "serde", "toml 0.8.14", "url", @@ -5056,6 +5157,21 @@ dependencies = [ "vergen", ] +[[package]] +name = "nym-contracts-common" +version = "0.5.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bs58", + "cosmwasm-schema", + "cosmwasm-std", + "cw-storage-plus", + "schemars", + "serde", + "thiserror", + "vergen", +] + [[package]] name = "nym-country-group" version = "0.1.0" @@ -5071,7 +5187,7 @@ dependencies = [ "anyhow", "bs58", "lazy_static", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-ffi-shared", "nym-sdk", "nym-sphinx-anonymous-replies", @@ -5085,9 +5201,9 @@ dependencies = [ "async-trait", "bincode", "log", - "nym-compact-ecash", + "nym-compact-ecash 0.1.0", "nym-credentials", - "nym-ecash-time", + "nym-ecash-time 0.1.0", "serde", "sqlx", "thiserror", @@ -5102,12 +5218,12 @@ dependencies = [ "log", "nym-bandwidth-controller", "nym-client-core", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", "nym-credentials", - "nym-credentials-interface", - "nym-ecash-time", - "nym-validator-client", + "nym-credentials-interface 0.1.0", + "nym-ecash-time 0.1.0", + "nym-validator-client 0.1.0", "thiserror", "time", "tokio", @@ -5121,15 +5237,15 @@ dependencies = [ "cosmwasm-std", "cw-utils", "futures", - "nym-api-requests", + "nym-api-requests 0.1.0", "nym-credentials", - "nym-credentials-interface", - "nym-ecash-contract-common", + "nym-credentials-interface 0.1.0", + "nym-ecash-contract-common 0.1.0", "nym-ecash-double-spending", "nym-gateway-requests", "nym-gateway-storage", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "si-scale", "thiserror", @@ -5146,14 +5262,14 @@ dependencies = [ "bls12_381", "cosmrs 0.17.0-pre", "log", - "nym-api-requests", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-contract-common", - "nym-ecash-time", - "nym-network-defaults", - "nym-serde-helpers", - "nym-validator-client", + "nym-api-requests 0.1.0", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-contract-common 0.1.0", + "nym-ecash-time 0.1.0", + "nym-network-defaults 0.1.0", + "nym-serde-helpers 0.1.0", + "nym-validator-client 0.1.0", "rand", "serde", "thiserror", @@ -5166,9 +5282,25 @@ name = "nym-credentials-interface" version = "0.1.0" dependencies = [ "bls12_381", - "nym-compact-ecash", - "nym-ecash-time", - "nym-network-defaults", + "nym-compact-ecash 0.1.0", + "nym-ecash-time 0.1.0", + "nym-network-defaults 0.1.0", + "rand", + "serde", + "strum 0.26.3", + "thiserror", + "time", +] + +[[package]] +name = "nym-credentials-interface" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bls12_381", + "nym-compact-ecash 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-ecash-time 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "rand", "serde", "strum 0.26.3", @@ -5192,8 +5324,8 @@ dependencies = [ "generic-array 0.14.7", "hkdf", "hmac", - "nym-pemstore", - "nym-sphinx-types", + "nym-pemstore 0.3.0", + "nym-sphinx-types 0.2.0", "rand", "rand_chacha", "serde", @@ -5204,6 +5336,23 @@ dependencies = [ "zeroize", ] +[[package]] +name = "nym-crypto" +version = "0.4.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bs58", + "ed25519-dalek", + "nym-pemstore 0.3.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-sphinx-types 0.2.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "serde", + "serde_bytes", + "subtle-encoding", + "thiserror", + "x25519-dalek", + "zeroize", +] + [[package]] name = "nym-data-observatory" version = "0.1.0" @@ -5212,9 +5361,9 @@ dependencies = [ "axum 0.7.7", "chrono", "clap 4.5.18", - "nym-bin-common", - "nym-network-defaults", - "nym-node-requests", + "nym-bin-common 0.6.0", + "nym-network-defaults 0.1.0", + "nym-node-requests 0.1.0", "nym-task", "serde", "serde_json", @@ -5240,8 +5389,8 @@ dependencies = [ "ff", "group", "lazy_static", - "nym-contracts-common", - "nym-pemstore", + "nym-contracts-common 0.5.0", + "nym-pemstore 0.3.0", "rand", "rand_chacha", "rand_core 0.6.4", @@ -5262,7 +5411,21 @@ dependencies = [ "cw-controllers", "cw-utils", "cw2", - "nym-multisig-contract-common", + "nym-multisig-contract-common 0.1.0", + "thiserror", +] + +[[package]] +name = "nym-ecash-contract-common" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bs58", + "cosmwasm-schema", + "cosmwasm-std", + "cw-controllers", + "cw-utils", + "nym-multisig-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "thiserror", ] @@ -5272,14 +5435,22 @@ version = "0.1.0" dependencies = [ "bit-vec", "bloomfilter", - "nym-network-defaults", + "nym-network-defaults 0.1.0", ] [[package]] name = "nym-ecash-time" version = "0.1.0" dependencies = [ - "nym-compact-ecash", + "nym-compact-ecash 0.1.0", + "time", +] + +[[package]] +name = "nym-ecash-time" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ "time", ] @@ -5303,13 +5474,25 @@ dependencies = [ "utoipa", ] +[[package]] +name = "nym-exit-policy" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "serde", + "serde_json", + "thiserror", + "tracing", + "utoipa", +] + [[package]] name = "nym-explorer-api-requests" version = "0.1.0" dependencies = [ - "nym-api-requests", - "nym-contracts-common", - "nym-mixnet-contract-common", + "nym-api-requests 0.1.0", + "nym-contracts-common 0.5.0", + "nym-mixnet-contract-common 0.6.0", "schemars", "serde", "ts-rs", @@ -5335,7 +5518,7 @@ dependencies = [ "anyhow", "bs58", "lazy_static", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-sdk", "nym-sphinx-anonymous-replies", "tokio", @@ -5360,32 +5543,32 @@ dependencies = [ "futures", "humantime-serde", "ipnetwork 0.20.0", - "nym-api-requests", + "nym-api-requests 0.1.0", "nym-authenticator", - "nym-bin-common", - "nym-config", + "nym-bin-common 0.6.0", + "nym-config 0.1.0", "nym-credential-verification", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-gateway-requests", "nym-gateway-storage", "nym-ip-packet-router", "nym-mixnet-client", "nym-mixnode-common", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-network-requester", "nym-node-http-api", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-sdk", "nym-sphinx", "nym-statistics-common", "nym-task", "nym-topology", "nym-types", - "nym-validator-client", + "nym-validator-client 0.1.0", "nym-wireguard", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "once_cell", "rand", "serde", @@ -5414,14 +5597,14 @@ dependencies = [ "nym-bandwidth-controller", "nym-credential-storage", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-gateway-requests", - "nym-network-defaults", - "nym-pemstore", + "nym-network-defaults 0.1.0", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "si-scale", @@ -5447,11 +5630,11 @@ dependencies = [ "bs58", "futures", "generic-array 0.14.7", - "nym-compact-ecash", + "nym-compact-ecash 0.1.0", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", - "nym-pemstore", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-task", "rand", @@ -5474,7 +5657,7 @@ dependencies = [ "bincode", "defguard_wireguard_rs", "log", - "nym-credentials-interface", + "nym-credentials-interface 0.1.0", "nym-gateway-requests", "nym-sphinx", "sqlx", @@ -5490,7 +5673,7 @@ version = "0.2.0" dependencies = [ "anyhow", "lazy_static", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-ffi-shared", "nym-sdk", "nym-sphinx-anonymous-replies", @@ -5511,13 +5694,42 @@ dependencies = [ "serde", ] +[[package]] +name = "nym-group-contract-common" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "cosmwasm-schema", + "cw-controllers", + "cw4", + "schemars", + "serde", +] + [[package]] name = "nym-http-api-client" version = "0.1.0" dependencies = [ "async-trait", "http 1.1.0", - "nym-bin-common", + "nym-bin-common 0.6.0", + "reqwest 0.12.4", + "serde", + "serde_json", + "thiserror", + "tracing", + "url", + "wasmtimer", +] + +[[package]] +name = "nym-http-api-client" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "async-trait", + "http 1.1.0", + "nym-bin-common 0.6.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "reqwest 0.12.4", "serde", "serde_json", @@ -5562,7 +5774,7 @@ dependencies = [ "anyhow", "bs58", "clap 4.5.18", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-credential-storage", "nym-id", "tokio", @@ -5584,8 +5796,8 @@ version = "0.1.0" dependencies = [ "bincode", "bytes", - "nym-bin-common", - "nym-crypto", + "nym-bin-common 0.6.0", + "nym-crypto 0.4.0", "nym-sphinx", "rand", "serde", @@ -5607,14 +5819,14 @@ dependencies = [ "etherparse", "futures", "log", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", - "nym-config", - "nym-crypto", - "nym-exit-policy", + "nym-config 0.1.0", + "nym-crypto 0.4.0", + "nym-exit-policy 0.1.0", "nym-id", "nym-ip-packet-requests", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-network-requester", "nym-sdk", "nym-service-providers-common", @@ -5623,7 +5835,7 @@ dependencies = [ "nym-tun", "nym-types", "nym-wireguard", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "rand", "reqwest 0.12.4", "serde", @@ -5682,7 +5894,7 @@ dependencies = [ "cw2", "humantime-serde", "log", - "nym-contracts-common", + "nym-contracts-common 0.5.0", "rand_chacha", "schemars", "serde", @@ -5694,6 +5906,26 @@ dependencies = [ "utoipa", ] +[[package]] +name = "nym-mixnet-contract-common" +version = "0.6.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "bs58", + "cosmwasm-schema", + "cosmwasm-std", + "cw-controllers", + "humantime-serde", + "log", + "nym-contracts-common 0.5.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "schemars", + "serde", + "serde-json-wasm", + "serde_repr", + "thiserror", + "time", +] + [[package]] name = "nym-mixnode" version = "1.1.37" @@ -5709,24 +5941,24 @@ dependencies = [ "humantime-serde", "lazy_static", "log", - "nym-bin-common", - "nym-config", - "nym-contracts-common", - "nym-crypto", + "nym-bin-common 0.6.0", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", + "nym-crypto 0.4.0", "nym-http-api-common", "nym-metrics", "nym-mixnet-client", "nym-mixnode-common", "nym-node-http-api", "nym-nonexhaustive-delayqueue", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-sphinx", "nym-sphinx-params", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-task", "nym-topology", "nym-types", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "serde_json", @@ -5747,19 +5979,19 @@ dependencies = [ "futures", "humantime-serde", "log", - "nym-bin-common", - "nym-crypto", + "nym-bin-common 0.6.0", + "nym-crypto 0.4.0", "nym-metrics", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-node-http-api", "nym-sphinx-acknowledgements", "nym-sphinx-addressing", "nym-sphinx-forwarding", "nym-sphinx-framing", "nym-sphinx-params", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "thiserror", @@ -5784,6 +6016,22 @@ dependencies = [ "thiserror", ] +[[package]] +name = "nym-multisig-contract-common" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "cw-storage-plus", + "cw-utils", + "cw3", + "cw4", + "schemars", + "serde", + "thiserror", +] + [[package]] name = "nym-network-defaults" version = "0.1.0" @@ -5796,6 +6044,19 @@ dependencies = [ "utoipa", ] +[[package]] +name = "nym-network-defaults" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "dotenvy", + "log", + "schemars", + "serde", + "url", + "utoipa", +] + [[package]] name = "nym-network-monitor" version = "0.1.0" @@ -5806,14 +6067,14 @@ dependencies = [ "dashmap", "futures", "log", - "nym-bin-common", - "nym-crypto", - "nym-network-defaults", + "nym-bin-common 0.6.0", + "nym-crypto 0.4.0", + "nym-network-defaults 0.1.0", "nym-sdk", "nym-sphinx", "nym-topology", "nym-types", - "nym-validator-client", + "nym-validator-client 0.1.0", "petgraph", "rand", "rand_chacha", @@ -5841,16 +6102,16 @@ dependencies = [ "ipnetwork 0.20.0", "log", "nym-async-file-watcher", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", "nym-client-websocket-requests", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", "nym-credentials", - "nym-crypto", - "nym-exit-policy", + "nym-crypto 0.4.0", + "nym-exit-policy 0.1.0", "nym-id", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-ordered-buffer", "nym-sdk", "nym-service-providers-common", @@ -5892,23 +6153,23 @@ dependencies = [ "humantime-serde", "ipnetwork 0.20.0", "nym-authenticator", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core-config-types", - "nym-config", - "nym-crypto", + "nym-config 0.1.0", + "nym-crypto 0.4.0", "nym-gateway", "nym-ip-packet-router", "nym-mixnode", "nym-network-requester", "nym-node-http-api", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-sphinx-acknowledgements", "nym-sphinx-addressing", "nym-task", "nym-types", - "nym-validator-client", + "nym-validator-client 0.1.0", "nym-wireguard", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "rand", "semver 1.0.23", "serde", @@ -5936,10 +6197,10 @@ dependencies = [ "hmac", "hyper 1.4.1", "ipnetwork 0.20.0", - "nym-crypto", + "nym-crypto 0.4.0", "nym-http-api-common", "nym-metrics", - "nym-node-requests", + "nym-node-requests 0.1.0", "nym-task", "nym-wireguard", "rand", @@ -5964,11 +6225,11 @@ dependencies = [ "celes", "humantime 2.1.0", "humantime-serde", - "nym-bin-common", - "nym-crypto", - "nym-exit-policy", - "nym-http-api-client", - "nym-wireguard-types", + "nym-bin-common 0.6.0", + "nym-crypto 0.4.0", + "nym-exit-policy 0.1.0", + "nym-http-api-client 0.1.0", + "nym-wireguard-types 0.1.0", "rand_chacha", "schemars", "serde", @@ -5979,13 +6240,36 @@ dependencies = [ "utoipa", ] +[[package]] +name = "nym-node-requests" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "async-trait", + "base64 0.22.1", + "celes", + "humantime 2.1.0", + "humantime-serde", + "nym-bin-common 0.6.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-crypto 0.4.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-exit-policy 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-http-api-client 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-wireguard-types 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "schemars", + "serde", + "serde_json", + "thiserror", + "time", + "utoipa", +] + [[package]] name = "nym-node-status-agent" -version = "0.1.5" +version = "0.1.4-aero-fork" dependencies = [ "anyhow", "clap 4.5.18", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-common-models", "reqwest 0.12.4", "serde_json", @@ -5997,7 +6281,7 @@ dependencies = [ [[package]] name = "nym-node-status-api" -version = "0.1.6" +version = "0.1.5-aero-fork" dependencies = [ "anyhow", "axum 0.7.7", @@ -6007,13 +6291,13 @@ dependencies = [ "envy", "futures-util", "moka", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-common-models", "nym-explorer-client", - "nym-network-defaults", - "nym-node-requests", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-node-requests 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", "regex", "reqwest 0.12.4", "serde", @@ -6040,7 +6324,7 @@ version = "0.1.0" dependencies = [ "futures", "log", - "nym-crypto", + "nym-crypto 0.4.0", "nym-sphinx", "nym-sphinx-params", "nym-task", @@ -6091,8 +6375,8 @@ dependencies = [ "anyhow", "clap 4.5.18", "log", - "nym-bin-common", - "nym-network-defaults", + "nym-bin-common 0.6.0", + "nym-network-defaults 0.1.0", "nym-sdk", "nym-service-providers-common", "nym-socks5-requests", @@ -6134,6 +6418,14 @@ dependencies = [ "pem", ] +[[package]] +name = "nym-pemstore" +version = "0.3.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "pem", +] + [[package]] name = "nym-sdk" version = "0.1.0" @@ -6153,15 +6445,15 @@ dependencies = [ "httpcodec", "log", "nym-bandwidth-controller", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", "nym-credential-storage", "nym-credential-utils", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", "nym-gateway-requests", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-ordered-buffer", "nym-service-providers-common", "nym-socks5-client-core", @@ -6169,7 +6461,7 @@ dependencies = [ "nym-sphinx", "nym-task", "nym-topology", - "nym-validator-client", + "nym-validator-client 0.1.0", "parking_lot", "pretty_env_logger", "rand", @@ -6199,6 +6491,17 @@ dependencies = [ "time", ] +[[package]] +name = "nym-serde-helpers" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "base64 0.22.1", + "bs58", + "serde", + "time", +] + [[package]] name = "nym-service-provider-requests-common" version = "0.1.0" @@ -6213,7 +6516,7 @@ dependencies = [ "anyhow", "async-trait", "log", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-sdk", "nym-socks5-requests", "nym-sphinx-anonymous-replies", @@ -6230,21 +6533,21 @@ dependencies = [ "bs58", "clap 4.5.18", "log", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", "nym-credentials", - "nym-crypto", + "nym-crypto 0.4.0", "nym-gateway-requests", "nym-id", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-ordered-buffer", - "nym-pemstore", + "nym-pemstore 0.3.0", "nym-socks5-client-core", "nym-sphinx", "nym-topology", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "serde_json", @@ -6266,17 +6569,17 @@ dependencies = [ "log", "nym-bandwidth-controller", "nym-client-core", - "nym-config", - "nym-contracts-common", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", "nym-credential-storage", - "nym-mixnet-contract-common", - "nym-network-defaults", + "nym-mixnet-contract-common 0.6.0", + "nym-network-defaults 0.1.0", "nym-service-providers-common", "nym-socks5-proxy-helpers", "nym-socks5-requests", "nym-sphinx", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "pin-project", "rand", "reqwest 0.12.4", @@ -6298,11 +6601,11 @@ dependencies = [ "jni", "lazy_static", "log", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-client-core", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", - "nym-crypto", + "nym-crypto 0.4.0", "nym-socks5-client-core", "rand", "safer-ffi", @@ -6331,7 +6634,7 @@ version = "0.1.0" dependencies = [ "bincode", "log", - "nym-exit-policy", + "nym-exit-policy 0.1.0", "nym-service-providers-common", "nym-sphinx-addressing", "serde", @@ -6345,9 +6648,9 @@ name = "nym-sphinx" version = "0.1.0" dependencies = [ "log", - "nym-crypto", + "nym-crypto 0.4.0", "nym-metrics", - "nym-mixnet-contract-common", + "nym-mixnet-contract-common 0.6.0", "nym-sphinx-acknowledgements", "nym-sphinx-addressing", "nym-sphinx-anonymous-replies", @@ -6357,7 +6660,7 @@ dependencies = [ "nym-sphinx-framing", "nym-sphinx-params", "nym-sphinx-routing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-topology", "rand", "rand_chacha", @@ -6371,12 +6674,12 @@ name = "nym-sphinx-acknowledgements" version = "0.1.0" dependencies = [ "generic-array 0.14.7", - "nym-crypto", - "nym-pemstore", + "nym-crypto 0.4.0", + "nym-pemstore 0.3.0", "nym-sphinx-addressing", "nym-sphinx-params", "nym-sphinx-routing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-topology", "rand", "serde", @@ -6388,8 +6691,8 @@ dependencies = [ name = "nym-sphinx-addressing" version = "0.1.0" dependencies = [ - "nym-crypto", - "nym-sphinx-types", + "nym-crypto 0.4.0", + "nym-sphinx-types 0.2.0", "rand", "serde", "thiserror", @@ -6400,11 +6703,11 @@ name = "nym-sphinx-anonymous-replies" version = "0.1.0" dependencies = [ "bs58", - "nym-crypto", + "nym-crypto 0.4.0", "nym-sphinx-addressing", "nym-sphinx-params", "nym-sphinx-routing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-topology", "rand", "rand_chacha", @@ -6419,11 +6722,11 @@ version = "0.1.0" dependencies = [ "dashmap", "log", - "nym-crypto", + "nym-crypto 0.4.0", "nym-metrics", "nym-sphinx-addressing", "nym-sphinx-params", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "rand", "serde", "thiserror", @@ -6434,14 +6737,14 @@ dependencies = [ name = "nym-sphinx-cover" version = "0.1.0" dependencies = [ - "nym-crypto", + "nym-crypto 0.4.0", "nym-sphinx-acknowledgements", "nym-sphinx-addressing", "nym-sphinx-chunking", "nym-sphinx-forwarding", "nym-sphinx-params", "nym-sphinx-routing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "nym-topology", "rand", "thiserror", @@ -6454,7 +6757,7 @@ dependencies = [ "nym-outfox", "nym-sphinx-addressing", "nym-sphinx-params", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "thiserror", ] @@ -6469,7 +6772,7 @@ dependencies = [ "nym-sphinx-addressing", "nym-sphinx-forwarding", "nym-sphinx-params", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "thiserror", "tokio", "tokio-util", @@ -6479,8 +6782,8 @@ dependencies = [ name = "nym-sphinx-params" version = "0.1.0" dependencies = [ - "nym-crypto", - "nym-sphinx-types", + "nym-crypto 0.4.0", + "nym-sphinx-types 0.2.0", "serde", "thiserror", ] @@ -6490,7 +6793,7 @@ name = "nym-sphinx-routing" version = "0.1.0" dependencies = [ "nym-sphinx-addressing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "thiserror", ] @@ -6503,12 +6806,21 @@ dependencies = [ "thiserror", ] +[[package]] +name = "nym-sphinx-types" +version = "0.2.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "sphinx-packet", + "thiserror", +] + [[package]] name = "nym-statistics-common" version = "0.1.0" dependencies = [ "futures", - "nym-credentials-interface", + "nym-credentials-interface 0.1.0", "nym-sphinx", "time", ] @@ -6548,14 +6860,14 @@ dependencies = [ "async-trait", "bs58", "log", - "nym-api-requests", - "nym-bin-common", - "nym-config", - "nym-crypto", - "nym-mixnet-contract-common", + "nym-api-requests 0.1.0", + "nym-bin-common 0.6.0", + "nym-config 0.1.0", + "nym-crypto 0.4.0", + "nym-mixnet-contract-common 0.6.0", "nym-sphinx-addressing", "nym-sphinx-routing", - "nym-sphinx-types", + "nym-sphinx-types 0.2.0", "rand", "reqwest 0.12.4", "semver 1.0.23", @@ -6573,7 +6885,7 @@ version = "0.1.0" dependencies = [ "etherparse", "log", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "thiserror", "tokio", "tokio-tun", @@ -6590,11 +6902,11 @@ dependencies = [ "hmac", "itertools 0.13.0", "log", - "nym-config", - "nym-crypto", - "nym-mixnet-contract-common", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-config 0.1.0", + "nym-crypto 0.4.0", + "nym-mixnet-contract-common 0.6.0", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "reqwest 0.12.4", "schemars", "serde", @@ -6628,20 +6940,20 @@ dependencies = [ "flate2", "futures", "itertools 0.13.0", - "nym-api-requests", - "nym-coconut-bandwidth-contract-common", - "nym-coconut-dkg-common", - "nym-compact-ecash", - "nym-config", - "nym-contracts-common", - "nym-ecash-contract-common", - "nym-group-contract-common", - "nym-http-api-client", - "nym-mixnet-contract-common", - "nym-multisig-contract-common", - "nym-network-defaults", - "nym-serde-helpers", - "nym-vesting-contract-common", + "nym-api-requests 0.1.0", + "nym-coconut-bandwidth-contract-common 0.1.0", + "nym-coconut-dkg-common 0.1.0", + "nym-compact-ecash 0.1.0", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", + "nym-ecash-contract-common 0.1.0", + "nym-group-contract-common 0.1.0", + "nym-http-api-client 0.1.0", + "nym-mixnet-contract-common 0.6.0", + "nym-multisig-contract-common 0.1.0", + "nym-network-defaults 0.1.0", + "nym-serde-helpers 0.1.0", + "nym-vesting-contract-common 0.7.0", "prost 0.12.6", "reqwest 0.12.4", "serde", @@ -6658,6 +6970,55 @@ dependencies = [ "zeroize", ] +[[package]] +name = "nym-validator-client" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "async-trait", + "base64 0.22.1", + "bip32", + "bip39", + "colored", + "cosmrs 0.17.0-pre", + "cosmwasm-std", + "cw-controllers", + "cw-utils", + "cw2", + "cw3", + "cw4", + "eyre", + "flate2", + "futures", + "itertools 0.13.0", + "nym-api-requests 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-coconut-bandwidth-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-coconut-dkg-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-compact-ecash 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-config 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-contracts-common 0.5.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-ecash-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-group-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-http-api-client 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-mixnet-contract-common 0.6.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-multisig-contract-common 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-vesting-contract-common 0.7.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "prost 0.12.6", + "reqwest 0.12.4", + "serde", + "serde_json", + "sha2 0.9.9", + "tendermint-rpc", + "thiserror", + "time", + "tokio", + "tracing", + "url", + "wasmtimer", + "zeroize", +] + [[package]] name = "nym-validator-rewarder" version = "0.1.0" @@ -6669,18 +7030,18 @@ dependencies = [ "futures", "humantime 2.1.0", "humantime-serde", - "nym-bin-common", - "nym-coconut-bandwidth-contract-common", - "nym-coconut-dkg-common", - "nym-compact-ecash", - "nym-config", + "nym-bin-common 0.6.0", + "nym-coconut-bandwidth-contract-common 0.1.0", + "nym-coconut-dkg-common 0.1.0", + "nym-compact-ecash 0.1.0", + "nym-config 0.1.0", "nym-credentials", - "nym-credentials-interface", - "nym-crypto", - "nym-ecash-time", - "nym-network-defaults", + "nym-credentials-interface 0.1.0", + "nym-crypto 0.4.0", + "nym-ecash-time 0.1.0", + "nym-network-defaults 0.1.0", "nym-task", - "nym-validator-client", + "nym-validator-client 0.1.0", "nyxd-scraper", "rand_chacha", "serde", @@ -6702,13 +7063,26 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw2", - "nym-contracts-common", - "nym-mixnet-contract-common", + "nym-contracts-common 0.5.0", + "nym-mixnet-contract-common 0.6.0", "serde", "thiserror", "ts-rs", ] +[[package]] +name = "nym-vesting-contract-common" +version = "0.7.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "nym-contracts-common 0.5.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-mixnet-contract-common 0.6.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "serde", + "thiserror", +] + [[package]] name = "nym-wallet-types" version = "1.0.0" @@ -6716,12 +7090,12 @@ dependencies = [ "cosmrs 0.15.0", "cosmwasm-std", "hex-literal", - "nym-config", - "nym-mixnet-contract-common", - "nym-network-defaults", + "nym-config 0.1.0", + "nym-mixnet-contract-common 0.6.0", + "nym-network-defaults 0.1.0", "nym-types", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "serde", "serde_json", "strum 0.23.0", @@ -6742,11 +7116,11 @@ dependencies = [ "log", "nym-authenticator-requests", "nym-credential-verification", - "nym-crypto", + "nym-crypto 0.4.0", "nym-gateway-storage", - "nym-network-defaults", + "nym-network-defaults 0.1.0", "nym-task", - "nym-wireguard-types", + "nym-wireguard-types 0.1.0", "thiserror", "tokio", "tokio-stream", @@ -6759,15 +7133,29 @@ version = "0.1.0" dependencies = [ "base64 0.22.1", "log", - "nym-config", - "nym-crypto", - "nym-network-defaults", + "nym-config 0.1.0", + "nym-crypto 0.4.0", + "nym-network-defaults 0.1.0", "rand", "serde", "thiserror", "x25519-dalek", ] +[[package]] +name = "nym-wireguard-types" +version = "0.1.0" +source = "git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork#8d68cf88dac1adf1f68726a9b6e0740f8cddcf32" +dependencies = [ + "base64 0.22.1", + "log", + "nym-config 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "nym-network-defaults 0.1.0 (git+https://github.com/nymtech/nym?branch=pre-dir-v2-fork)", + "serde", + "thiserror", + "x25519-dalek", +] + [[package]] name = "nymvisor" version = "0.1.8" @@ -6783,8 +7171,8 @@ dependencies = [ "humantime-serde", "nix 0.27.1", "nym-async-file-watcher", - "nym-bin-common", - "nym-config", + "nym-bin-common 0.6.0", + "nym-config 0.1.0", "nym-task", "reqwest 0.12.4", "serde", @@ -9562,19 +9950,19 @@ dependencies = [ "cw-utils", "dkg-bypass-contract", "indicatif", - "nym-bin-common", - "nym-coconut-dkg-common", - "nym-compact-ecash", - "nym-config", - "nym-contracts-common", - "nym-crypto", - "nym-ecash-contract-common", - "nym-group-contract-common", - "nym-mixnet-contract-common", - "nym-multisig-contract-common", - "nym-pemstore", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-bin-common 0.6.0", + "nym-coconut-dkg-common 0.1.0", + "nym-compact-ecash 0.1.0", + "nym-config 0.1.0", + "nym-contracts-common 0.5.0", + "nym-crypto 0.4.0", + "nym-ecash-contract-common 0.1.0", + "nym-group-contract-common 0.1.0", + "nym-mixnet-contract-common 0.6.0", + "nym-multisig-contract-common 0.1.0", + "nym-pemstore 0.3.0", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "rand", "serde", "serde_json", @@ -10168,11 +10556,11 @@ name = "ts-rs-cli" version = "0.1.0" dependencies = [ "anyhow", - "nym-api-requests", - "nym-mixnet-contract-common", + "nym-api-requests 0.1.0", + "nym-mixnet-contract-common 0.6.0", "nym-types", - "nym-validator-client", - "nym-vesting-contract-common", + "nym-validator-client 0.1.0", + "nym-vesting-contract-common 0.7.0", "nym-wallet-types", "ts-rs", "walkdir", @@ -10816,15 +11204,15 @@ dependencies = [ "js-sys", "nym-bandwidth-controller", "nym-client-core", - "nym-config", + "nym-config 0.1.0", "nym-credential-storage", - "nym-crypto", + "nym-crypto 0.4.0", "nym-gateway-client", "nym-sphinx", "nym-sphinx-acknowledgements", "nym-task", "nym-topology", - "nym-validator-client", + "nym-validator-client 0.1.0", "rand", "serde", "serde-wasm-bindgen 0.6.5", @@ -11379,12 +11767,12 @@ dependencies = [ "bs58", "getrandom", "js-sys", - "nym-bin-common", + "nym-bin-common 0.6.0", "nym-coconut", - "nym-compact-ecash", + "nym-compact-ecash 0.1.0", "nym-credentials", - "nym-crypto", - "nym-http-api-client", + "nym-crypto 0.4.0", + "nym-http-api-client 0.1.0", "rand", "reqwest 0.12.4", "serde", diff --git a/nym-node-status-agent/Cargo.toml b/nym-node-status-agent/Cargo.toml index 45363a8cb6..af0fce5d38 100644 --- a/nym-node-status-agent/Cargo.toml +++ b/nym-node-status-agent/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "nym-node-status-agent" -version = "0.1.5" +version = "0.1.4-aero-fork" authors.workspace = true repository.workspace = true homepage.workspace = true diff --git a/nym-node-status-api/Cargo.toml b/nym-node-status-api/Cargo.toml index 511ab91b59..a8a3a932d6 100644 --- a/nym-node-status-api/Cargo.toml +++ b/nym-node-status-api/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "nym-node-status-api" -version = "0.1.6" +version = "0.1.5-aero-fork" authors.workspace = true repository.workspace = true homepage.workspace = true @@ -24,10 +24,14 @@ moka = { workspace = true, features = ["future"] } nym-bin-common = { path = "../common/bin-common", features = ["models"]} nym-common-models = { path = "../common/models" } nym-explorer-client = { path = "../explorer-api/explorer-client" } -nym-network-defaults = { path = "../common/network-defaults" } -nym-validator-client = { path = "../common/client-libs/validator-client" } +# TODO temporary for this fork +# nym-network-defaults = { path = "../common/network-defaults" } +# nym-validator-client = { path = "../common/client-libs/validator-client" } +nym-network-defaults = { git = "https://github.com/nymtech/nym", branch = "pre-dir-v2-fork" } +nym-validator-client = { git = "https://github.com/nymtech/nym", branch = "pre-dir-v2-fork" } nym-task = { path = "../common/task" } -nym-node-requests = { path = "../nym-node/nym-node-requests", features = ["openapi"] } +# nym-node-requests = { path = "../nym-node/nym-node-requests", features = ["openapi"] } +nym-node-requests = { git = "https://github.com/nymtech/nym", branch = "pre-dir-v2-fork", features = ["openapi"] } regex = { workspace = true } reqwest = { workspace = true } serde = { workspace = true, features = ["derive"] } diff --git a/nym-node-status-api/migrations/000_init.sql b/nym-node-status-api/migrations/000_init.sql index 4f9fd7da60..2dcb6be4ad 100644 --- a/nym-node-status-api/migrations/000_init.sql +++ b/nym-node-status-api/migrations/000_init.sql @@ -2,7 +2,7 @@ CREATE TABLE gateways ( id INTEGER PRIMARY KEY AUTOINCREMENT, gateway_identity_key VARCHAR NOT NULL UNIQUE, - self_described VARCHAR NOT NULL, + self_described VARCHAR, explorer_pretty_bond VARCHAR, last_probe_result VARCHAR, last_probe_log VARCHAR, diff --git a/nym-node-status-api/src/db/models.rs b/nym-node-status-api/src/db/models.rs index a5511787f9..58a673c076 100644 --- a/nym-node-status-api/src/db/models.rs +++ b/nym-node-status-api/src/db/models.rs @@ -11,7 +11,7 @@ pub(crate) struct GatewayRecord { pub(crate) identity_key: String, pub(crate) bonded: bool, pub(crate) blacklisted: bool, - pub(crate) self_described: String, + pub(crate) self_described: Option, pub(crate) explorer_pretty_bond: Option, pub(crate) last_updated_utc: i64, pub(crate) performance: u8, diff --git a/nym-node-status-api/src/db/queries/gateways.rs b/nym-node-status-api/src/db/queries/gateways.rs index bcf9c2d6ca..bfef40b149 100644 --- a/nym-node-status-api/src/db/queries/gateways.rs +++ b/nym-node-status-api/src/db/queries/gateways.rs @@ -6,7 +6,7 @@ use crate::{ http::models::Gateway, }; use futures_util::TryStreamExt; -use nym_validator_client::models::NymNodeDescription; +use nym_validator_client::models::DescribedGateway; use sqlx::{pool::PoolConnection, Sqlite}; use tracing::error; @@ -88,13 +88,13 @@ where /// Ensure all gateways that are set as bonded, are still bonded pub(crate) async fn ensure_gateways_still_bonded( pool: &DbPool, - gateways: &[&NymNodeDescription], + gateways: &[DescribedGateway], ) -> anyhow::Result { let bonded_gateways_rows = get_all_bonded_gateways_row_ids_by_status(pool, true).await?; let unbonded_gateways_rows = bonded_gateways_rows.iter().filter(|v| { !gateways .iter() - .any(|bonded| *bonded.ed25519_identity_key().to_base58_string() == v.identity_key) + .any(|bonded| *bonded.bond.identity() == v.identity_key) }); let recently_unbonded_gateways = unbonded_gateways_rows.to_owned().count(); diff --git a/nym-node-status-api/src/monitor/mod.rs b/nym-node-status-api/src/monitor/mod.rs index d0d1c5f638..7a247f185a 100644 --- a/nym-node-status-api/src/monitor/mod.rs +++ b/nym-node-status-api/src/monitor/mod.rs @@ -12,9 +12,7 @@ use cosmwasm_std::Decimal; use nym_explorer_client::{ExplorerClient, PrettyDetailedGatewayBond}; use nym_network_defaults::NymNetworkDetails; use nym_validator_client::client::NymApiClientExt; -use nym_validator_client::models::{ - LegacyDescribedMixNode, MixNodeBondAnnotated, NymNodeDescription, -}; +use nym_validator_client::models::{DescribedGateway, DescribedMixNode, MixNodeBondAnnotated}; use nym_validator_client::nym_nodes::SkimmedNode; use nym_validator_client::nyxd::contract_traits::PagedMixnetQueryClient; use nym_validator_client::nyxd::{AccountId, NyxdClient}; @@ -95,52 +93,28 @@ async fn run( let explorer_client = ExplorerClient::new_with_timeout(default_explorer_url, explorer_client_timeout)?; let explorer_gateways = explorer_client - .unstable_get_gateways() + .get_gateways() .await - .log_error("unstable_get_gateways")?; + .log_error("get_gateways")?; let api_client = NymApiClient::new_with_timeout(default_api_url, nym_api_client_timeout); - let all_nodes = api_client - .get_all_described_nodes() + let gateways = api_client + .get_cached_described_gateways() .await - .log_error("get_all_described_nodes")?; - tracing::debug!("Fetched {} total nodes", all_nodes.len()); + .log_error("get_cached_described_gateways")?; + tracing::debug!("Fetched {} gateways", gateways.len()); - let gateways = all_nodes - .iter() - .filter(|node| node.description.declared_role.entry) - .collect::>(); - tracing::debug!("Of those, {} gateways", gateways.len()); - for gw in gateways.iter() { - tracing::debug!("{}", gw.ed25519_identity_key().to_base58_string()); - } - - let mixnodes = all_nodes - .iter() - .filter(|node| node.description.declared_role.mixnode) - .collect::>(); - tracing::debug!("Of those, {} mixnodes", mixnodes.len()); - - log_gw_in_explorer_not_api(explorer_gateways.as_slice(), gateways.as_slice()); - - let all_skimmed_nodes = api_client - .get_all_basic_nodes(None) + let skimmed_gateways = api_client + .get_basic_gateways(None) .await - .log_error("get_all_basic_nodes")?; + .log_error("get_basic_gateways")?; - let mixnodes = api_client - .get_cached_mixnodes() - .await - .log_error("get_cached_mixnodes")?; - tracing::debug!("Fetched {} mixnodes", mixnodes.len()); - - // let gateways_blacklisted = gateways.iter().filter(|gw|gw.) - let gateways_blacklisted = all_skimmed_nodes + let gateways_blacklisted = skimmed_gateways .iter() - .filter_map(|node| { - if node.performance.round_to_integer() <= 50 && node.supported_roles.entry { - Some(node.ed25519_identity_pubkey.to_base58_string()) + .filter_map(|gw| { + if gw.performance.round_to_integer() <= 50 { + Some(gw.ed25519_identity_pubkey.to_owned()) } else { None } @@ -177,7 +151,7 @@ async fn run( &gateways, &gateways_blacklisted, explorer_gateways, - all_skimmed_nodes, + skimmed_gateways, )?; queries::insert_gateways(pool, gateway_records) .await @@ -189,8 +163,8 @@ async fn run( let count_gateways_blacklisted = gateways .iter() .filter(|gw| { - let gw_identity = gw.ed25519_identity_key().to_base58_string(); - gateways_blacklisted.contains(&gw_identity) + let gw_identity = gw.bond.identity(); + gateways_blacklisted.contains(gw_identity) }) .count(); @@ -301,7 +275,7 @@ async fn run( } fn prepare_gateway_data( - gateways: &[&NymNodeDescription], + gateways: &[DescribedGateway], gateways_blacklisted: &HashSet, explorer_gateways: Vec, skimmed_gateways: Vec, @@ -309,25 +283,24 @@ fn prepare_gateway_data( let mut gateway_records = Vec::new(); for gateway in gateways { - let identity_key = gateway.ed25519_identity_key().to_base58_string(); + let identity_key = gateway.bond.identity(); let bonded = true; let last_updated_utc = chrono::offset::Utc::now().timestamp(); - let blacklisted = gateways_blacklisted.contains(&identity_key); + let blacklisted = gateways_blacklisted.contains(identity_key); - let self_described = serde_json::to_string(&gateway.description)?; + let self_described = gateway + .self_described + .as_ref() + .and_then(|v| serde_json::to_string(&v).ok()); let explorer_pretty_bond = explorer_gateways .iter() - .find(|g| g.gateway.identity_key.eq(&identity_key)); + .find(|g| g.gateway.identity_key.eq(identity_key)); let explorer_pretty_bond = explorer_pretty_bond.and_then(|g| serde_json::to_string(g).ok()); let performance = skimmed_gateways .iter() - .find(|g| { - g.ed25519_identity_pubkey - .to_base58_string() - .eq(&identity_key) - }) + .find(|g| g.ed25519_identity_pubkey.eq(identity_key)) .map(|g| g.performance) .unwrap_or_default() .round_to_integer(); @@ -348,7 +321,7 @@ fn prepare_gateway_data( fn prepare_mixnode_data( mixnodes: &[MixNodeBondAnnotated], - mixnodes_described: Vec, + mixnodes_described: Vec, delegation_program_members: Vec, ) -> anyhow::Result> { let mut mixnode_records = Vec::new(); @@ -389,28 +362,6 @@ fn prepare_mixnode_data( Ok(mixnode_records) } -fn log_gw_in_explorer_not_api( - explorer: &[PrettyDetailedGatewayBond], - api_gateways: &[&NymNodeDescription], -) { - let api_gateways = api_gateways - .iter() - .map(|gw| gw.ed25519_identity_key().to_base58_string()) - .collect::>(); - let explorer_only = explorer - .iter() - .filter(|gw| !api_gateways.contains(&gw.gateway.identity_key.to_string())) - .collect::>(); - - tracing::debug!( - "Gateways listed by explorer but not by Nym API: {}", - explorer_only.len() - ); - for gw in explorer_only.iter() { - tracing::debug!("{}", gw.gateway.identity_key.to_string()); - } -} - // TODO dz is there a common monorepo place this can be put? pub trait NumericalCheckedCast where @@ -470,7 +421,7 @@ async fn get_delegation_program_details( let mix_ids: Vec = delegations .iter() - .map(|delegation| delegation.node_id) + .map(|delegation| delegation.mix_id) .collect(); Ok(mix_ids)