Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

135 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harmony LLM API

Smart Contracts

The contracts directory contains all blockchain-related code:

  • Smart contract source code
  • Test files
  • Deployment scripts
  • Hardhat configuration

Main contracts:

  • HarmonyLLMPayment.sol: Handles prepaid balances and usage tracking

Setup

Backend Setup

cd backend
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt

Smart Contract Setup

cd contracts
npm install
npx hardhat compile

Development

Running the Backend

cd backend
python app.py

Testing Smart Contracts

cd contracts
npx hardhat test

Deploying Smart Contracts

cd contracts
npx hardhat run scripts/deploy.js --network <network-name>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages