use anchor_lang::prelude::*;
#[account]
pub struct Address {
pub community: Pubkey,
pub network: Pubkey,
pub address: [u8; 64],
pub bump: u8,
pub case_id: u64,
pub reporter: Pubkey,
pub category: Category,
pub risk: u8,
pub confirmations: u8,
pub replication_bounty: u64,
}
#[derive(Clone, PartialEq, AnchorDeserialize, AnchorSerialize)]
pub enum Category {
None = 0,
WalletService,
MerchantService,
MiningPool,
Exchange,
DeFi,
OTCBroker,
ATM,
Gambling,
IllicitOrganization,
Mixer,
DarknetService,
Scam,
Ransomware,
Theft,
Counterfeit,
TerroristFinancing,
Sanctions,
ChildAbuse,
}
impl Default for Category {
fn default() -> Self {
Category::None
}
}