简介
XPR Network 链上治理工具,支持社区提案创建、多策略投票及治理参数查询,实现去中心化 DAO 参与。
原始描述
Interact with XPR Network on-chain governance: view communities, proposals, vote with weighted tokens, and create proposals paying community fees.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
XPR Network Governance 综合评估
核心用法
本 Skill 提供与 XPR Network 链上治理系统的完整交互能力,涵盖只读查询与写入操作两大模块。
只读功能:用户可查询治理社区列表(gov_list_communities)、浏览提案(gov_list_proposals)、获取提案详情(gov_get_proposal)、查看投票记录(gov_get_votes)及全局配置(gov_get_config)。这些操作无需签名,安全便捷。
写入功能:支持链上投票(gov_vote)和创建提案(gov_post_proposal)。投票需指定社区 ID、提案 ID 及候选人权重;创建提案需支付对应代币费用(如 20,000 XPR 或 100 XMT),并完成链上登记。
显著优点
- 多社区覆盖:支持 XPR Network、Metal DAO、LOAN Protocol 等 6 个活跃治理社区,策略各异
- 策略多样化:涵盖 XPR 余额、XMT 余额、LOAN 质押、KYC 验证等 4 种投票权重计算方式
- 投票系统灵活:支持单选、多选、排序、赞成四种投票机制
- 链上透明:所有提案、投票记录可查,符合 DAO 治理透明原则
潜在缺点与局限性
- 内容存储分离:提案标题和描述存于 Gov API 而非链上,存在中心化依赖
- 费用门槛:创建提案需支付不菲代币(最高 50,000 LOAN),限制普通用户发起治理
- KYC 依赖:D.O.G.E. 社区依赖 KYC 验证,可能引发隐私争议
- 需要外部内容 ID:创建提案前需先通过 Gov API 生成内容 ID,流程较繁琐
适合人群
- XPR Network 生态代币持有者(XPR/XMT/LOAN)
- DAO 治理参与者与提案发起人
- 需要审计治理数据的分析师
- 去中心化金融协议治理研究者
常规风险
- 智能合约风险:
gov合约漏洞可能导致资金损失或投票篡改 - 治理攻击:低投票率社区易受大户操控(尤其 quorum 仅 0.01% 的 D.O.G.E.)
- 价格波动风险:提案费用以代币计价,价格剧烈波动时成本不可控
- 前端依赖风险:Gov API 或治理前端故障可能影响提案内容显示
技能正文
name: governance description: XPR Network governance — communities, proposals, voting on the gov contract
XPR Network Governance
You have tools to interact with XPR Network's on-chain governance system via the gov contract. Communities create proposals, and token holders vote on them.
Key Concepts
- Communities — governance groups (XPR Network, Metal DAO, LOAN Protocol, XPR Grants, Metal X, D.O.G.E.). Each has its own voting strategy, proposal fee, and quorum.
- Proposals — on-chain records with candidates (voting options), start/end times, and an approval status. Proposal content (title, description) is stored off-chain in the Gov API.
- Voting Strategies — determine who can vote and how vote weight is calculated:
xpr-unstaked-and-staked-balances— weight = XPR balance (staked + unstaked)xmt-balances— weight = XMT balanceloan-and-sloan-balances— weight = LOAN + sLOAN balancekyc-verification— 1 vote per KYC-verified account
- Voting Systems —
"0"= single choice,"1"= multiple choice,"2"= ranked choice,"5"= approval voting - Quorum — minimum participation threshold (basis points, e.g. 300 = 3%)
- Proposal Fee — token payment required to create a proposal (varies by community, e.g. 20,000 XPR, 100 XMT, 50,000 LOAN)
Active Communities
| ID | Name | Strategy | Fee | Quorum |
|---|---|---|---|---|
| 3 | XPR Network | XPR balances | 20,000 XPR | 3% |
| 4 | Metal DAO | XMT balances | 100 XMT | 3% |
| 5 | LOAN Protocol | LOAN+sLOAN | 50,000 LOAN | 25% |
| 6 | XPR Grants | XPR balances | 20,000 XPR | 3% |
| 7 | Metal X | XPR balances | 20,000 XPR | 3% |
| 8 | D.O.G.E. | KYC verification | 1 XDOGE | 0.01% |
Read-Only Tools (safe, no signing)
gov_list_communities— list all governance communities with strategies, fees, quorum, and adminsgov_list_proposals— list proposals with optional community and status filtersgov_get_proposal— get full proposal details including title and description from Gov API, plus vote totals per candidategov_get_votes— get individual votes cast on a proposal (scans from most recent)gov_get_config— get governance global config (paused state, total counts)
Write Tools (require confirmed: true)
gov_vote— vote on an active proposal. Specify the candidate(s) and weight.gov_post_proposal— create a new governance proposal. Requires paying the community's proposal fee (token transfer + postprop action in one transaction).
Voting
To vote, you need the communityId, proposalId, and winners (array of candidate IDs with weights). For simple Yes/No proposals, use [{id: 0, weight: 100}] for Yes or [{id: 1, weight: 100}] for No.
Creating Proposals
Creating a proposal requires:
- A
contentID — created via the Gov API (https://gov.api.xprnetwork.org) - Paying the community's proposal fee (token transfer to
gov) - Calling
postpropwith all proposal parameters
The gov_post_proposal tool handles steps 2 and 3 (fee + postprop). You must provide the content ID from step 1.
Proposal URLs
Proposals can be viewed at: https://gov.xprnetwork.org/communities/{communityId}/proposals/{proposalId}
Safety Rules
- Proposals have start and end times — voting is only allowed during the active period
- Each community has different fee tokens — check the community's
proposalFeebefore creating proposals - Quorum is in basis points (300 = 3%) — proposals need sufficient participation to pass
- Admins can approve/decline proposals — the
approvefield shows the final status
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。