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.
- 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.
The project follows a dual-module structure:
packages/hardhat: Smart contract development and blockchain interactionspackages/nextjs: User-friendly web frontend interface
- 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
- 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
- Clone the repository
- Install dependencies with
yarn - Start the local blockchain with
yarn chain - Deploy contracts with
yarn deploy - Run the frontend with
yarn next
If you find this project useful, consider making a donation to support its development:
ERC20 Address: 0xcf2dc4b8cbc33bc06af792c40aee5fed9a342e97
Contact me on Twitter: @AlanBNB198
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 部署脚本
- 克隆仓库
- 使用
yarn安装依赖 - 使用
yarn chain启动本地区块链 - 使用
yarn deploy部署合约 - 使用
yarn next运行前端
如果您觉得这个项目有用,可以考虑捐赠以支持其发展:
ERC20 地址: 0xcf2dc4b8cbc33bc06af792c40aee5fed9a342e97
在 Twitter 上关注我: @AlanBNB198
该项目基于 MIT 许可证 - 详情请见 LICENSE 文件。
