返回顶部
g

gougoubi-activate-and-stake-risklp激活并质押风险LP

Activate Gougoubi proposal conditions and stake risk LP per condition in one deterministic workflow. Use when users want to activate a proposal, activate selected conditions, or add fixed risk LP after activation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
183
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

gougoubi-activate-and-stake-risklp

Gougoubi 激活并质押风险 LP

使用此技能执行组合流程:先激活,再添加风险 LP。

使用此技能的场景

  • - 用户希望一次性完成提案激活和添加风险 LP。
  • 用户希望每个条件有固定的风险 LP。
  • 用户希望在小范围内修复缺失的激活或缺失的 LP。

不使用此技能的场景

  • - 用户仅需提交结果。请使用 gougoubi-submit-real-results。
  • 用户仅需领取奖励。请使用 gougoubi-claim-all-rewards。
  • 用户仅需创建条件。请使用 gougoubi-create-condition。

输入

json
{
proposalAddress: 0x...,
riskLpPerCondition: 100,
scope: all|only-created|single,
conditionIndex: 0
}

默认值:

  • - scope=all
  • riskLpPerCondition=100

流程

步骤 1:验证输入并解析提案。

步骤 2:确保有足够的可用委员会投票人。必要时以最低质押自动加入委员会。

步骤 3:根据 scope 枚举条件。

步骤 4:对于每个选中的条件:

  • - 如果状态为 CREATED,投票激活。
  • 等待条件变为 ACTIVE。
  • 仅添加一次风险 LP,除非用户明确要求追加。

步骤 5:返回每个条件的激活和 LP 结果。

检查点

  • - 在条件变为 ACTIVE 之前不要添加 LP。
  • 将激活失败和 LP 失败分开处理。
  • 跳过单个条件失败并报告。

输出

json
{
ok: true,
proposalAddress: 0x...,
activatedCount: 0,
riskLpAddedCount: 0,
activated: [],
riskLpAdded: [],
activationFailed: [],
riskLpFailed: [],
warnings: [],
nextActions: []
}

失败情况:

json
{
ok: false,
stage: validation|resolve-proposal|join-committee|activate|add-risklp|confirm,
error: reason,
retryable: true
}

项目脚本

  • - scripts/pbft-activate-and-add-risklp.mjs
  • scripts/pbft-join-and-activate-all-conditions.mjs
  • scripts/pbft-add-risk-lp-to-proposal.mjs

脚本入口点

  • - 推荐组合入口:scripts/pbft-activate-and-add-risklp.mjs
  • node scripts/pbft-activate-and-add-risklp.mjs --help
  • node scripts/pbft-activate-and-add-risklp.mjs --dry-run
  • 在新环境中安装或验证此技能时,执行前请使用 --dry-run。

边界条件

  • - 切勿向未激活的条件添加 LP。
  • 除非用户明确要求,否则不要追加现有 LP。
  • 尽可能保持工作流的幂等性。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gougoubi-activate-and-stake-risklp-1776194822 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gougoubi-activate-and-stake-risklp-1776194822 技能

通过命令行安装

skillhub install gougoubi-activate-and-stake-risklp-1776194822

下载

⬇ 下载 gougoubi-activate-and-stake-risklp v1.0.1(免费)

文件大小: 3.83 KB | 发布时间: 2026-4-17 14:58

v1.0.1 最新 2026-4-17 14:58
Version 1.0.1

- Added a "Script Entry Points" section in the documentation for improved setup and usage guidance.
- Provided sample CLI usage and recommended use of `--dry-run` when installing or validating in new environments.
- No changes to workflow, inputs, or outputs.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部