SuperAPI AI 工具集

warp-deploy-register-route

部署与运维

查看项目

更新于 10-15 22:15

技能介绍

用途:在 Hyperlane monorepo 中完成新 warp route 部署注册表合并后的收尾步骤。输入为一个或多个 TOKEN/chain 格式的 warp route ID,或 Linear 工单链接;多个路由可合并到一个 PR。

主要能力与流程:

  1. 将 warp route ID 转为 PascalCase 枚举键,并加入 typescript/infra/config/environments/mainnet3/warp/warpIds.ts。
  2. 多抵押品路由(3 条以上链、含 ICA 所有权或 CCTP 再平衡)需额外完成 configGetter:取消 warpFees.ts 中合成链注释、新建 get<SyntheticChain><TOKEN>WarpConfig.ts、在 config/warp.ts 注册、创建 rebalancer 配置。
  3. 用 git ls-remote 获取 hyperlane-registry 最新提交并更新 .registryrc,同时校验本地注册表克隆是否最新。
  4. 运行 pnpm -C typescript/infra run update-agent-config:mainnet3 重新生成 agent 配置。
  5. 部署 warp monitor:pnpm tsx ./scripts/warp-routes/deploy-warp-monitor.ts -e mainnet3 --warpRouteId <WARP_ROUTE_ID> --registry-commit <REGISTRY_COMMIT> --yes,并用 status.ts 检查 Pod 状态。
  6. 用 gh pr create 创建 PR。

适用场景:Hyperlane 运维人员为新 warp route 做注册表合并后的配置、监控与提交。

限制:需 helm、kubectl、gh 等工具;各步骤有依赖顺序,失败需先解决;本地注册表须位于 monorepo 同级目录。具体费用、平台支持等资料暂未提供。