From 9168c68c928fabb0504eb30ca2acbeaf2e1d02b2 Mon Sep 17 00:00:00 2001 From: ccamel Date: Tue, 22 Aug 2023 13:25:52 +0200 Subject: [PATCH] feat(dataverse): specify contract instanciation --- contracts/okp4-dataverse/src/msg.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/contracts/okp4-dataverse/src/msg.rs b/contracts/okp4-dataverse/src/msg.rs index 35ae3a80..d81da152 100644 --- a/contracts/okp4-dataverse/src/msg.rs +++ b/contracts/okp4-dataverse/src/msg.rs @@ -11,18 +11,22 @@ pub struct InstantiateMsg { /// Execute messages #[cw_serde] -pub enum ExecuteMsg { - Foo, -} +pub enum ExecuteMsg {} /// Query messages #[cw_serde] #[derive(QueryResponses)] pub enum QueryMsg { - #[returns(FooResponse)] - Foo, + /// # Dataverse + /// Dataverse returns the information about the dataverse. + #[returns(DataverseResponse)] + Dataverse {}, } -/// # QueryResponses +/// # DataverseResponse +/// DataverseResponse is the response of the Dataverse query. #[cw_serde] -pub struct FooResponse {} +pub struct DataverseResponse { + /// The name of the dataverse. + pub name: String, +}