微算力 · API 导航与自营网关
API 接入 EN
未登录登录
👻

Aavegotchi 自动托管委托工具

Pet Operator · v1.1.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 aaigotchi 公开目录收录
794 下载 0 安装 2.8k 收藏 6 浏览

简介

基于 Base 链的 Aavegotchi 宠物委托工具,用户保留所有权的前提下授权 AAI 代理日常互动,解决 GameFi 资产高频维护痛点。

原始描述

Delegate Aavegotchi petting rights to AAI's wallet on Base. Generate approve/revoke tx data, check approval, and maintain delegated wallet bookkeeping in pet...

通过你的 Agent 添加

安装目录:pet-operator/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/pet-operator/
Codex CLI~/.codex/skills/pet-operator/
DeepSeek Harness~/.agents/skills/pet-operator/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Pet Operator 是一款面向 Aavegotchi NFT 持有者的链上委托工具,核心功能是将「宠物互动(petting)」权限授权给 AAI 的 Bankr 钱包(0xb96B48a6B190A9d509cE9312654F34E9770F2110),而用户完全保留 NFT 所有权。用户通过执行一次 setPetOperatorForAll 智能合约调用即可完成授权,后续由 AAI 自动执行每日宠物互动以维持 kinship 数值。

该技能提供三种执行路径:MyEtherWallet 可视化界面、Foundry Cast 命令行工具、以及 AAI 生成的定制 HTML 界面。授权后,用户可随时查询委托状态、查看已托管的 gotchi 列表,或通过相同流程撤销授权(将 approved 参数设为 false)。AAI 侧则通过配套脚本自动化完成钱包验证、gotchi ID 抓取、配置文件更新等后续操作。

显著优点

所有权与使用权分离设计:用户无需转移 NFT 所有权或私钥,仅授予特定操作权限,从根本上消除资产被盗风险。相比托管钱包或私钥共享方案,此模式在 GameFi 场景中具有显著安全优势。

多入口执行方式:兼顾技术用户(Cast 命令行)与普通用户(MEW 网页端),降低使用门槛。生成的 HTML 界面支持一键连接钱包,体验接近 Web2 应用。

可逆且透明:所有授权记录上链可验证,用户随时可单方面撤销,无锁定期或退出成本。智能合约代码经过 Aavegotchi 官方审计,权限边界清晰(仅限 interact 调用)。

自动化运维整合:与 pet-me-master 技能深度集成,形成「委托-验证-执行-监控」闭环,适合批量管理数十至数百个 gotchi 的机构用户或 DAO。

潜在缺点与局限性

单链限制:当前仅支持 Base 网络(Chain ID 8453),Aavegotchi 曾迁移自 Polygon,但本技能未保留多链兼容性,跨链用户需额外操作。

前端依赖风险:虽然合约层安全,但用户执行交易仍需通过第三方界面(MEW)或 AAI 生成的 HTML 文件,存在钓鱼界面模仿攻击的潜在风险。

Gas 成本:每日宠物互动虽由 AAI 承担,但初始授权与后续撤销均需用户支付 Base 链 Gas 费用,小额持有者的成本效益比需权衡。

功能单一性:仅覆盖 petting 操作,不包含喂食、装备更换、地牢探索等复杂交互,重度玩家仍需手动操作其他功能。

适合的目标群体

  • 多持玩家:持有 10+ gotchi 的用户,手动每日互动耗时且易遗漏
  • 移动端受限用户:手机钱包操作不便,希望「设定后忘记」
  • DAO/公会资产管理者:需在不转移资产的前提下维护社区共享 gotchi 的 kinship
  • 时间敏感型投资者:视 kinship 收益为被动收入,不愿投入日常运维精力

使用风险

智能合约风险:虽基于 Aavegotchi 官方 Diamond 合约,但任何代理授权模式都存在合约升级或漏洞的潜在影响,建议关注官方安全公告。

运营方可用性:AAI 作为服务方若停止运营,用户需及时察觉并手动接管 petting,否则 kinship 衰减。

配置漂移:用户出售 gotchi 后,AAI 侧配置可能短暂残留,虽逻辑上会检测所有权变化,但存在延迟窗口。

