NAC_Blockchain/docs_center/presale-website/README.md

85 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# NAC预售网站 (pre-sale.newassetchain.io) 日志
## 模块信息
- **模块名称**NAC XIC Token 预售网站
- **域名**https://pre-sale.newassetchain.io
- **部署服务器**AI服务器 43.224.155.27
- **项目路径**/www/wwwroot/nac-presale-test
- **PM2进程**nac-presale-test (端口3100)
---
## 技术栈
| 组件 | 技术 |
|---|---|
| 前端 | React + TypeScript + Vite + Tailwind CSS |
| 后端 | Node.js + Express + tRPC |
| 数据库 | MySQL (TiDB) |
| 区块链交互 | ethers.js v6 + wagmi/viem |
| 钱包支持 | MetaMask, Trust Wallet, OKX, Coinbase, TokenPocket, TronLink |
---
## 版本历史
| 版本 | 日期 | 主要变更 |
|---|---|---|
| v1.0 | 2026-03-07 | 初始版本BSC/ETH USDT购买、TRC20手动转账 |
| v2.0 | 2026-03-07 | 新增导航栏钱包按钮、FAQ、实时购买Feed |
| v3.0 | 2026-03-07 | 接入BSC/ETH真实链上数据、TRC20自动发放、中英双语 |
| v4.0 | 2026-03-07 | 购买教程页面、管理员后台、TRC20 EVM地址输入 |
| v5.0 | 2026-03-08 | 多节点RPC故障转移、Telegram通知、Site Settings |
| v6.0 | 2026-03-08 | TronLink钱包检测、多钱包列表选择器 |
| v7.0 | 2026-03-09 | 新预售合约XICPresale v2部署购买即时发放XIC |
---
## 合约地址
| 合约 | 网络 | 地址 |
|---|---|---|
| XICPresale v2 | BSC | 0x5953c025dA734e710886916F2d739A3A78f8bbc4 |
| XIC Token | BSC | 0x59FF34dD59680a7125782b1f6df2A86ed46F5A24 |
| USDT | BSC | 0x55d398326f99059fF775485246999027B3197955 |
| 旧预售合约(已弃用) | BSC | 0xc65e7a2738ed884db8d26a6eb2fecf7daca2e90c |
| ETH预售合约 | ETH | 0x85AB2F2d9f7ca7ecB272b5E8726c70f3fd45D1E3 |
---
## 管理员账号
| 项目 | 值 |
|---|---|
| 管理后台地址 | https://pre-sale.newassetchain.io/admin |
| 管理员密码 | NACadmin2026! |
---
## 关键文件
```
/www/wwwroot/nac-presale-test/
├── client/src/
│ ├── lib/contracts.ts # 合约地址和ABI配置
│ ├── hooks/usePresale.ts # 购买逻辑
│ ├── hooks/useWallet.ts # 钱包连接
│ └── pages/Home.tsx # 主页面
├── server/
│ ├── onchain.ts # 链上数据读取
│ ├── trc20Monitor.ts # TRC20监控
│ ├── routers.ts # tRPC路由
│ └── configDb.ts # 配置数据库
└── contracts/
└── XICPresale.sol # 预售合约源码
```
---
## Nginx配置
文件路径:/etc/nginx/conf.d/nac-presale.conf
代理443 → 127.0.0.1:3100
SSL/etc/ssl/newassetchain/_.newassetchain.io.crt