Skip to content
Back to skills

Pet Operator

ASecurity

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.

  • 33 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
toolsgosecurity

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill pet-operator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pet Operator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pet Operator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-pet-operator/badge)](https://www.skillsdirectory.com/skills/dvcrn-pet-operator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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."
---

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

Files in this skill

  • README.md1.2 KB
  • REVOKE.md2.3 KB
  • SKILL.md1.6 KB
  • clawhub.json531 B
  • scripts/add-delegated-wallet.sh2 KB
  • scripts/check-approval.sh450 B
  • scripts/generate-delegation-tx.sh712 B
  • scripts/generate-revoke-tx.sh742 B
  • scripts/lib.sh3.4 KB
  • scripts/remove-delegated-wallet.sh1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…