Files
mini-swap/package.json
NoBey 7cddf1d987 feat: 添加 MiniSwap CLI 工具及相关文档
- 新增 CLI 工具,支持通过命令行与 MiniSwapAMM 合约交互
- 创建 CLI 使用指南文档,详细说明命令和操作流程
- 更新合约地址,确保与新部署的合约匹配
- 添加快速网络连接测试脚本,验证合约连接和网络状态
- 实现完整测试场景脚本,模拟用户操作和流动性管理
2025-07-12 02:28:36 +08:00

28 lines
924 B
JSON

{
"name": "mini-swap-dex",
"version": "1.0.0",
"description": "一个简单的去中心化交易所 AMM 模型",
"main": "index.js",
"scripts": {
"test": "hardhat test",
"compile": "hardhat compile",
"deploy": "hardhat run scripts/deploy.js --network localhost",
"node": "hardhat node",
"dev": "cd frontend && npm start",
"build": "cd frontend && npm run build",
"cli": "hardhat run scripts/cli.js --network localhost",
"test-scenario": "hardhat run scripts/test-scenario.js --network localhost",
"test-connection": "hardhat run scripts/quick-test.js --network localhost"
},
"keywords": ["defi", "dex", "amm", "ethereum", "solidity", "react"],
"author": "",
"license": "MIT",
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"hardhat": "^2.19.0"
},
"dependencies": {
"@openzeppelin/contracts": "^5.0.0",
"dotenv": "^16.3.1"
}
}