//#region extensions/crypto/src/services/safety-service.d.ts /** * Safety Service — pre-flight checks before any on-chain write operation. * * Wired into defi-swap, clawnch-launch, and clawnch-fees before execution. * Uses herd-intelligence for token audits and swap validation. * Uses defi-balance logic for balance sufficiency checks. */ interface SafetyCheckResult { safe: boolean; warnings: string[]; blockers: string[]; details: Record; } /** * Check if the connected wallet has enough ETH for a given amount + gas. */ declare function checkBalance(opts: { requiredEth?: number; requiredTokenAddress?: string; requiredTokenAmount?: string; }): Promise; /** * Audit a token for safety using herd-intelligence (if available). * Non-blocking — returns warnings but doesn't block if the service is unavailable. */ declare function auditToken(tokenAddress: string): Promise; /** * Validate a swap before execution: balance + token audit + route check. * When routing through Bankr, skip local checks — Bankr's Sentinel handles security. */ declare function validateSwap(opts: { tokenIn: string; tokenOut: string; amountEth: number; }): Promise; /** * Pre-flight check for token launch: balance for gas + dev buy. */ declare function validateLaunch(opts: { devBuyEth?: number; }): Promise; /** * Pre-flight check for fee claims: just gas check. */ declare function validateClaim(): Promise; //#endregion export { SafetyCheckResult, auditToken, checkBalance, validateClaim, validateLaunch, validateSwap }; //# sourceMappingURL=safety-service.d.mts.map