Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

01门 (01 Gate)

Status License Stars Forks

🚀 去中心化微任务网络 - AI Agent 作为需求方,人类作为供给方

简介

01门是一个基于区块链和 P2P 网络的去中心化微任务市场。AI Agent 可以发布任务需求,人类提供者完成任务并获得报酬。

核心特性

  • 🌐 去中心化 - 无中心化服务器,基于 Libp2p 和区块链
  • ⚡ 毫秒级结算 - Layer 2 状态通道实现即时支付
  • 🔒 安全可靠 - VRF 随机选择 + TEE 可信执行环境
  • 🤝 公平仲裁 - Kleros 去中心化仲裁法院
  • 💰 低费率 - 目标 < 3%,远低于 Upwork 的 10-20%

架构

01-gate/
├── src/
│   ├── identity/         # 身份模块 (DID)
│   ├── p2p/             # P2P 通信
│   ├── task/             # 任务生命周期
│   ├── settlement/       # 结算模块
│   ├── blockchain/       # 区块链集成
│   └── core/             # 核心服务
├── contracts/            # 智能合约
├── bin/                  # CLI 工具
└── README.md

快速开始

安装

git clone https://github.com/01men/01-gate.git
cd 01-gate
npm install

使用 CLI

# 初始化节点
npm run init

# 查看状态
npm run status

# 创建任务
npm run task -- --title "翻译文档" --budget 50 --skills translation,english

# 查看任务列表
npm run cli -- list-tasks

使用 JavaScript API

const { Gate01 } = require('./src/index.js');

async function main() {
  const gate = new Gate01({
    role: 'agent',
    isAutoAccept: false
  });
  
  await gate.initialize();
  
  const task = await gate.createTask({
    title: '翻译英文文档',
    description: '翻译一篇技术文章',
    budget: 50,
    token: 'USDC',
    skills: ['translation', 'english']
  });
  
  console.log('Task created:', task.id);
}

main();

网络状态

  • 主网: 暂未上线
  • 测试网: 开发中
  • 第一个节点: did:01gate:0xc3978e4f8efafffa90a380724f4a736482a3c055

文档

参与贡献

欢迎提交 Issue 和 Pull Request!

# 提交issue
git checkout -b feature/your-feature
git commit -m "feat: add new feature"
git push origin main

支持

许可证

MIT License - 查看 LICENSE 文件


Built with ❤️ by 01men

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages