use alloy_primitives::{Address, U256};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AvatarRow {
pub address: Address,
pub version: u32,
#[serde(rename = "type")]
pub avatar_type: String,
pub cid_v0: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TokenBalanceRow {
pub token_address: Address,
pub balance: U256,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TrustRelationRow {
pub truster: Address,
pub trustee: Address,
pub expiry_time: u64,
}
#[derive(Debug, Clone)]
pub struct CirclesQuery<T> {
pub rows: Vec<T>,
pub has_more: bool,
}
impl<T> CirclesQuery<T> {
pub fn new(rows: Vec<T>, has_more: bool) -> Self {
Self { rows, has_more }
}
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum GroupType {
#[serde(rename = "Standard")]
Standard,
#[serde(rename = "Custom")]
Custom,
}