stable_bridge_package/
constants.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug)]
4pub enum DatabaseOperationStatus {
5    AlreadyExists,
6    NotPresent,
7    Created,
8    Updated,
9    Reverted,
10    Deleted,
11}
12
13#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
14pub enum ChainType {
15    NONE,
16    EVM,
17    SOLANA,
18}
19
20impl ChainType {
21    pub fn to_str(&self) -> &str {
22        match self {
23            ChainType::NONE => "",
24            ChainType::EVM => "EVM",
25            ChainType::SOLANA => "SOLANA",
26        }
27    }
28}