Welcome to Sol-Sentry, an innovative AI tool designed for enhancing the security and efficiency of Solana smart contract development. Utilizing advanced AI analysis through GPT-4, Sol-Sentry offers in-depth analysis, predictive threat modeling, and best practice recommendations to fortify blockchain projects.
To start using Sol-Sentry, clone the repository and set up your environment:
git clone https://github.com/cywf/Sol-Sentry.git
cd Sol-Sentry
Follow the setup instructions specific to your system.
Sol-Sentry offers various interfaces for users to analyze their Solana smart contracts, providing flexibility and accessibility. Here’s how to get started:
The Streamlit interface provides a user-friendly web application to interact with Sol-Sentry. To use it, follow these steps:
- Navigate to the Sol-Sentry directory.
- Run the Streamlit app:
streamlit run scripts/app.py
- Follow the on-screen instructions to upload or paste your smart contract code for analysis.
Sol-Sentry can also be used via a command-line interface. To analyze your smart contracts, run:
sol-sentry analyze <path-to-your-contract>
Replace with the path to the Solana program file you wish to analyze.
Sol-Sentry generates a detailed report highlighting potential vulnerabilities, performance optimizations, and security recommendations. Review the report to make informed decisions about your smart contract development.
Integrate Sol-Sentry into your CI/CD pipeline for automated code analysis. Example with GitHub Actions:
name: Solana Smart Contract CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Sol-Sentry
run: |
# Add installation commands here
- name: Analyze Smart Contracts
run: sol-sentry analyze src/program.rs
For assistance, visit our Wiki or join our community on the Discussions page.
Contributions are welcome! If you have suggestions or want to add new features, please open an issue or submit a pull request. See our CONTRIBUTING.md for guidelines.
For support, visit our Discussions page or open an issue.
Sol-Sentry is released under the MIT License.