Skip to content

chengwind198/pandaIPFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panda Web3.0 Decentralized Storage / 熊猫 Web3.0 分布式网盘

Logo

English | 中文


English

Panda Web3.0 Decentralized Storage is a decentralized file storage DApp built on Ethereum and IPFS. It allows users to upload, store, and retrieve files in a decentralized manner, leveraging the power of blockchain technology and IPFS distributed storage.

Key Features

  • Decentralized Storage: Files are stored on IPFS, ensuring data is distributed and resilient.
  • Blockchain Integration: Smart contracts on Ethereum manage file metadata and access control.
  • User-Friendly Interface: Built with Next.js for a responsive and intuitive user experience.
  • Web3 Wallet Integration: Seamlessly connect with popular wallets like MetaMask through RainbowKit.
  • File Management: Upload, view, and manage your files in one centralized dashboard.

Architecture

The project follows a dual-module structure:

  • packages/hardhat: Smart contract development and blockchain interactions
  • packages/nextjs: User-friendly web frontend interface

Core Components

  • IPFSStorage.sol: Smart contract for writing to and querying IPFS gateways
  • TypeScript Deployment Scripts: Automated contract deployment (00_deploy..., 01_deploy...)
  • useIPFSStorage.ts Hook: Frontend integration with the storage contract
  • Developer Tools: Account generation, private key viewing, deployment debugging

Technology Stack

  • Smart Contract Layer: Solidity, Hardhat for compilation, deployment, and testing
  • Frontend Interface: Next.js (App Router), TypeScript, React
  • Interaction Layer: wagmi, viem for wallet connection and contract calls
  • Code Generation: TypeChain for TypeScript contract type definitions
  • Deployment Scripts: TS-node for executing TypeScript deployment scripts

Getting Started

  1. Clone the repository
  2. Install dependencies with yarn
  3. Start the local blockchain with yarn chain
  4. Deploy contracts with yarn deploy
  5. Run the frontend with yarn next

Donate to the Project

If you find this project useful, consider making a donation to support its development:

ERC20 Address: 0xcf2dc4b8cbc33bc06af792c40aee5fed9a342e97

Donation QR Code

Contact

Contact me on Twitter: @AlanBNB198

License

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


中文

熊猫 Web3.0 分布式网盘 是一个基于以太坊和 IPFS 构建的去中心化文件存储 DApp。它允许用户以去中心化的方式上传、存储和检索文件,利用区块链技术和 IPFS 分布式存储的优势。

主要特性

  • 去中心化存储:文件存储在 IPFS 上,确保数据分布和弹性。
  • 区块链集成:以太坊上的智能合约管理文件元数据和访问控制。
  • 用户友好界面:使用 Next.js 构建,响应式且直观的用户体验。
  • Web3 钱包集成:通过 RainbowKit 无缝连接 MetaMask 等主流钱包。
  • 文件管理:在一个集中仪表板中上传、查看和管理您的文件。

架构

项目采用双模块结构:

  • packages/hardhat:智能合约开发和链上交互
  • packages/nextjs:用户友好的 Web 前端界面

核心组件

  • IPFSStorage.sol:用于写入和查询 IPFS 网关的智能合约
  • TypeScript 部署脚本:自动化合约部署(00_deploy..., 01_deploy...)
  • useIPFSStorage.ts Hook:前端与存储合约的集成
  • 开发者工具:账户生成、私钥查看、部署调试

技术栈

  • 智能合约层:使用 Solidity 编写,通过 Hardhat 进行编译、部署和测试
  • 前端界面:基于 Next.js(App Router)构建,使用 TypeScript 和 React
  • 交互层:通过 wagmi、viem 等 Web3 库实现钱包连接与合约调用
  • 代码生成:使用 TypeChain 生成 TypeScript 合约类型定义
  • 部署脚本:使用 TS-node 执行 TypeScript 部署脚本

快速开始

  1. 克隆仓库
  2. 使用 yarn 安装依赖
  3. 使用 yarn chain 启动本地区块链
  4. 使用 yarn deploy 部署合约
  5. 使用 yarn next 运行前端

捐助项目

如果您觉得这个项目有用,可以考虑捐赠以支持其发展:

ERC20 地址: 0xcf2dc4b8cbc33bc06af792c40aee5fed9a342e97

捐助二维码

联系方式

在 Twitter 上关注我: @AlanBNB198

许可证

该项目基于 MIT 许可证 - 详情请见 LICENSE 文件。

About

Panda Web3.0 Decentralized Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages