sdkt-storage 2.0.0

Storage monitoring utility and TTL extensions logic for Soroban contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
pub enum StorageError {
    #[error("RPC error: {0}")]
    Rpc(#[from] sdkt_rpc::error::RpcError),
    #[error("Contract ID not found")]
    ContractNotFound,
    #[error("Invalid contract ID: {0}")]
    InvalidContractId(String),
    #[error("Parsing error: {0}")]
    Parse(String),
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    #[error("Corrupt cache data: {0}")]
    CorruptCache(String),
}