085761a9fb
* Unnrolled the loop into separate function * Ugly way of saving rewarding status * Initial way of rewarding next page of delegators * Attribute passing * Promoted transactions to directory * Moved rewarding-related functionalities into separate file * [ci skip] Generate TS types * Better errors on double rewarding attempt * Removed old rewarding call * Test fixes * Some cleanup * Paged mixnode rewarding test + serde fixes * Tests for delegator rewarding * ExecuteMsg for MixDelegatorRewarding * Made validator-api code compliable with bunch of todo!() macros * Removed Option wrapper from params in MixnodeToReward * Calculating uptime for entire epoch * Created shared MIXNODE_DELEGATORS_PAGE_LIMIT constant * Using new rewarding messages in validator API * cargo fmt * Updated wallet state types * Additional test for correct rewarding information * Query for rewarding status * Additional test regarding delegator rewarding * Client methods for obtaining rewarding status * Validator API checking for full rewarding * Removed unused field from validator api config template * Waiting for MINIMUM number of test routes * Waiting initialisation_backoff in the early return case * Fixes crash condition in validator API when calculating last day uptime * Fixed typo * Dealing with the case of rewarding mixnode with 0 uptime * Removed temporary unwrap * Guarding against 0-size rewarded/active sets Co-authored-by: jstuczyn <jstuczyn@users.noreply.github.com>
64 lines
2.2 KiB
TOML
64 lines
2.2 KiB
TOML
# Copyright 2020 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
[package]
|
|
name = "nym-validator-api"
|
|
version = "0.11.0"
|
|
authors = [
|
|
"Dave Hrycyszyn <futurechimp@users.noreply.github.com>",
|
|
"Jędrzej Stuczyński <andrew@nymtech.net>",
|
|
"Drazen Urch <durch@users.noreply.github.com>",
|
|
]
|
|
edition = "2018"
|
|
rust-version = "1.56"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
clap = "2.33.0"
|
|
dirs = "3.0"
|
|
dotenv = "0.15.0"
|
|
futures = "0.3"
|
|
humantime-serde = "1.0"
|
|
log = "0.4"
|
|
pin-project = "1.0"
|
|
pretty_env_logger = "0.4"
|
|
rand-07 = { package = "rand", version = "0.7" } # required for compatibility
|
|
rand = "0.8"
|
|
rand_chacha = "0.3.1"
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
rocket = { version = "0.5.0-rc.1", features = ["json"] }
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.4", features = ["rt-multi-thread", "macros", "signal", "time"] }
|
|
rocket_cors = { git="https://github.com/lawliet89/rocket_cors", rev="dfd3662c49e2f6fc37df35091cb94d82f7fb5915" }
|
|
url = "2.2"
|
|
thiserror = "1"
|
|
time = { version = "0.3", features = ["serde-human-readable", "parsing"]}
|
|
|
|
anyhow = "1"
|
|
getset = "0.1.1"
|
|
|
|
rocket_sync_db_pools = {version = "0.1.0-rc.1", default-features = false}
|
|
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate"]}
|
|
|
|
|
|
## internal
|
|
config = { path = "../common/config" }
|
|
crypto = { path="../common/crypto" }
|
|
gateway-client = { path="../common/client-libs/gateway-client" }
|
|
mixnet-contract = { path="../common/mixnet-contract" }
|
|
nymsphinx = { path="../common/nymsphinx" }
|
|
topology = { path="../common/topology" }
|
|
validator-client = { path="../common/client-libs/validator-client", features = ["nymd-client"] }
|
|
version-checker = { path="../common/version-checker" }
|
|
coconut-interface = { path = "../common/coconut-interface", optional = true }
|
|
credentials = { path = "../common/credentials", optional = true }
|
|
|
|
[features]
|
|
coconut = ["coconut-interface", "credentials", "gateway-client/coconut"]
|
|
|
|
[build-dependencies]
|
|
tokio = { version = "1.4", features = ["rt-multi-thread", "macros"] }
|
|
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate"] }
|