Skip to content

[aNode] 迁出 x402-facilitator-node + 合入 aNode 统一节点 monorepo(等 v5.4 稳定后) #286

@jhfnetboy

Description

@jhfnetboy

目标

v5.4 代码稳定后,把 @superpaymaster/x402-facilitator-node(现在本仓库 packages/)迁出 SuperPaymaster 合约仓库,与 DVT 节点合并成统一 operator 节点 aNode(monorepo)。合约仓库不再维护 Node.js service,改为在 docs/ 备注 aNode 仓库链接。

背景

  • v5.4 god-split 把 x402 结算从 SuperPaymaster 移到独立 X402Facilitator 合约;facilitator-node 紧耦合该合约,v5.4 期间暂留本仓库一起改/测最方便。
  • facilitator-node 与 DVT 节点(YetAnotherAA-Validator)同技术栈(TS/viem)、同 operator 运行、都读同一个 PolicyRegistry → 强烈的运维 + 基础设施共享动机。

架构(已落计划文档)

docs/architecture/dvt-facilitator-node-consolidation.md(PR #285):

  • 物理同服务器部署 ✅ / monorepo ✅ / 共享 node-shared
  • 但独立进程 🔴(BLS 私钥隔离 / 故障域 / 升级独立)
  • aNode 结构:packages/node-shared(viem/ABI/PolicyRegistry 读取层/config) + packages/x402-facilitator(独立进程) + packages/dvt-node(独立进程)

前置门槛(稳定后才动)

本仓库侧任务

  • node-shared(facilitator 的 verify-sig.ts/settle-args.ts/scheme.ts 是 x402 专属,留 facilitator package)
  • @superpaymaster/x402-facilitator-node 迁入 aNode monorepo,删除本仓库 packages/x402-facilitator-node
  • 本仓库 docs/ 备注 aNode 仓库链接
  • 跨 service 契约测试(facilitator 已有 21 vitest 一致性测试)

关联

DVT 节点合并侧:YetAnotherAA-Validator(即将创建关联 issue)。两个 issue 是同一件事(合为 aNode)的两半。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions