516561dcf9
* separated signing and nyxd-client features * updated cosmrs to the most recent version * using tendermint_rpc directly for the Client trait * fixed rest of the codebase * removed nyxd-client feature * export more types * clippy that seems to have been skipped in makefile
91 lines
3.4 KiB
TOML
91 lines
3.4 KiB
TOML
[package]
|
|
name = "nym-validator-client"
|
|
version = "0.1.0"
|
|
authors = ["Jędrzej Stuczyński <andrew@nymtech.net>"]
|
|
edition = "2021"
|
|
rust-version = "1.56"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
base64 = "0.13"
|
|
colored = "2.0"
|
|
|
|
nym-coconut-dkg-common = { path = "../../cosmwasm-smart-contracts/coconut-dkg" }
|
|
nym-contracts-common = { path = "../../cosmwasm-smart-contracts/contracts-common" }
|
|
nym-mixnet-contract-common = { path = "../../cosmwasm-smart-contracts/mixnet-contract" }
|
|
nym-vesting-contract-common = { path = "../../cosmwasm-smart-contracts/vesting-contract" }
|
|
nym-coconut-bandwidth-contract-common = { path = "../../cosmwasm-smart-contracts/coconut-bandwidth-contract" }
|
|
nym-multisig-contract-common = { path = "../../cosmwasm-smart-contracts/multisig-contract" }
|
|
nym-name-service-common = { path = "../../cosmwasm-smart-contracts/name-service" }
|
|
nym-group-contract-common = { path = "../../cosmwasm-smart-contracts/group-contract" }
|
|
nym-service-provider-directory-common = { path = "../../cosmwasm-smart-contracts/service-provider-directory" }
|
|
nym-vesting-contract = { path = "../../../contracts/vesting" }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
thiserror = "1"
|
|
log = { workspace = true }
|
|
url = { version = "2.2", features = ["serde"] }
|
|
tokio = { version = "1.24.1", features = ["sync", "time"] }
|
|
futures = "0.3"
|
|
openssl = { version = "0.10", features = ["vendored"], optional = true }
|
|
|
|
nym-coconut-interface = { path = "../../coconut-interface" }
|
|
nym-network-defaults = { path = "../../network-defaults" }
|
|
nym-api-requests = { path = "../../../nym-api/nym-api-requests" }
|
|
|
|
async-trait = { workspace = true }
|
|
bip39 = { workspace = true, features = ["rand"], optional = true }
|
|
nym-config = { path = "../../config" }
|
|
cosmrs = { workspace = true, features = ["bip32", "cosmwasm"] }
|
|
#cosmrs = { workspace = true, features = ["bip32", "rpc", "cosmwasm"], optional = true }
|
|
# note that this has the same version as used by cosmrs
|
|
|
|
# import it just for the `Client` trait
|
|
tendermint-rpc = { workspace = true }
|
|
|
|
eyre = { version = "0.6", optional = true }
|
|
cw3 = { workspace = true }
|
|
cw4 = { workspace = true }
|
|
prost = { version = "0.11", default-features = false }
|
|
flate2 = { version = "1.0.20" }
|
|
sha2 = { version = "0.9.5" }
|
|
itertools = { version = "0.10" }
|
|
zeroize = { version = "1.5.7", optional = true, features = ["zeroize_derive"] }
|
|
cosmwasm-std = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
bip39 = { workspace = true }
|
|
#cosmrs = { workspace = true, features = ["rpc", "bip32"] }
|
|
cosmrs = { workspace = true, features = ["bip32"] }
|
|
tokio = { version = "1.24.1", features = ["rt-multi-thread", "macros"] }
|
|
ts-rs = "6.1.2"
|
|
|
|
[[example]]
|
|
name = "offline_signing"
|
|
# it should only really require the "signing" feature,
|
|
# but that would require another round of refactoring to make it possible
|
|
# (traits would need to be moved around and refactored themselves)
|
|
required-features = ["http-client", "signing"]
|
|
|
|
[[example]]
|
|
name = "query_service_provider_directory"
|
|
# TODO: validate the requirements
|
|
required-features = ["http-client", "signing"]
|
|
|
|
[[example]]
|
|
name = "query_name_service"
|
|
# TODO: validate the requirements
|
|
required-features = ["http-client", "signing"]
|
|
|
|
[features]
|
|
http-client = ["cosmrs/rpc", "openssl"]
|
|
signing = [
|
|
"bip39",
|
|
"eyre",
|
|
"zeroize"
|
|
]
|
|
generate-ts = []
|
|
|