OpenFunderse 参与者机器人:分配与提交 - Openclaw Skills
作者:互联网
2026-03-26
什么是 OpenFunderse 参与者 MoltBot?
OpenFunderse 参与者 MoltBot 是为 Openclaw Skills 库设计的强大工具,用于管理 AllocationClaimV1 对象的生命周期。此技能使开发人员和基金参与者能够以高安全性和精确度向中继器提案、验证并提交分配权重。通过直接集成到 Openclaw Skills 环境中,它确保所有环境变量和浅包配置都通过集中的规范真相源进行管理。
该技能专为性能和安全而构建,利用 EIP-191 消息签名进行中继器身份验证,而非静态 API 密钥。作为更广泛的 Openclaw Skills 套件的一部分,它提供了一种参与去中心化基金、管理金库资产(如原生 MON 或 ERC-20 代币)以及通过自动化轮换工具维护浅包健康的标准化方式。
下载入口:https://github.com/openclaw/skills/tree/main/skills/wiimdy/openfunderse-strategy
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install openfunderse-strategy
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 openfunderse-strategy。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
OpenFunderse 参与者 MoltBot 应用场景
- 为基金周期提案具有特定目标权重的新投资分配。
- 通过对市场信号做出反应的守护进程模式自动化基金参与。
- 通过 T@elegrimm 命令管理金库操作,包括存款、提款和份额赎回。
- 在将分配申领提交给中继器之前验证其加密完整性。
- 将自动化参与者代理集成到更大的 Openclaw Skills 工作流中。
- 安装:将技能安装到 OpenClaw 环境中,将必要的环境变量同步到规范的 openclaw.json 配置中。
- 初始化:使用 bot-init 工具生成或分配专门的参与者浅包,以确保密钥健康。
- 提案:代理生成包含基金 ID、周期 ID 和特定目标权重的 AllocationClaimV1。
- 验证:技能通过 SDK 重新计算规范哈希,以验证申领针对策略风险正策的完整性。
- 提交:验证通过后,申领使用 EIP-191 进行签名并传输到受信任的中继器端点。
OpenFunderse 参与者 MoltBot 配置指南
要在您的 Openclaw Skills 环境中开始使用此技能,请运行以下安装命令:
npm init -y && npx @wiimdy/openfunderse@2.0.0 install openfunderse-participant --with-runtime
安装后,初始化您的参与者签名者密钥。这将生成一个新浅包并更新您的配置:
npx @wiimdy/openfunderse@2.0.0 bot-init --skill-name participant --yes --no-restart-openclaw-gateway
确保您的 PARTICIPANT_PRIVATE_KEY 和 RELAYER_URL 在 /home/ubuntu/.openclaw/openclaw.json 中正确设置。
OpenFunderse 参与者 MoltBot 数据架构与分类体系
该技能主要在 AllocationClaimV1 架构上运行,以确保在 Openclaw Skills 生态系统中的兼容性:
| 字段 | 类型 | 描述 |
|---|---|---|
| claimVersion | 字符串 | 必须设置为 v1 |
| fundId | 字符串 | 基金的唯一标识符 |
| epochId | 数字 | 申领的当前活跃周期 |
| participant | 地址 | 参与者机器人的以太坊地址 |
| targetWeights | 数组 | 映射到策略允许列表代币的整数权重 |
| horizonSec | 数字 | 分配有效的持续时间 |
| nonce | 数字 | 基于时间戳的申领唯一标识符 |
name: openfunderse-participant
description: Participant MoltBot for allocation proposal, validation, and submission
metadata:
openclaw:
installCommand: npx @wiimdy/openfunderse@2.0.0 install openfunderse-participant --with-runtime
requires:
env:
- RELAYER_URL
- PARTICIPANT_PRIVATE_KEY
- BOT_ID
- CHAIN_ID
- RPC_URL
- PARTICIPANT_ADDRESS
- PARTICIPANT_AUTO_SUBMIT
- PARTICIPANT_REQUIRE_EXPLICIT_SUBMIT
- PARTICIPANT_TRUSTED_RELAYER_HOSTS
- PARTICIPANT_ALLOW_HTTP_RELAYER
bins:
- node
- npm
primaryEnv: PARTICIPANT_PRIVATE_KEY
skillKey: participant
Participant MoltBot Skill
Participant role proposes and validates AllocationClaimV1 only.
Security / Consent Notes (Read First)
- Installing via
npx @wiimdy/openfunderse@2.0.0 ...executes code fetched from npm. Prefer pinning a known version (as shown) and reviewing the package source before running in production. PARTICIPANT_PRIVATE_KEYis highly sensitive. Use a dedicated wallet key for this bot; never reuse treasury/admin keys.bot-initis a destructive rotation tool: it generates a fresh wallet, updates.env.participant, and stores wallet backups under~/.openclaw/workspace/openfunderse/wallets.- By default,
installandbot-initalso sync env vars into~/.openclaw/openclaw.jsonandbot-initrunsopenclaw gateway restart. This mutates global OpenClaw runtime state and can affect other skills.- Use
--no-sync-openclaw-envfor file-only behavior. - Use
--no-restart-openclaw-gatewayto avoid restarting the gateway. - Before mutating global config, back up
~/.openclaw/openclaw.json.
- Use
Quick Start
- Install (pick one). You do not need to run both:
Manual (direct installer; run in a Node project dir, or npm init -y first):
npm init -y && npx @wiimdy/openfunderse@2.0.0 install openfunderse-participant --with-runtime
ClawHub:
npx clawhub@latest install openfunderse-participant
- Optional: create or rotate a dedicated participant signer key.
If you already have a key, set PARTICIPANT_PRIVATE_KEY and PARTICIPANT_ADDRESS directly in OpenClaw env (/home/ubuntu/.openclaw/openclaw.json -> env.vars) or in ~/.openclaw/workspace/.env.participant. You do not need to run bot-init.
If you want the installer to generate a new wallet and write it into the role env file:
npx @wiimdy/openfunderse@2.0.0 bot-init r
--skill-name participant r
--yes r
--no-restart-openclaw-gateway
bot-init updates an existing .env.participant.
If the env file is missing, run install first (without --no-init-env) or pass --env-path. If PARTICIPANT_PRIVATE_KEY is already set (not a placeholder), re-run with --force to rotate.
Environment Source of Truth (Hard Rule)
- In OpenClaw runtime on Ubuntu, treat
/home/ubuntu/.openclaw/openclaw.json(env.vars) as the canonical env source. - Do not require manual
.envsourcing for normal skill execution. - If
.env*andopenclaw.jsondisagree, useopenclaw.jsonvalues. - When user asks env setup, direct them to update
openclaw.jsonfirst.
- Optional local shell export (debug only):
set -a; source ~/.openclaw/workspace/.env.participant; set +a
This step is not required for normal OpenClaw skill execution.
T@elegrimm slash commands:
Note: T@elegrimm integration is handled by your OpenClaw gateway. This pack does not require a T@elegrimm bot token; configure T@elegrimm credentials at the gateway layer.
/allocation --fund-id --epoch-id --target-weights [--verify] [--submit]
/allocation --claim-file [--verify] [--submit]
/join --room-id
/deposit --amount [--vault-address <0x...>] [--native] [--submit]
/withdraw --amount [--vault-address <0x...>] [--native] [--submit]
/redeem --shares [--vault-address <0x...>] [--submit]
/vault_info [--vault-address <0x...>] [--account <0x...>]
/participant_daemon --fund-id --strategy [--interval-sec ] [--epoch-source ] [--epoch-id ] [--submit]
Notes:
allocationwill auto-validate on submit (--submitimplies verify).submit_allocation(legacy) validates the claim hash first; without--submitit is validation-only dry-run.
BotFather /setcommands (copy-paste ready):
start - Show quick start
help - Show command help
allocation - Mine (optional verify) and optionally submit allocation claim
join - Register this bot as a participant for the fund mapped to the room id
deposit - Deposit native MON or ERC-20 into vault
withdraw - Withdraw assets from vault (native or ERC-20)
redeem - Burn vault shares and receive assets
vault_info - Show vault status and user PnL
participant_daemon - Run participant allocation daemon
Notes:
- Slash parser accepts underscores, so
/participant_daemonequals/participant-daemon. key=valuestyle is also accepted (fund_id=demo-fund).- On first install, register these commands in T@elegrimm via
@BotFather->/setcommands.
OpenClaw note:
install/bot-initsync env keys into~/.openclaw/openclaw.json(env.vars) by default.bot-initalso runsopenclaw gateway restartafter a successful env sync, so the gateway picks up updates.- Use
--no-sync-openclaw-envfor file-only behavior, or--no-restart-openclaw-gatewayto skip the restart. - If env still looks stale: run
openclaw gateway restartand verify values in/home/ubuntu/.openclaw/openclaw.json.
Note:
- The scaffold includes a temporary private key placeholder by default.
- Always run
bot-initbefore funding or running production actions. bot-initgenerates a new wallet (private key + address) and writes it into the role env file.
Relayer Bot Authentication (Signature)
This skill authenticates relayer write APIs with an EIP-191 message signature (no BOT_API_KEY).
Message format:
openfunderse:auth:: :
Required headers:
x-bot-id: BOT_IDx-bot-signature: <0x...>x-bot-timestamp:x-bot-nonce:
Relayer verifies this signature against Supabase fund_bots.bot_address.
Participant bot registration can be done by:
- Participant:
POST /api/v1/rooms/{roomId}/join(recommended for T@elegrimm groups) - Strategy:
POST /api/v1/funds/{fundId}/bots/register(direct registration)
If the participant bot is not registered for the fund, relayer will reject participant write APIs with 401/403.
propose_allocation outputs canonical allocation claim:
claimVersion: "v1"fundId,epochId,participanttargetWeights[](integer, non-negative, sum > 0)horizonSec,nonce,submittedAt
No crawl/evidence/sourceRef schema is used.
Vector mapping rule:
targetWeights[i]maps to strategyriskPolicy.allowlistTokens[i].- Participants must submit weights in the same token order used by the strategy allowlist.
Daemon mode (auto-claim)
For MVP, the participant runtime supports an always-on daemon that:
- reads NadFun testnet signals (quote/progress/buy logs),
- computes
targetWeights[]using a fixed allowlist order, - submits
AllocationClaimV1to the relayer on a timer.
Use the --strategy command flag:
A: momentum (buy pressure)B: graduation proximity (progress)C: impact-aware (quote-based)
Submission safety gates
submit_allocation is guarded by default:
PARTICIPANT_REQUIRE_EXPLICIT_SUBMIT=truerequires explicitsubmit=true.PARTICIPANT_AUTO_SUBMIT=truemust be enabled for network transmission.RELAYER_URLhost is checked byPARTICIPANT_TRUSTED_RELAYER_HOSTSwhen set.RELAYER_URLmust usehttpsunlessPARTICIPANT_ALLOW_HTTP_RELAYER=true(local development only).
If gate is closed, return decision=READY (no submit).
Input contracts
propose_allocation
{
"taskType": "propose_allocation",
"fundId": "string",
"roomId": "string",
"epochId": "number",
"allocation": {
"participant": "0x... optional",
"targetWeights": ["7000", "3000"],
"horizonSec": 3600,
"nonce": 1739500000
}
}
submit_allocation
Validates the claim hash first, then submits to relayer if --submit is passed. Without --submit, returns validation-only dry-run result.
{
"taskType": "submit_allocation",
"fundId": "string",
"epochId": "number",
"observation": "propose_allocation output observation",
"submit": true
}
Rules
- Supported Tasks Only: Use only
propose_allocation,submit_allocation(validates automatically before submission). - Schema Rule: Claim schema is
AllocationClaimV1only (claimVersion,fundId,epochId,participant,targetWeights,horizonSec,nonce,submittedAt). - Weights Rule:
targetWeightsmust be integer, non-negative, non-empty, and sum > 0. - Index Mapping Rule:
targetWeights[i]MUST map to strategyriskPolicy.allowlistTokens[i]in the same order. - Scope Validation: If subject
fundId/epochIddiffers from task scope, returnFAIL. - Hash Validation: For CLAIM, recompute canonical hash via SDK and compare with
subjectHash; mismatch returnsFAIL. - Submit Endpoint:
submit_allocationsends claim to relayerPOST /api/v1/funds/{fundId}/claims. - No Implicit Submit: Submit only when explicit submit gate is satisfied.
- Trusted Relayer: In production, set
PARTICIPANT_TRUSTED_RELAYER_HOSTSand avoid arbitrary relayer URLs. - Key Hygiene: Use dedicated participant keys only; never use custody/admin keys.
- Env Source Priority: Resolve runtime env from
/home/ubuntu/.openclaw/openclaw.json(env.vars) before local.env*files. - Legacy Tasks Disabled: Do not use
mine_claim,verify_claim_or_intent_validity,submit_mined_claim,attest_claim.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
信号管道:自动化营销情报工具 - Openclaw Skills
技能收益追踪器:监控 Openclaw 技能并实现变现
AI 合规准备就绪度:评估与治理工具 - Openclaw Skills
FOSMVVM ServerRequest 测试生成器:自动化 API 测试 - Openclaw Skills
酒店搜索器:AI 赋能的住宿与位置情报 - Openclaw Skills
Dub 链接 API:程序化链接管理 - Openclaw Skills
IntercomSwap:P2P BTC 与 USDT 跨链兑换 - Openclaw Skills
spotplay:macOS 原生 Spotify 播放控制 - Openclaw Skills
DeepSeek OCR:AI驱动的图像文本识别 - Openclaw Skills
Web Navigator:自动化网页研究与浏览 - Openclaw Skills
AI精选