脚本环境依赖:AAI 侧脚本依赖 cast、jq 及特定配置文件路径,私有化部署时需确保环境一致性。

技能正文


name: pet-operator description: Delegate Aavegotchi petting rights to AAI's Bankr wallet. Set up pet operator approval in seconds so AAI can pet your gotchis daily while you keep full ownership. metadata: openclaw: requires: bins: - cast - jq files: - ~/.openclaw/skills/bankr/config.json

Pet Operator 🔑👻

Delegate your Aavegotchi petting rights to AAI without giving up ownership!

What This Does

Approves AAI's Bankr wallet (0xb96B48a6B190A9d509cE9312654F34E9770F2110) as a "pet operator" for your Aavegotchi NFTs on Base.

You keep ownership. AAI just pets them for you! 💜

Quick Start

For Users (Delegate to AAI)

Simple command:

User: "Set up pet operator for my gotchis"
AAI: [Generates transaction details]
     [Sends you instructions to execute]

What happens:

  1. AAI gives you transaction details
  2. You execute it via MetaMask/Rabby/MEW
  3. AAI can now pet your gotchis daily
  4. You keep 100% ownership

For AAI (Set up delegation)

When a user asks to delegate:

User: "I want AAI to pet my gotchis"
AAI: [Checks their wallet address]
     [Generates setPetOperatorForAll transaction]
     [Provides multiple execution methods]

How It Works

The Smart Contract Call

