Skip to content

Commit

Permalink
feat(dataverse): specify contract instanciation
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Oct 24, 2023
1 parent fde585b commit 9168c68
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions contracts/okp4-dataverse/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 9168c68

Please sign in to comment.