🚀 XUL Chain 的完整 DeFi + AI 基础设施
| 参数 | 值 |
|---|---|
| 链名称 | XUL Chain |
| 链 ID | 12309 (0x3015) |
| RPC | https://pro.rswl.ai |
| 浏览器 | https://scan.rswl.ai |
- 多代币支付支持
- 原生 XUL 代币支付
- 支付验证和结算
- 自动做市商 (AMM)
- 代币交换
- 流动性池
- 支持多代币交易对
- WUSDT, WUSDC, WBTC, WETH
- 跨链资产映射
- 标准 ERC20 接口
- AI 身份 NFT
- 行为记录和信誉系统
- 资产所有权管理
- 零知识机器学习证明
- AI 推理验证
- 隐私保护计算
- 分布式计算网络
- GPU/CPU/IoT 设备注册
- AI 任务分发
- 激励机制
- 15种语言支持
- AI 智能翻译
- 人工翻译支持
- 质量验证和信誉系统
- 创建/导入钱包
- 多代币管理
- 发送/接收
- 内置翻译功能
✅ 经过安全审计,修复了 V1 中的安全漏洞
| 合约 | 地址 | 安全特性 |
|---|---|---|
| WXULV2 | 0x3111... |
黑名单、限额、暂停 |
| XULSwapRouterV2 | 0x1AAd... |
Deadline、滑点保护、暂停 |
| X402PaymentProcessorV2 | 0x1D75... |
EIP-712、Nonce检查、暂停 |
| XULSwapFactoryV2 | 0x9466... |
基础工厂 |
| 合约 | 地址 | 功能 |
|---|---|---|
| X402PaymentProcessor | 0x04Ae... |
支付处理器 |
| XULSwap Router | 0x9fE6... |
DEX 路由 |
| WXUL | 0xf6c8... |
包装 XUL |
| WUSDT | 0x79be... |
包装 USDT |
| WUSDC | 0x41Bf... |
包装 USDC |
| WBTC | 0x1A39... |
包装 BTC |
| WETH | 0x3dE4... |
包装 ETH |
| XULSmartWallet | 0x4788... |
智能钱包 |
| XULAIAgentRegistry | 0xa1cD... |
AI 代理注册 |
| XULzkMLVerifier | 0x3477... |
zkML 验证器 |
| XULDePIN | 0x060e... |
DePIN 网络 |
| XULTranslator | 0xA0E4... |
翻译系统 |
- Node.js >= 18
- npm 或 yarn
- Git
# 克隆仓库
git clone https://github.com/XUL999/x402-xul-protocol.git
cd x402-xul-protocol
# 安装依赖
npm install
# 复制环境变量
cp .env.example .env
# 编辑 .env 文件,填入私钥npx hardhat compilenpx hardhat test# 部署基础合约(支付、DEX、包装代币)
npx hardhat run scripts/deploy.ts --network xul-mainnet
# 部署高级功能合约
npx hardhat run scripts/deploy-advanced.ts --network xul-mainnet
# 部署翻译系统
npx hardhat run scripts/deploy-translator.ts --network xul-mainnetx402-xul-protocol/
├── contracts/ # 智能合约
│ ├── X402PaymentProcessor.sol # 支付处理器
│ ├── WXUL.sol # 包装 XUL
│ ├── XULSwapFactory.sol # DEX 工厂
│ ├── XULSwapRouter.sol # DEX 路由
│ ├── WUSDT.sol # 包装 USDT
│ ├── WUSDC.sol # 包装 USDC
│ ├── WBTC.sol # 包装 BTC
│ ├── WETH.sol # 包装 ETH
│ ├── XULAdvanced.sol # 高级功能(钱包、AI、zkML、DePIN)
│ └── XULTranslator.sol # 翻译系统
├── scripts/ # 部署脚本
├── test/ # 测试文件
├── src/ # SDK 和服务端代码
├── docs/ # 文档
├── hardhat.config.ts # Hardhat 配置
└── package.json
npx hardhat run scripts/add-token.ts --network xul-mainnetnpx hardhat run scripts/add-native-token.ts --network xul-mainnetXULTranslator 支持 15种语言:
| 语言 | 代码 | 语言 | 代码 |
|---|---|---|---|
| 🇨🇳 中文 | ZH | 🇺🇸 English | EN |
| 🇯🇵 日本語 | JA | 🇰🇷 한국어 | KO |
| 🇫🇷 Français | FR | 🇩🇪 Deutsch | DE |
| 🇪🇸 Español | ES | 🇷🇺 Русский | RU |
| 🇸🇦 العربية | AR | 🇵🇹 Português | PT |
| 🇮🇹 Italiano | IT | 🇻🇳 Tiếng Việt | VI |
| 🇹🇭 ไทย | TH | 🇮🇩 Bahasa Indonesia | ID |
| 🇲🇾 Bahasa Melayu | MS |
欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 创建 Pull Request
本项目采用 MIT 许可证 - 详见 LICENSE 文件
- 区块链浏览器: https://scan.rswl.ai
- GitHub: https://github.com/XUL999/x402-xul-protocol
- Web 钱包: http://192.168.110.224:3000
- GitHub: @XUL999
Made with ❤️ for XUL Chain