← 返回
AI智能 中文

Pet Operator

Delegate Aavegotchi petting rights to AAI's wallet on Base. Generate approve/revoke tx data, check approval, and maintain delegated wallet bookkeeping in pet...
将Aavegotchi抚摸权委托至Base链上的AAI钱包。生成授权/撤销交易数据,检查授权状态,并在宠物中维护委托钱包账本。
aaigotchi
AI智能 clawhub v1.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 595
下载
💾 12
安装
1
版本
#aavegotchi#base#delegation#latest#nft

概述

pet-operator

Set or revoke AAI as pet operator for user wallets, and keep delegation bookkeeping aligned.

Constants

  • AAI operator wallet: 0xb96B48a6B190A9d509cE9312654F34E9770F2110
  • Aavegotchi Diamond: 0xA99c4B08201F2913Db8D28e71d020c4298F29dBF
  • Chain: Base mainnet (8453)
  • RPC default: https://mainnet.base.org

Overridable env:

  • AAVEGOTCHI_DIAMOND
  • AAI_OPERATOR
  • BASE_RPC_URL
  • PET_ME_CONFIG_FILE

Scripts

  • ./scripts/check-approval.sh
  • Checks isPetOperatorForAll(owner, operator).
  • ./scripts/generate-delegation-tx.sh
  • Generates call data for setPetOperatorForAll(AAI_OPERATOR, true).
  • ./scripts/generate-revoke-tx.sh
  • Generates call data for setPetOperatorForAll(AAI_OPERATOR, false).
  • ./scripts/add-delegated-wallet.sh [name]
  • Verifies approval, fetches owned gotchi IDs, upserts into pet-me-master config.
  • ./scripts/remove-delegated-wallet.sh
  • Removes wallet bookkeeping entries from config.

Config Bookkeeping

add-delegated-wallet.sh writes to:

  • .delegatedWallets (preferred)
  • .wallets (legacy compatibility, only if present)

This does not grant on-chain permissions by itself; on-chain approval must already exist.

Security

  • Operator permission only enables petting, not transfer.
  • User keeps full ownership.
  • Revocation is one on-chain tx away.

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-03-30 02:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Pet Me Master - Autonomous Aavegotchi Petting

aaigotchi
通过 Bankr 在 Base 链上批量喂养 Aavegotchis,支持冷却检测、自动提醒和自然语言路由。
★ 0 📥 1,223
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,815
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,118