Skip to content

BudgetChain/budgetchain-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BudgetChain App

A decentralized financial management system built on StarkNet using Cairo contracts.

Overview

BudgetChain is a blockchain-based budgeting and financial management system that allows users to create, track, and manage budgets in a transparent and secure way. Built on StarkNet using Cairo, BudgetChain provides a gas-efficient and scalable solution for financial management.

Project Structure

budgetchain-app/
├── README.md
├── contracts/          # Individual Cairo smart contracts
│   ├── README.md
│   ├── Budget/         # Budget management contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── budget.cairo
│   │   └── tests/
│   │       └── test_budget.cairo
│   ├── Milestones/     # Milestone tracking contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── milestones.cairo
│   │   └── tests/
│   │       └── test_milestones.cairo
│   ├── Expenses/       # Expense tracking contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── expenses.cairo
│   │   └── tests/
│   │       └── test_expenses.cairo
│   ├── Goals/          # Financial goals contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── goals.cairo
│   │   └── tests/
│   │       └── test_goals.cairo
│   ├── Reports/        # Reporting and analytics contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── reports.cairo
│   │   └── tests/
│   │       └── test_reports.cairo
│   ├── TransactionLedger/ # Transaction ledger contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── transaction_ledger.cairo
│   │   └── tests/
│   │       └── test_transaction_ledger.cairo
│   ├── ProjectManagement/ # Project management contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── project_management.cairo
│   │   └── tests/
│   │       └── test_project_management.cairo
│   ├── OrganizationManagement/ # Organization management contract
│   │   ├── Scarb.toml
│   │   ├── src/
│   │   │   ├── lib.cairo
│   │   │   └── organization_management.cairo
│   │   └── tests/
│   │       └── test_organization_management.cairo
│   └── [additional contract directories]
└── [additional directories as project grows]

Features

  • Decentralized Budget Management: Create and manage budgets on the blockchain
  • Transparent Financial Tracking: All transactions are recorded on-chain
  • Gas-Efficient: Built on StarkNet for low transaction costs
  • Scalable: Leverages StarkNet's high throughput capabilities
  • Secure: Smart contract-based security with role-based access control

Prerequisites

  • Scarb - Cairo package manager
  • SNFoundry - Testing framework for StarkNet
  • StarkNet - Layer 2 scaling solution

Getting Started

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/budgetchain-app.git
cd budgetchain-app
  1. Navigate to the contracts directory:
cd contracts
  1. Install dependencies:
scarb build

Building the Project

To build the smart contracts:

cd contracts
scarb build

Testing

Run the test suite using SNFoundry:

cd contracts
snforge test

Smart Contracts

The core functionality is implemented through individual Cairo smart contracts, each handling a specific aspect of financial management:

  • Budget Contract: Create, manage, and track budgets
  • Milestones Contract: Track project milestones and deadlines
  • Expenses Contract: Record and categorize expenses
  • Goals Contract: Set and monitor financial goals
  • Reports Contract: Generate financial reports and analytics
  • Transaction Ledger Contract: Record and track all financial transactions
  • Project Management Contract: Manage projects, tasks, and team collaboration
  • Organization Management Contract: Handle organizational structure and permissions

Each contract is independently deployable and can be used standalone or in combination with others. Notifications and alerts are handled off-chain through the application layer.

Architecture

BudgetChain leverages StarkNet's capabilities to provide:

  • Low Gas Costs: StarkNet's L2 scaling reduces transaction fees
  • High Throughput: Process multiple budget operations efficiently
  • Security: Cryptographic guarantees through smart contracts
  • Transparency: All operations are publicly verifiable

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • StarkWare for creating StarkNet and Cairo
  • SNFoundry team for the testing framework
  • The StarkNet community for ongoing support and development

Roadmap

  • Core budget management functionality
  • User interface for budget creation and tracking
  • Integration with popular wallets
  • Advanced analytics and reporting
  • Multi-currency support
  • Mobile application

Support

For support, please open an issue in the GitHub repository or contact the development team.


Note: This project is in active development. Features and APIs may change before the stable release.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors