Agent Skill · Limit Break

transfer-validator-config

Generate Transfer Validator V5 configuration scripts -- rulesets, lists, whitelisting, account freezing for Apptoken collections

Provider: Limit Break Path in repo: SKILL.md

Skill body

Transfer Validator V5 Configuration Generator

Generate Foundry scripts or transaction sequences to configure Transfer Validator V5 for a token collection.

Project Setup

Before generating code, check the user’s project is configured:

  1. Foundry: foundry.toml must exist. If not: forge init
  2. Creator Token Standards: lib/creator-token-standards/ must exist. If not: forge install limitbreakinc/creator-token-standards
  3. Remappings: remappings.txt needs @limitbreak/creator-token-standards/=lib/creator-token-standards/. Append if missing – do not overwrite existing entries.
  4. Local testing: For local development, use apptoken-dev to bootstrap an Anvil node with all Apptoken protocols at their deterministic addresses – see apptoken-general/references/project-setup.md.

Instructions

  1. Parse requirements from $ARGUMENTS – identify what the collection needs (ruleset, whitelisted operators, receiver constraints, account freezing, etc.)

  2. Resolve ambiguities before generating – if $ARGUMENTS mentions a collection without its address, operators to whitelist without specifying which protocols/addresses, or a ruleset preference isn’t clear, ask in a single message. If clear, proceed.

  3. Determine the configuration steps needed:
    • Ruleset selection (setRulesetOfCollection) – Whitelist (0/4), Vanilla (1), Soulbound (2), Blacklist (3), or custom (255)
    • Global options (GO0-GO3) – disable authorization, no wildcard authorizers, account freezing, default list extension
    • Whitelist options (WLO0-WLO4) – OTC blocking, 7702 delegate OTC, smart wallet OTC, receiver constraints
    • List management – create lists, add/remove accounts or code hashes
    • Account freezing – freeze/unfreeze specific addresses (requires GO2 enabled)
  4. Generate a Foundry script that calls the Transfer Validator at 0x721C008fdff27BF06E7E123956E2Fe03B63342e3

  5. Explain each configuration choice and its security implications

When to Use This vs Other Skills

Common Mistakes

Reference Files

Skill frontmatter

user-invocable: true disable-model-invocation: true argument-hint: [description of transfer validation requirements]