From 1c05850dd8c1f87b8680ce19c7e8c24b1a497999 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:40:07 +0100 Subject: [PATCH] feat(dataverse): add basic internal state --- contracts/okp4-dataverse/src/state.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contracts/okp4-dataverse/src/state.rs b/contracts/okp4-dataverse/src/state.rs index 8b137891..b27549b1 100644 --- a/contracts/okp4-dataverse/src/state.rs +++ b/contracts/okp4-dataverse/src/state.rs @@ -1 +1,10 @@ +use cw_storage_plus::Item; +use serde::{Deserialize, Serialize}; +pub const DATAVERSE: Item<'_, Dataverse> = Item::new("dataverse"); + +#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] +pub struct Dataverse { + pub name: String, + pub triplestore_address: String, +}