grinbot_core 0.1.0-alpha.1

Keybase and Telegram bot for Grin: Core library
Documentation
use crate::service::types::WalletInfoGrin;
use askama::Template;

/// Message with post-send information.
#[derive(Template)]
#[template(path = "send-success.html")]
pub struct SendSuccessTemplate<'a> {
    pub amount: f64,
    pub fee: f64,
    pub block_height: &'a str,
    pub id: &'a str,
}

/// Message with wallet balance info.
#[derive(Template)]
#[template(path = "info-success.html")]
pub struct InfoSuccessTemplate {
    pub info: WalletInfoGrin,
}

/// Message returning user's seed after wallet creation.
#[derive(Template)]
#[template(path = "seed.html")]
pub struct SeedTemplate<'a> {
    pub seed: &'a str,
}

/// Help text.
#[derive(Template)]
#[template(path = "help.html")]
pub struct HelpTemplate {}