transfer-validator-config
Generate Transfer Validator V5 configuration scripts -- rulesets, lists, whitelisting, account freezing for Apptoken collections
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:
- Foundry:
foundry.tomlmust exist. If not:forge init - Creator Token Standards:
lib/creator-token-standards/must exist. If not:forge install limitbreakinc/creator-token-standards - Remappings:
remappings.txtneeds@limitbreak/creator-token-standards/=lib/creator-token-standards/. Append if missing – do not overwrite existing entries. - Local testing: For local development, use
apptoken-devto bootstrap an Anvil node with all Apptoken protocols at their deterministic addresses – seeapptoken-general/references/project-setup.md.
Instructions
-
Parse requirements from
$ARGUMENTS– identify what the collection needs (ruleset, whitelisted operators, receiver constraints, account freezing, etc.) -
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.
- 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)
- Ruleset selection (
-
Generate a Foundry script that calls the Transfer Validator at
0x721C008fdff27BF06E7E123956E2Fe03B63342e3 - Explain each configuration choice and its security implications
When to Use This vs Other Skills
- This skill: Configure Transfer Validator – rulesets, operator whitelists, receiver constraints, account freezing. This is the foundation layer for all apptokens.
- lbamm-standard-hook: Configure LBAMM-specific trading behavior (fees, pause, LP whitelists). Use after Transfer Validator is set up.
- payment-processor-creator: Configure NFT sale settings (pricing, royalties, trusted channels). Use after Transfer Validator is set up.
Common Mistakes
- Forgetting to whitelist protocol operators (LBAMM, TokenMaster, Payment Processor) – tokens become untradeable
- Setting
customRulesetto non-zero whenrulesetIdis not 255 – will revert - Enabling account freezing (GO2) without first calling
setRulesetOfCollectionwith the GO2 flag – freezing has no effect - Using WLO flags with a non-whitelist ruleset (ID 1, 2, or 3) – WLO flags are ignored
Reference Files
references/collection-config.md– Collection configuration API, workflow examples, expansion settingsreferences/config-patterns.md– Common configuration patterns with complete Foundry scripts- Protocol knowledge:
transfer-validator-protocol
Related Skills
- apptoken-general – ERC-721C/ERC-1155C/ERC-20C token standards and Transfer Validator integration patterns
Skill frontmatter
Work with this as data
Every skill here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for agent skills
4 MCP tools reach this
find_skillsBrowse and filter every skill in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/skills/transfer-validator-config"
curl "https://apis.io/api/v1/skills?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.