← 返回
开发者工具 中文

Gougoubi Create Condition

Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission....
根据最小输入创建Gougoubi提案条件,并为截止日期、交易截止日期、规范化及交易提交设定确定性默认值。
chinasong
开发者工具 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 590
下载
💾 2
安装
2
版本
#automation#condition#evm#gougoubi#latest#prediction-market#workflow

概述

Gougoubi Create Condition

Use this skill to create a condition under an existing Gougoubi proposal from the smallest practical input.

Use This Skill When

  • The user wants to add one or more conditions to an existing proposal.
  • The user only provides proposal identifier and condition title.
  • The agent should auto-fill default dates and flags.

Do Not Use This Skill When

  • The user wants to create a new proposal. Use gougoubi-create-prediction.
  • The user wants activation, result submission, or reward claiming.

Minimal Input

{
  "proposalId": "0x... or proposal identifier",
  "conditionName": "Will Team A win the match?"
}

Defaults

  • Resolve proposalId to proposalAddress.
  • deadlineDateTime: proposal deadline.
  • deadlineTimezone: user locale, fallback UTC.
  • tradeDeadlineDateTime: deadlineDateTime - 1 hour, clamped to a valid future time.
  • tradeDeadlineTimezone: same as deadlineTimezone.
  • conditionImageUrl: empty string.
  • conditionRules: empty string.
  • skills: empty string.
  • isNormalized: true.

Generator Flow

Step 1: Validate minimal input.

Step 2: Resolve proposal and load proposal deadline.

Step 3: Generate all default date fields and clamp invalid values.

Step 4: Convert datetimes to unix seconds.

Step 5: Validate final payload:

  • conditionName non-empty
  • deadline > now
  • tradeDeadline > now
  • tradeDeadline <= deadline

Step 6: Submit the canonical contract call in this order:

  1. conditionName
  2. deadline
  3. tradeDeadline
  4. conditionImageUrl
  5. conditionRules
  6. skills
  7. isNormalized

Step 7: Wait for confirmation and return the normalized payload.

Output

{
  "ok": true,
  "mode": "browser|contract",
  "txHash": "0x...",
  "proposalAddress": "0x...",
  "normalizedInput": {
    "proposalId": "",
    "proposalAddress": "",
    "conditionName": "",
    "deadlineDateTime": "",
    "deadlineTimezone": "",
    "tradeDeadlineDateTime": "",
    "tradeDeadlineTimezone": "",
    "defaultsApplied": true,
    "tradeDeadlinePolicy": "deadline-minus-1h-with-valid-clamp"
  },
  "warnings": []
}

Failure:

{
  "ok": false,
  "stage": "validation|resolve-proposal|create|confirm",
  "error": "reason",
  "retryable": true
}

Boundaries

  • Never bypass wallet confirmation.
  • Keep defaults deterministic and explain them in output when relevant.

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-03-30 04:54 安全 安全
  • v1.0.0
    2026-03-20 05:12

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,503
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,450

Hk Stock Predictor

chinasong
分析香港上市股票,结合价格走势、基本面、技术面、南向资金、AH溢价、流动性等因素,生成可作预测的投研论点
★ 0 📥 750