{"id":24322005,"url":"https://github.com/dkcodec/blockchain","last_synced_at":"2025-10-25T11:39:41.296Z","repository":{"id":271674346,"uuid":"914213695","full_name":"dkcodec/Blockchain","owner":"dkcodec","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-09T07:02:40.000Z","size":1066,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T17:55:18.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkcodec.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-09T06:52:27.000Z","updated_at":"2025-01-09T07:02:43.000Z","dependencies_parsed_at":"2025-01-09T08:31:50.586Z","dependency_job_id":null,"html_url":"https://github.com/dkcodec/Blockchain","commit_stats":null,"previous_names":["dkcodec/blockchain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkcodec%2FBlockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkcodec%2FBlockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkcodec%2FBlockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkcodec%2FBlockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkcodec","download_url":"https://codeload.github.com/dkcodec/Blockchain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242956549,"owners_count":20212454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-17T17:36:47.979Z","updated_at":"2025-10-25T11:39:41.224Z","avatar_url":"https://github.com/dkcodec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Model Marketplace\r\n\r\nA simple decentralized marketplace for listing, purchasing, and rating AI models on the Ethereum blockchain.\r\n\r\n## Table of Contents\r\n\r\n1. [Overview](#overview)\r\n2. [Features](#features)\r\n3. [Installation](#installation)\r\n4. [Usage](#usage)\r\n5. [Screenshots](#screenshots)\r\n6. [Examples](#examples)\r\n7. [License](#license)\r\n\r\n---\r\n\r\n## Overview\r\n\r\nThis project demonstrates a full-stack dApp (decentralized application) built with:\r\n\r\n- **Solidity** for smart contracts\r\n- **React** (or any other frontend framework) for the UI\r\n- **Hardhat/Truffle** for development and deployment\r\n\r\n## Features\r\n\r\n- **List Models**: Users can list a new AI model by specifying its name, description, and price.\r\n- **Purchase Models**: Buyers can purchase a model by sending Ether to the model’s creator.\r\n- **Rate Models**: Buyers can rate a purchased model to indicate quality.\r\n- **Withdraw Funds**: Contract owner can withdraw accumulated fees (if any).\r\n- **View Details**: Anyone can view a model’s details, including average rating.\r\n\r\n## Installation\r\n\r\n1. **Clone the repository**:\r\n\r\n   ```bash\r\n   git clone https://github.com/your-username/AI-Model-Marketplace.git\r\n   cd AI-Model-Marketplace\r\n   ```\r\n\r\n2. **Install dependencies (root and frontend)**:\r\n\r\n   ```bash\r\n   # Install dependencies for contracts/test\r\n   npm install\r\n\r\n   # Move into client folder and install frontend dependencies\r\n   cd client\r\n   npm install\r\n   ```\r\n\r\n3. **Compile and Test (in the root folder)**:\r\n\r\n   ```bash\r\n   npx hardhat compile\r\n   npx hardhat test\r\n   ```\r\n\r\n4. **Deploy**:\r\n\r\n   ```bash\r\n   npx hardhat run scripts/deploy.js --network localhost\r\n   ```\r\n\r\n   Make sure you have a local blockchain running (e.g., Hardhat node or Ganache).\r\n\r\n5. **Run the Frontend**:\r\n\r\n   ```bash\r\n   cd client\r\n   npm run start\r\n   ```\r\n\r\n   The DApp will be accessible at [http://localhost:3000](http://localhost:3000).\r\n\r\n## Usage\r\n\r\n- **Connect Wallet**: Ensure you have MetaMask or another web3 provider installed.\r\n- **List Model**: Fill in the model name, description, and price. Submit the transaction.\r\n- **Purchase Model**: Click the “Purchase” button and confirm the transaction in your wallet.\r\n- **Rate Model**: Provide a rating (1-5) and confirm the transaction.\r\n- **Withdraw Funds (Owner only)**: If a fee mechanism is implemented, the contract owner can withdraw.\r\n\r\nScreenshots\r\n\r\n## Скриншоты\r\n\r\n![Форма добавления модели](./screenshots/list-model-form.png 'Форма добавления модели')\r\n\r\n![Покупка модели](./screenshots/welcome.png 'Покупка модели')\r\n\r\n![Оценка модели](./screenshots/2.png 'Оценка модели')\r\n\r\n![Вывод средств владельцем](./screenshots/3.png 'Вывод средств владельцем')\r\n\r\n![Вывод средств владельцем](./screenshots/4.png 'Вывод средств владельцем')\r\n\r\n![Вывод средств владельцем](./screenshots/5.png 'Вывод средств владельцем')\r\n\r\n![Вывод средств владельцем](./screenshots/6.png 'Вывод средств владельцем')\r\n\r\n---\r\n\r\n## LICENSE\r\n\r\nIf you choose MIT, your `LICENSE` file could look like:\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkcodec%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkcodec%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkcodec%2Fblockchain/lists"}