TopRank Skills

Home / Claw Skills / API 集成 / gotchi-dao-voting
Official OpenClaw rules 36%

gotchi-dao-voting

Check active Aavegotchi DAO proposals and vote on Snapshot via Bankr EIP-712 signatures.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 gotchi-dao-voting 技能。 若已安装,则直接安装 gotchi-dao-voting 技能。

Overview

Skill Key
aaigotchi/gotchi-dao-voting
Author
aaigotchi
Source Repo
openclaw/skills
Version
-
Source Path
skills/aaigotchi/gotchi-dao-voting
Latest Commit SHA
bcd828e8d88449e7d1dcb051f58ca551e11e36be

Extracted Content

SKILL.md excerpt

# 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.

README excerpt

# Gotchi DAO Voting

Snapshot voting automation for Aavegotchi DAO (`aavegotchi.eth`) using Bankr signing.

## Scripts

- `./scripts/list-proposals.sh`
  - Lists active proposals + your current VP for each
- `./scripts/vote.sh [--dry-run] <proposal-id> <choice>`
  - Single choice: `2`
  - Weighted choice: `'{"2":2238}'`

## Quick Start

```bash
# 1) List active proposals
./scripts/list-proposals.sh

# 2) Preview typed vote payload (safe)
./scripts/vote.sh --dry-run <proposal-id> 2

# 3) Submit vote
./scripts/vote.sh <proposal-id> 2
```

## Requirements

- `curl`, `jq`
- `BANKR_API_KEY` (env recommended)

Bankr API key resolution order:
1. `BANKR_API_KEY`
2. user systemd environment (`systemctl --user show-environment`)
3. `~/.openclaw/skills/bankr/config.json`
4. `~/.openclaw/workspace/skills/bankr/config.json`

## Config

`config.json`:

```json
{
  "wallet": "0xYourBankrWallet",
  "space": "aavegotchi.eth",
  "snapshotApiUrl": "https://hub.snapshot.org/graphql",
  "snapshotSequencer": "https://seq.snapshot.org/"
}
```

## Notes

- Snapshot voting is off-chain (no gas fee).
- Voting still requires correct VP at proposal snapshot block.
- `--dry-run` builds typed data without signing/submitting.

Related Claw Skills