{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Basic transaction information\n */\nexport type Transaction = {\n  /** Transaction ID/hash */\n  id: string;\n  /** Chain identifier in CAIP-2 format (e.g., \"eip155:1\") */\n  chain: string;\n  /** Transaction status */\n  status: string;\n  /** Timestamp when the transaction was processed */\n  timestamp: number;\n  /** Address that initiated the transaction */\n  from: string;\n  /** Address that received the transaction */\n  to: string;\n};\n\n/**\n * Asset information for balance updates\n */\nexport type Asset = {\n  /** Whether the asset is fungible */\n  fungible: boolean;\n  /** Asset type in CAIP format (e.g., \"eip155:1/erc20:0x...\") */\n  type: string;\n  /** Asset unit/symbol (e.g., \"USDT\", \"ETH\") */\n  unit: string;\n  /** Number of decimal places for the asset */\n  decimals: number;\n};\n\n/**\n * Balance information\n */\nexport type Balance = {\n  /** Balance amount as string */\n  amount: string;\n  /** Optional error message */\n  error?: string;\n};\n\n/**\n * Transfer information\n */\nexport type Transfer = {\n  /** Address sending the transfer */\n  from: string;\n  /** Address receiving the transfer */\n  to: string;\n  /** Transfer amount as string */\n  amount: string;\n};\n\n/**\n * Balance update information for a specific asset\n */\nexport type BalanceUpdate = {\n  /** Asset information */\n  asset: Asset;\n  /** Post-transaction balance */\n  postBalance: Balance;\n  /** List of transfers for this asset */\n  transfers: Transfer[];\n};\n\n/**\n * Complete transaction/balance update message\n */\nexport type AccountActivityMessage = {\n  /** Account address */\n  address: string;\n  /** Transaction information */\n  tx: Transaction;\n  /** Array of balance updates for different assets */\n  updates: BalanceUpdate[];\n};\n"]}