Copy {
audit: {
contract: string;
chain: SupportedChain;
open_source: boolean;
contract_type: ContractType;
creator?: string;
hash?: string;
safe: boolean;
description?: string;
vulnerabilities?: Vulnerability[];
name?: string;
symbol?: string;
total_supply?: number;
logo?: string;
tokenDescription?: string;
holders?: TokenHolder[];
}
}
Copy {
"error": "Description of the error"
}
Copy enum SupportedChain {
ETH = "ETH",
OP = "OP",
ARB = "ARB",
BASE = "BASE",
BSC = "BSC",
AVAX = "AVAX",
APE = "APE",
BLAST = "BLAST",
LINEA = "LINEA",
MANTLE = "MANTLE",
POLYGON = "POLYGON",
ZKEVM = "ZKEVM",
SCROLL = "SCROLL",
SONIC = "SONIC",
ZKSYNC = "ZKSYNC",
}
Copy type ContractType = 'ERC-20' | 'ERC-721' | 'Unknown';
Copy interface Vulnerability {
description: string;
severity: number; // Score between 0 and 100
code: string;
type: VulnerabilityType;
}
Copy export type VulnerabilityType =
| "UnlimitedTokenMinting"
| "UnauthorizedTokenTransfer"
| "BalanceManipulation"
| "TransferFreeze"
| "HiddenFees"
| "AddressRestriction"
| "UnauthorizedTokenBurn"
| "ContractSelfDestruct"
| "ApprovalExploitation"
| "UnauthorizedOwnershipChange"
| "NonStandardERC20"
| "FalseFeedback"
| "WeakAccessControl"
| "MaliciousContractUpgrade"
| "TotalFreeze"
| "LiquidityDrain"
| "Impersonation"
| "ObfuscatedVariables"
| "UnsafeExternalCalls"
| "MaliciousAirdrop"
| "OverPrivilegedOwner"
| "StealthSelfDestruct"
| "TxOrderingControl"
| "IntentionalReentrancy"
| "GasLimitDenial";