/Sol-Sentry

A custom AI that specializes in Solana Smart Contracts, Blockchain, and Cryptocurrency. It offers in-depth knowledge about Solana's technology, coding intricacies, and best practices, aiming to enhance the security and efficiency of Solana development

Primary LanguageRust

Sol-Sentry

Sol Sentry Logo

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.

Installation

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.

Usage

Sol-Sentry offers various interfaces for users to analyze their Solana smart contracts, providing flexibility and accessibility. Here’s how to get started:

Streamlit Interface

The Streamlit interface provides a user-friendly web application to interact with Sol-Sentry. To use it, follow these steps:

  1. Navigate to the Sol-Sentry directory.
  2. Run the Streamlit app:
streamlit run scripts/app.py
  1. Follow the on-screen instructions to upload or paste your smart contract code for analysis.

CLI Tool

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.

Interpreting Analysis Reports

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.

Continuous Integration

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

Getting Help

For assistance, visit our Wiki or join our community on the Discussions page.

Contributing

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.

Support

For support, visit our Discussions page or open an issue.

License

Sol-Sentry is released under the MIT License.