360 Secure SkillHub
360 安全技能中心

Pet Operator

这是Base链上的Aavegotchi撸宠权限管理工具,核心功能包括生成授权/撤销AAI为撸宠operator的交易数据、检查权限状态,以及在pet-me-master配置中维护委托钱包的记账。典型场景:用户委托AAI代为撸宠或终止委托时使用。输入为钱包地址,输出为对应交易数据、权限检查结果或配置更新记录。权限仅用于撸宠,不涉及资产转移,用户保留所有权,可随时链上撤销。

aaigotchi
aaigotchi
热度 57.07
最近更新 2026-05-11 17:28:04
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / 自动化脚本 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add pet-operator
Metadata
name
pet-operator
description
Delegate Aavegotchi petting rights to AAI's wallet on Base. Generate approve/revoke tx data, check approval, and maintain delegated wallet bookkeeping in pet-me-master config.
metadata
{"openclaw":{"requires":{"bins":["cast","jq"]}}}

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 <wallet>
    • Checks isPetOperatorForAll(owner, operator).
  • ./scripts/generate-delegation-tx.sh <wallet>
    • Generates call data for setPetOperatorForAll(AAI_OPERATOR, true).
  • ./scripts/generate-revoke-tx.sh <wallet>
    • Generates call data for setPetOperatorForAll(AAI_OPERATOR, false).
  • ./scripts/add-delegated-wallet.sh <wallet> [name]
    • Verifies approval, fetches owned gotchi IDs, upserts into pet-me-master config.
  • ./scripts/remove-delegated-wallet.sh <wallet>
    • 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.