6de0c4ce92
* initialised basic structure for the performance contract * shared code for contract testing * unified common testing methods between performance and nym pool contracts * impl of ExecuteMsg for the contract * impl of QueryMsg for the contract * setting initial authorised NMs during instantiation * additional tests and fixes * ibid * scaffolding for client traits * completed client traits * clippy * naive add performance contract to testnet manager * placeholder values for the performance contract address * introduced admin messages to purge old measurements from the storage * introduced check ensuring performance data is only added to bonded nodes
63 lines
2.2 KiB
TOML
63 lines
2.2 KiB
TOML
[package]
|
|
name = "nym-mixnet-contract"
|
|
version = "1.5.1"
|
|
description = "Nym mixnet contract"
|
|
edition = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
repository = { workspace = true }
|
|
readme = "README.md"
|
|
|
|
exclude = [
|
|
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
|
|
"contract.wasm",
|
|
"hash.txt",
|
|
"artifacts",
|
|
]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[[bin]]
|
|
name = "schema"
|
|
required-features = ["schema-gen"]
|
|
|
|
[lib]
|
|
name = "mixnet_contract"
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
mixnet-contract-common = { path = "../../common/cosmwasm-smart-contracts/mixnet-contract", package = "nym-mixnet-contract-common" }
|
|
vesting-contract-common = { path = "../../common/cosmwasm-smart-contracts/vesting-contract", package = "nym-vesting-contract-common" }
|
|
nym-contracts-common = { path = "../../common/cosmwasm-smart-contracts/contracts-common" }
|
|
nym-contracts-common-testing = { path = "../../common/cosmwasm-smart-contracts/contracts-common-testing", optional = true }
|
|
|
|
cosmwasm-schema = { workspace = true, optional = true }
|
|
cosmwasm-std = { workspace = true }
|
|
cw-controllers = { workspace = true }
|
|
cw2 = { workspace = true }
|
|
cw-storage-plus = { workspace = true }
|
|
|
|
bs58 = { workspace = true }
|
|
serde = { workspace = true, default-features = false, features = ["derive"] }
|
|
semver = { workspace = true }
|
|
|
|
|
|
[dev-dependencies]
|
|
anyhow.workspace = true
|
|
rand_chacha = { workspace = true }
|
|
rand = { workspace = true }
|
|
nym-crypto = { path = "../../common/crypto", features = ["asymmetric", "rand"] }
|
|
easy-addr = { path = "../../common/cosmwasm-smart-contracts/easy_addr" }
|
|
|
|
# activate the `testable-mixnet-contract` in tests (weird workaround, but it does the trick)
|
|
nym-mixnet-contract = { path = ".", features = ["testable-mixnet-contract"] }
|
|
nym-contracts-common-testing = { path = "../../common/cosmwasm-smart-contracts/contracts-common-testing" }
|
|
|
|
[features]
|
|
default = []
|
|
contract-testing = ["mixnet-contract-common/contract-testing"]
|
|
testable-mixnet-contract = ["nym-contracts-common-testing"]
|
|
schema-gen = ["mixnet-contract-common/schema", "cosmwasm-schema"]
|
|
|
|
[lints]
|
|
workspace = true |