microversus_codex 0.1.0

Types and definitions for interfacing with the microversus system
Documentation
use crate::EventTag;
use serde::Deserialize;

#[derive(Deserialize, Debug, Clone)]
#[serde(tag = "type")]
pub enum OwnerDetails {
    User { token: String },
    Stakes { keys: Vec<String> },
}

#[derive(Deserialize, Debug, Clone)]
#[serde(tag = "type")]
pub enum TribeAction {
    GetTribes,
    CanCreate { owner: OwnerDetails },
}

#[derive(Deserialize, Debug, Clone)]
#[serde(tag = "type")]
pub enum LootAction {
    GetResult {
        encounter_id: String,
        tags: Option<Vec<EventTag>>,
        record_event: Option<bool>,
    },
}