ContractBuildInformation on /nym_contracts_detailed
This commit is contained in:
Generated
+1
@@ -4995,6 +4995,7 @@ dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
"thiserror",
|
||||
"utoipa",
|
||||
"vergen",
|
||||
]
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ cosmwasm-std = { workspace = true }
|
||||
cosmwasm-schema = { workspace = true }
|
||||
cw-storage-plus = { workspace = true }
|
||||
schemars = { workspace = true }
|
||||
utoipa = { workspace = true, optional = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
thiserror = { workspace = true }
|
||||
|
||||
@@ -24,3 +25,4 @@ vergen = { workspace = true, features = ["build", "git", "gitcl", "rustc", "carg
|
||||
|
||||
[features]
|
||||
naive_float = []
|
||||
utoipa = ["dep:utoipa"]
|
||||
|
||||
@@ -221,6 +221,7 @@ fn default_unknown() -> String {
|
||||
// TODO: there's no reason this couldn't be used for proper binaries, but in that case
|
||||
// perhaps the struct should get renamed and moved to a "more" common crate
|
||||
#[cw_serde]
|
||||
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
|
||||
pub struct ContractBuildInformation {
|
||||
/// Provides the name of the binary, i.e. the content of `CARGO_PKG_NAME` environmental variable.
|
||||
#[serde(default = "default_unknown")]
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ nym-gateway-client = { path = "../common/client-libs/gateway-client" }
|
||||
nym-inclusion-probability = { path = "../common/inclusion-probability" }
|
||||
nym-mixnet-contract-common = { path = "../common/cosmwasm-smart-contracts/mixnet-contract", features = ["utoipa"] }
|
||||
nym-vesting-contract-common = { path = "../common/cosmwasm-smart-contracts/vesting-contract" }
|
||||
nym-contracts-common = { path = "../common/cosmwasm-smart-contracts/contracts-common", features = ["naive_float"] }
|
||||
nym-contracts-common = { path = "../common/cosmwasm-smart-contracts/contracts-common", features = ["naive_float", "utoipa"] }
|
||||
nym-multisig-contract-common = { path = "../common/cosmwasm-smart-contracts/multisig-contract" }
|
||||
nym-coconut = { path = "../common/nymcoconut", features = ["key-zeroize"] }
|
||||
nym-sphinx = { path = "../common/nymsphinx" }
|
||||
|
||||
@@ -40,6 +40,7 @@ use utoipauto::utoipauto;
|
||||
ContractVersionSchemaResponse,
|
||||
nym_bin_common::build_information::BinaryBuildInformationOwned,
|
||||
nym_node_requests::api::v1::node::models::AuxiliaryDetails,
|
||||
nym_contracts_common::ContractBuildInformation
|
||||
))
|
||||
)]
|
||||
pub(crate) struct ApiDoc;
|
||||
|
||||
Reference in New Issue
Block a user