miracle-api 0.6.0

Miracle is a pay2e protocol for sovereign individuals living in Mirascape Horizon.
Documentation
use steel::*;

use super::MiracleAccount;

/// Treasury is a singleton account which is the mint authority for the MIRACLE token and the authority of
/// the program's global token account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {
    /// Total lifetime customer payment accrued rewards
    pub customer_payment_accrued_rewards: u64,

    /// Total lifetime customer payment claimed rewards
    pub customer_payment_claimed_rewards: u64,

    /// Total lifetime merchant payment accrued rewards
    pub merchant_payment_accrued_rewards: u64,

    /// Total lifetime merchant payment claimed rewards
    pub merchant_payment_claimed_rewards: u64,

    /// Total lifetime social claimed rewards
    pub social_claimed_rewards: u64,
}

account!(MiracleAccount, Treasury);