Skip to content
raghavendrashandePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Fractional Stocks Platform

A blockchain-powered web application for fractional stock ownership and trading using ao and Arweave.

Features

  • User authentication with Web3 wallets
  • Tokenized stock ownership
  • Real-time stock price tracking
  • Fractional trading capabilities
  • Automatic dividend distribution
  • Secondary marketplace for token trading

Technology Stack

  • Frontend: Next.js, React, TailwindCSS
  • Blockchain: ao (Arweave), Polygon (for transactions)
  • Storage: Arweave (via Turbo)
  • Authentication: Web3Modal, WalletConnect

Prerequisites

  • Node.js >= 18
  • npm or yarn
  • A Web3 wallet (MetaMask, etc.)
  • WalletConnect Project ID

Environment Variables

Create a .env.local file in the root directory with the following variables:

NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id
NEXT_PUBLIC_AO_SCHEDULER=your_ao_scheduler_address

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/fractional-stocks.git
cd fractional-stocks
  1. Install dependencies:
npm install
# or
yarn install
  1. Run the development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser.

Smart Contracts

The platform uses ao smart contracts written in Lua for managing tokenized stocks. The main contract components are:

  • Stock token creation and management
  • Transfer functionality
  • Dividend distribution
  • Balance tracking

Contributing

  1. Fork the repository
  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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages