hapi_core/state/
asset.rs

1use anchor_lang::prelude::*;
2
3use super::address::Category;
4
5#[account]
6pub struct Asset {
7    /// Community account, which this address belongs to
8    pub community: Pubkey,
9
10    /// Network account, which this address belongs to
11    pub network: Pubkey,
12
13    /// Asset mint account
14    pub mint: [u8; 64],
15
16    /// Asset ID
17    pub asset_id: [u8; 32],
18
19    /// Seed bump for PDA
20    pub bump: u8,
21
22    /// ID of the associated case
23    pub case_id: u64,
24
25    /// Reporter account public key
26    pub reporter: Pubkey,
27
28    /// Category of illicit activity identified with this address
29    pub category: Category,
30
31    /// Address risk score 0..10 (0 is safe, 10 is maximum risk)
32    pub risk: u8,
33
34    /// Confirmation count for this address
35    pub confirmations: u8,
36
37    /// Accumulated payment amount for report
38    pub replication_bounty: u64,
39}