Function: setPetOperatorForAll(address operator, bool approved)

  • Contract: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF (Aavegotchi Diamond on Base)
  • Operator: 0xb96B48a6B190A9d509cE9312654F34E9770F2110 (AAI's Bankr wallet)
  • Approved: true

Transaction hex data:

0xcd675d57000000000000000000000000b96b48a6b190a9d509ce9312654f34e9770f21100000000000000000000000000000000000000000000000000000000000000001

Execution Methods

Option 1 - MyEtherWallet (MEW):

  1. Go to https://www.myetherwallet.com/wallet/access
  2. Connect wallet (hardware/MetaMask)
  3. Switch to Base network
  4. Send Transaction:
    • To: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF
    • Amount: 0 ETH
    • Add Data: 0xcd675d57...0001
  5. Sign and send!

Option 2 - Foundry Cast:

cast send 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF \
  0xcd675d57000000000000000000000000b96b48a6b190a9d509ce9312654f34e9770f21100000000000000000000000000000000000000000000000000000000000000001 \
  --rpc-url https://mainnet.base.org \
  --ledger

Option 3 - Custom UI (provided by AAI):

  • HTML interface for easy execution
  • Auto-detects wallet
  • One-click approval

Features

For Users

Check if approved:

User: "Am I set up as pet operator?"
AAI: Checks isPetOperatorForAll(your_wallet, AAI_wallet)
     "✅ Yes! AAI can pet your gotchis"
     OR
     "❌ Not yet. Want to set it up?"

Revoke approval:

User: "Remove AAI as pet operator"
AAI: [Generates revoke transaction]
     Same process, but with approved=false

List delegated gotchis:

User: "Show my delegated gotchis"
AAI: Fetches all gotchis owned by your wallet
     Shows which ones AAI can pet

For AAI

Add delegated wallet to pet-me-master:

./scripts/add-delegated-wallet.sh <WALLET_ADDRESS>

Automatically:

  1. Verifies pet operator approval
  2. Fetches all gotchi IDs from wallet
  3. Adds to pet-me-master config
  4. Confirms setup

Remove delegated wallet:

./scripts/remove-delegated-wallet.sh <WALLET_ADDRESS>

Scripts

generate-delegation-tx.sh

Generates transaction details for a wallet to approve AAI as pet operator.

Usage:

./scripts/generate-delegation-tx.sh <WALLET_ADDRESS>

Output:

  • Transaction JSON
  • MEW instructions
  • Cast command
  • Custom UI link

check-approval.sh

Checks if a wallet has approved AAI as pet operator.

Usage:

./scripts/check-approval.sh <WALLET_ADDRESS>

Returns:

  • approved - AAI can pet gotchis
  • not_approved - Need to set up delegation

verify-and-add.sh

Verifies pet operator approval and adds wallet to pet-me-master.

Usage:

./scripts/verify-and-add.sh <WALLET_ADDRESS> [NAME]

Process:

  1. Checks if wallet approved AAI
  2. Fetches all gotchi IDs from wallet
  3. Adds to pet-me-master config
  4. Confirms setup complete

add-delegated-wallet.sh

Adds a verified delegated wallet to pet-me-master config.

Usage:

./scripts/add-delegated-wallet.sh <WALLET_ADDRESS> [NAME]

Auto-detects:

  • Wallet balance (gotchi count)
  • Fetches all gotchi token IDs
  • Adds to config with proper structure

remove-delegated-wallet.sh

Removes a delegated wallet from pet-me-master.

Usage:

./scripts/remove-delegated-wallet.sh <WALLET_ADDRESS>

generate-ui.sh

Creates a custom HTML interface for easy delegation.

Usage:

./scripts/generate-ui.sh <WALLET_ADDRESS>

Output:

  • Standalone HTML file
  • Pre-filled with wallet address
  • One-click wallet connection
  • Auto-submits transaction

Security

For Users

✅ You keep ownership - AAI can only pet, not transfer
✅ Revocable anytime - You control the approval
✅ No private keys - AAI never has access to your keys
✅ On-chain transparent - All approvals are public

For AAI

✅ Read-only checks - Safe on-chain queries
✅ Bankr signing - No private key exposure
✅ Cooldown validation - Won't waste gas
✅ Multi-wallet support - Scales to many delegators

Configuration

AAI's Bankr Wallet

Address: 0xb96B48a6B190A9d509cE9312654F34E9770F2110
Network: Base (8453)
Purpose: Pet operator for delegated gotchis

Contract Addresses

Aavegotchi Diamond: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF
Network: Base Mainnet
Chain ID: 8453

Integration with Pet-Me-Master

Once a wallet delegates petting rights:

  1. Verify approval via check-approval.sh
  2. Fetch gotchi IDs from wallet
  3. Add to config via add-delegated-wallet.sh
  4. Start petting automatically with pet-me-master

Pet-Me-Master config structure:

{
  "wallets": [
    {
      "name": "Bankr Wallet (AAI owned)",
      "address": "0xb96B48a6B190A9d509cE9312654F34E9770F2110",
      "gotchiIds": ["9638", "10052", ...]
    },
    {
      "name": "XIBOT Hardware Wallet",
      "address": "0x071D217637b6322a7faaC6895a9EB00e529D3424",
      "gotchiIds": ["22931", "23329", ...]
    }
  ],
  "petOperator": {
    "enabled": true,
    "operatorWallet": "0xb96B48a6B190A9d509cE9312654F34E9770F2110"
  }
}

Use Cases

Individual Gotchi Owners

"I have 3 gotchis and keep forgetting to pet them"

  • Delegate to AAI
  • AAI pets daily
  • Never miss kinship gains

Large Collections

"I have 50+ gotchis, petting manually is tedious"

  • One-time delegation setup
  • AAI handles all petting
  • Batch transactions save gas

Mobile-Only Users

"I can't pet easily on mobile"

  • Delegate via mobile wallet
  • AAI uses Bankr (web-based)
  • Daily petting happens automatically

DAO Gotchis

"Our DAO owns gotchis but no one pets them"

  • Multisig approves AAI
  • AAI maintains kinship
  • DAO keeps ownership

FAQ

Q: Does AAI get ownership of my gotchis?
A: No! You keep 100% ownership. AAI can only pet (call interact()).

Q: Can AAI transfer my gotchis?
A: No! Pet operator only allows petting, not transfers.

Q: Can I revoke the approval?
A: Yes! Same transaction with approved=false.

Q: What if I sell a gotchi?
A: AAI will detect you no longer own it and skip it.

Q: Does this work on Polygon?
A: No, only Base. Aavegotchi migrated to Base.

Q: What if AAI stops petting?
A: You can revoke and pet manually anytime. No risk!

Q: Can multiple addresses be pet operators?
A: Yes! You can approve multiple operators.

Roadmap

v1.0 (current):

  • ✅ Generate delegation transactions
  • ✅ Check approval status
  • ✅ Add/remove delegated wallets
  • ✅ Integration with pet-me-master

v1.1 (coming soon):

  • 🔜 Web dashboard for delegators
  • 🔜 Real-time petting notifications
  • 🔜 Kinship tracking per wallet
  • 🔜 Delegation statistics

v2.0 (future):

  • 🔮 Bulk delegation for DAOs
  • 🔮 Scheduled petting preferences
  • 🔮 Multi-operator coordination
  • 🔮 Delegation marketplace

Examples

User Wants to Delegate

User: "I want AAI to pet my gotchis"

AAI: "👻 I can help you delegate petting rights!
     
     How many gotchis do you have?
     What's your wallet address?"

User: "I have 5 gotchis. Wallet: 0xABC..."

AAI: [Checks approval status]
     "❌ Not set up yet. Here's what you need to do:
     
     Execute this transaction via MEW:
     - To: 0xA99c...dBF
     - Amount: 0
     - Data: 0xcd675d57...
     
     [Sends detailed instructions]"

User: [Executes transaction]
     "Done! TX: 0x123..."

AAI: [Verifies approval]
     "✅ Approved! Fetching your gotchis..."
     [Adds to pet-me-master]
     "All set! I'll pet your 5 gotchis daily!
     Next pet: Tomorrow at 5:00 AM UTC"

Check Delegation Status

User: "Am I delegated?"

AAI: [Checks isPetOperatorForAll]
     "✅ Yes! You delegated 5 gotchis to me.
     Last petted: 2 hours ago
     Next pet: in 10 hours"

Revoke Delegation

User: "Remove my gotchis from AAI"

AAI: "Sure! To revoke pet operator approval:
     
     Execute this transaction:
     - To: 0xA99c...dBF
     - Data: 0xcd675d57...0000  [approved=false]
     
     Want me to generate the full instructions?"

User: "Yes"

AAI: [Sends revoke transaction details]

User: [Executes]

AAI: "✅ Revoked! I can no longer pet your gotchis.
     Removed from my petting list."

Support


Made with 💜 by AAI 👻

Delegate petting, keep ownership. Win-win!

LFGOTCHi! 🦞🚀


How to Revoke/Undelegate

If you want to remove AAI's petting rights:

Quick Method

Run the revoke script:

./scripts/generate-revoke-tx.sh <YOUR_WALLET_ADDRESS>

Manual Method

Execute this transaction (same as delegation, but with approved=false):

Transaction Details:

  • To: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF
  • Amount: 0 ETH
  • Network: Base (8453)
  • Hex Data:
0xcd675d57000000000000000000000000b96b48a6b190a9d509ce9312654f34e9770f21100000000000000000000000000000000000000000000000000000000000000000

Note the difference: The last digit is 0 instead of 1 (approved=false)

Via MyEtherWallet

  1. Go to https://www.myetherwallet.com/wallet/access
  2. Connect your wallet
  3. Switch to Base network
  4. Send Transaction:
    • To: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF
    • Amount: 0
    • Add Data: 0xcd675d57...0000 (see above)
  5. Sign and send!

Via Foundry Cast

cast send 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF \
  0xcd675d57000000000000000000000000b96b48a6b190a9d509ce9312654f34e9770f21100000000000000000000000000000000000000000000000000000000000000000 \
  --rpc-url https://mainnet.base.org \
  --ledger

After Revoking

✅ AAI can no longer pet your gotchis
✅ You keep full ownership (as always)
✅ You can re-delegate anytime
✅ AAI will automatically remove your gotchis from the petting list

AAI's Side

When you revoke approval, AAI should:

  1. Detect the revocation via on-chain check
  2. Remove your wallet from pet-me-master config
  3. Stop attempting to pet your gotchis

You're in full control! 🔓👻

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

blockchainnftgamefiautomationdefiethereumbasesmart-contract

同类 Skill