360 Secure SkillHub
360 安全技能中心

Gotchi DAO Voting

调用脚本查询 aavegotchi.eth 空间在 Snapshot 上的活跃提案及各自投票权,并以数字或权重 JSON 形式提交由 Bankr 签名 API 生成的 EIP-712 签名投票;支持 --dry-run 仅打印待签名数据而不签名提交。

aaigotchi
aaigotchi
热度 57.42
最近更新 2026-05-11 17:26:41
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 工作流 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gotchi-dao-voting
Metadata
name
gotchi-dao-voting
description
Check active Aavegotchi DAO proposals and vote on Snapshot via Bankr EIP-712 signatures.
homepage
https://github.com/aaigotchi/gotchi-dao-voting
metadata
{"openclaw":{"requires":{"bins":["curl","jq"],"env":["BANKR_API_KEY"]}}}

gotchi-dao-voting

Vote on Snapshot proposals for aavegotchi.eth.

Scripts

  • ./scripts/list-proposals.sh
    • Lists active proposals and your VP per proposal.
  • ./scripts/vote.sh [--dry-run] <proposal-id> <choice>
    • Submits signed vote through Snapshot sequencer.
    • --dry-run prints typed data and exits without signing/submitting.

Choice Formats

  • Single-choice proposal: numeric option, e.g. 2
  • Weighted proposal: JSON object string, e.g. '{"2":2238}'
    • If you pass just 2 for a weighted vote, script auto-converts to {"2":<floor(vp)>}.

Config

config.json keys:

  • wallet
  • space
  • snapshotApiUrl
  • snapshotSequencer

Security

  • Uses Bankr signing API (no local private key usage).
  • Off-chain Snapshot voting (no gas transaction).
  • Input validation for proposal ID, wallet, choice format, and choice range.