ton_lib 0.0.38

A collection of types and utilities for interacting with the TON network
use ton_lib_core::cell::{TonCellRef, TonHash};
use ton_lib_core::TLBDerive;

/// WalletVersion::HighloadV2R2, not tested
#[derive(Clone, Debug, TLBDerive)]
pub struct WalletHLV2R2Data {
    pub wallet_id: i32,
    pub last_cleaned_time: u64,
    pub public_key: TonHash,
    pub queries: Option<TonCellRef>,
}

impl WalletHLV2R2Data {
    pub fn new(wallet_id: i32, public_key: TonHash) -> Self {
        Self {
            wallet_id,
            last_cleaned_time: 0,
            public_key,
            queries: None,
        }
    }
}