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}
11
12#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
13pub enum ChainType {
14    NONE,
15    EVM,
16    Solana,
17}
18
19impl ChainType {
20    pub fn to_str(&self) -> &str {
21        match self {
22            ChainType::NONE => "",
23            ChainType::EVM => "EVM",
24            ChainType::Solana => "SOLANA",
25        }
26    }
27}