InspectorAI is a powerful tool designed to analyze and provide insights into smart contracts across multiple blockchain networks. It combines the capabilities of AI with blockchain technology to offer developers and users a comprehensive understanding of contract functionality and potential issues.
Chain | Contract Type | Address |
---|---|---|
Sepolia | Chainlink CCIP | 0x5aFCB399ef40DB5b77DC09AA02C53f5aee5744a5 |
Sepolia | Basic | 0x1c0042641A974a4411234DD68dfF22e9765e416F |
Rootstock | Basic | 0x78858Ab1Ad13C0a5829e06f89A9706a9Ba9A6791 |
Morph | Basic | 0x6dc71cf8907E9BA2C268615a80300AD6d3622fD7 |
Sepolia | Sign Protocol Schema | 0x271 |
Smart contracts are becoming increasingly complex and critical in the blockchain ecosystem. However, understanding their functionality, identifying potential vulnerabilities, and ensuring their reliability can be challenging. InspectorAI addresses these issues by providing:
- Automated analysis of smart contract code
- Detection of common vulnerabilities and security risks
- Insights into contract functionality and behavior
- Cross-chain compatibility checks
- AI-powered suggestions for code improvements
To start using InspectorAI:
-
Chrome Extension:
- You can install the Chrome extension by cloning this repo and loading it as an unpacked extension in Chrome.
- We have submitted the extension for review on the Chrome Web Store, but it is currently pending approval. This process can take a few days.
-
Visit our web application at https://inspector-ai-wine.vercel.app/?address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&chain=ethereum
-
Connect your wallet and select the network you want to analyze
-
Input the smart contract address or code you wish to inspect
-
Review the AI-generated analysis and recommendations
For developers looking to contribute or run the project locally, please refer to the "Deployment and Verification" section above.
InspectorAI leverages cutting-edge technologies and methodologies:
-
Chrome Extension: The primary point of contact for users, providing easy access to InspectorAI's features directly from their browser.
-
AI Integration: Utilizes advanced machine learning models like Claude 3 to analyze smart contract code and provide intelligent insights.
-
Multi-Chain Support: Built to work across various blockchain networks, including Ethereum, Rootstock, and Morph.
-
React & Next.js Frontend: A user-friendly interface built with React and Next.js for seamless interaction with the tool.
-
Solidity Smart Contracts: Custom smart contracts deployed on multiple chains to facilitate the analysis process.
-
Chainlink Integration: Incorporates Chainlink CCIP for cross-chain communication users can add a review on a different chain while they are on a different chain.
-
Scaffold-ETH 2: Built on top of the Scaffold-ETH 2 framework, providing a robust foundation for rapid development and deployment.
The InspectorAI contracts have been deployed and verified on multiple networks:
-
Clone the repository and install dependencies:
git clone https://github.com/Krane-Apps/inspector-ai-eth-singapore-2024 cd inspector-ai yarn install
-
Deploy to a local network for testing:
yarn chain yarn deploy
-
To deploy to a public testnet or mainnet, update the
hardhat.config.ts
with the appropriate network settings and run:yarn deploy --network <network-name>
-
Verify the contracts on block explorers using the provided script:
yarn verify --network <network-name>
For more detailed instructions on deployment and verification, please refer to our documentation.