com um clique
lbamm-standard-hook
Configure AMM Standard Hook via Creator Hook Settings Registry
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Configure AMM Standard Hook via Creator Hook Settings Registry
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Design an apptoken -- map high-level requirements to protocols, configuration steps, and implementation skills
Apptoken ecosystem knowledge -- token standards (ERC-721C, ERC-1155C, ERC-20C), apptoken categories, cross-protocol integration patterns. Use this skill whenever the user asks about apptokens, Creator Token Standards, ERC-20C/ERC-721C/ERC-1155C, Limit Break tokens, cross-protocol integration, or how the apptoken ecosystem fits together.
Generate integration code for the LBAMM CLOBTransferHandler -- on-chain limit order book with maker deposits, FIFO order filling, and price-linked lists. Generates Foundry scripts for maker flows (deposit, open/close orders, withdraw) and taker flows (filling orders through AMM swaps). Use this skill whenever the user asks about LBAMM CLOB, on-chain order books, limit orders on LBAMM, maker/taker flows, CLOB deposits, or filling CLOB orders.
LBAMM transfer handler architecture -- how transfer handlers work during swap settlement, the ILimitBreakAMMTransferHandler interface, executor validation hooks, callback patterns, and custom handler development. Use this skill whenever the user asks about LBAMM transfer handlers, swap settlement, ammHandleTransfer, custom settlement logic, ITransferHandlerExecutorValidation, how swaps use transfer data, or writing a custom handler contract.
Generate DEX integration contracts that call LBAMM
Generate integration code for the LBAMM PermitTransferHandler -- gasless swap execution via EIP-712 signed permits with optional cosigner. Generates Foundry scripts, signing code, and transferData encoding for fill-or-kill and partial fill permit swaps.
| name | lbamm-standard-hook |
| description | Configure AMM Standard Hook via Creator Hook Settings Registry |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [description of desired token configuration] |
Generate configuration scripts/contracts for the first-party AMM Standard Hook + Creator Hook Settings Registry.
Before generating code, check the user's project is configured:
foundry.toml must exist. If not: forge initlib/lbamm-core/ must exist. If not: forge install limitbreakinc/lbamm-corelib/lbamm-hooks-and-handlers/ must exist. If not: forge install limitbreakinc/lbamm-hooks-and-handlersremappings.txt needs both @limitbreak/lbamm-core/=lib/lbamm-core/ and @limitbreak/lbamm-hooks-and-handlers/=lib/lbamm-hooks-and-handlers/. Append if missing -- do not overwrite existing entries.lbamm-examples -- see lbamm-protocol/references/local-dev.md. Generated scripts should read addresses from environment variables (vm.envAddress) so they work with the local Anvil deployment.Parse desired configuration from $ARGUMENTS -- identify what the token issuer wants to configure (trading fees, whitelists, price bounds, trading pause, pool disabling, etc.)
Resolve ambiguities before generating -- if $ARGUMENTS mentions a token without its address, references whitelists without specifying which addresses to include, or leaves fee amounts unspecified, ask in a single message. If clear, proceed.
Map requirements to HookTokenSettings fields:
tradingIsPaused -- Pause all tradingblockDirectSwaps -- Block direct (P2P) swapscheckDisabledPools -- Enable pool disable/enable by token issuertokenFeeBuyBPS / tokenFeeSellBPS -- Fees on token buys/sells (in token)pairedFeeBuyBPS / pairedFeeSellBPS -- Fees on buys/sells (in paired token)minFeeAmount / maxFeeAmount -- Fee amount boundspoolTypeWhitelistId -- Restrict which pool types can be usedpairedTokenWhitelistId -- Restrict which tokens can be pairedlpWhitelistId -- Restrict who can provide liquidityGenerate a Foundry script that:
registry.setTokenSettings() with the correct HookTokenSettingssetTokenSettings() with correct packed flagsInclude LBAMM core setTokenSettings call with correct packed flags:
Explain each setting and distinguish:
checkDisabledPools + setPoolDisabled) vs trading pause (tradingIsPaused)references/standard-hook-api.md -- Registry interface, IAMMStandardHook, who can administerreferences/standard-hook-configs.md -- Common configuration exampleslbamm-protocolILimitBreakAMMTokenHook implementation. Use when you need behavior beyond what the standard hook provides.ILimitBreakAMMPoolHook implementation. Use for per-pool behavior like dynamic fees or oracle pricing.