fe6c685ab1
* Rename function/variables mixnodes->set * Stub utility interface * Rewarded set contract interface * Move epoch to common, epoch to contract * Move epoch to the chain * Rewarded set validator-api * [ci skip] Generate TS types * Epoch queries * Moved new code to a new module * Restored cosmwasm dependencies to their beta.3 versions for better compatibility with the rest of the codebase * Rewarded set write reorganisation * Stub for validator api module responsible for rewarded set updates * Reorganised validator api cache * Pending contract changes * Relevant updates to the validator client * Updating rewarded set based on contract state * Advancing/Setting current epoch in the contract * Using blocktime as 'now' at startup * Adjusted validator-api side rewarding code * Contract cleanup + query for epoch rewarded set heights * [ci skip] Generate TS types * Simplified rewarder processing loop and initial sync * [ci skip] Generate TS types * Fixed EXISTING query-related unit tests * Fixed existing unit tests for rewarding-related transactions * Cargo fmt * Removed some dead code * Using cosmwasm 1.0.0-beta3 for compatibility [with cw-storage-plus and rest of codebase] * Missing TryInto import * Additional storage and query related unit tests + a bug fix * Transaction-related unit tests + bug fixes * Required migration code * Update common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs Co-authored-by: Drazen Urch <drazen@urch.eu> * Update common/cosmwasm-smart-contracts/mixnet-contract/src/msg.rs Co-authored-by: Drazen Urch <drazen@urch.eu> * Constant renaming * Changed determining previous epoch return type to Option<Epoch> if they would precede the genesis * Exposed the new endpoint to the wallet * Epoch-related unit tests fixes * Recommended #[must_use] on next_epoch method * Renamed all epoch occurences to interval As they refer to the 'rewarding interval' Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com> Co-authored-by: jstuczyn <jstuczyn@users.noreply.github.com>
56 lines
1.8 KiB
TOML
56 lines
1.8 KiB
TOML
[package]
|
|
name = "validator-client"
|
|
version = "0.1.0"
|
|
authors = ["Jędrzej Stuczyński <andrew@nymtech.net>"]
|
|
edition = "2018"
|
|
rust-version = "1.56"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
base64 = "0.13"
|
|
mixnet-contract-common = { path= "../../cosmwasm-smart-contracts/mixnet-contract" }
|
|
vesting-contract = { path = "../../../contracts/vesting" }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
thiserror = "1"
|
|
log = "0.4"
|
|
url = { version = "2.2", features = ["serde"] }
|
|
|
|
coconut-interface = { path = "../../coconut-interface" }
|
|
network-defaults = { path = "../../network-defaults" }
|
|
validator-api-requests = { path = "../../../validator-api/validator-api-requests" }
|
|
|
|
# required for nymd-client
|
|
# at some point it might be possible to make it wasm-compatible
|
|
# perhaps after https://github.com/cosmos/cosmos-rust/pull/97 is resolved (and tendermint-rs is updated)
|
|
async-trait = { version = "0.1.51", optional = true }
|
|
bip39 = { version = "1", features = ["rand"], optional = true }
|
|
config = { path = "../../config", optional = true }
|
|
cosmrs = { version = "0.4.1", features = [
|
|
"rpc",
|
|
"bip32",
|
|
"cosmwasm",
|
|
], optional = true }
|
|
prost = { version = "0.9", default-features = false, optional = true }
|
|
flate2 = { version = "1.0.20", optional = true }
|
|
sha2 = { version = "0.9.5", optional = true }
|
|
itertools = { version = "0.10", optional = true }
|
|
cosmwasm-std = { version = "1.0.0-beta3", optional = true }
|
|
ts-rs = { version = "5.1", optional = true }
|
|
|
|
[features]
|
|
nymd-client = [
|
|
"async-trait",
|
|
"bip39",
|
|
"config",
|
|
"cosmrs",
|
|
"prost",
|
|
"flate2",
|
|
"sha2",
|
|
"itertools",
|
|
"cosmwasm-std",
|
|
]
|
|
typescript-types = ["ts-rs", "validator-api-requests/ts-rs"]
|