بنقرة واحدة
wrapped-native-integrator
Generate Solidity contracts and scripts that integrate with Wrapped Native (WNATIVE)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate Solidity contracts and scripts that integrate with Wrapped Native (WNATIVE)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف 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 | wrapped-native-integrator |
| description | Generate Solidity contracts and scripts that integrate with Wrapped Native (WNATIVE) |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [description of integration -- e.g., 'router that wraps ETH and forwards WNATIVE', 'gas sponsorship service with permitted withdrawals'] |
Generate Solidity contracts that interact with the Wrapped Native (WNATIVE) contract at 0x6000030000842044000077551D00cfc6b4005900.
Before generating code, check the user's project is configured:
foundry.toml must exist. If not: forge initlib/wrapped-native/ must exist. If not: forge install limitbreakinc/wrapped-nativeremappings.txt needs @limitbreak/wrapped-native/=lib/wrapped-native/. Append if missing -- do not overwrite existing entries.apptoken-dev to bootstrap an Anvil node with all Apptoken protocols at their deterministic addresses -- see apptoken-general/references/project-setup.md.Parse integration requirements from $ARGUMENTS
Resolve ambiguities before generating -- if $ARGUMENTS doesn't make the integration pattern clear (basic wrapping vs permits vs gas sponsorship), or references external addresses (fee recipients, operators) without specifying them, ask in a single message. If clear, proceed.
Determine the integration pattern based on what the user needs:
permitTransferdoPermittedWithdraw with convenience feesGenerate the integration contract with:
IWrappedNative for basic, IWrappedNativeExtended for permits/enhanced features)payable functions when combining deposit + actionreceive() if the contract needs to accept unwrapped native)Handle key integration details:
0x6000030000842044000077551D00cfc6b4005900transferFrom with msg.value, deposits credit the from address, NOT msg.senderpermitTransfer -- deposits credit fromwithdraw/withdrawToAccount must have a receive() or fallback() functionwithdrawSplit arrays must be equal lengthGenerate a Foundry test if the integration involves non-trivial logic (permits, fee calculations, multi-step flows).
references/integration-patterns.md -- Common integration patterns with annotated Solidity exampleswrapped-native-protocoltransferFrom and permitTransfer credit deposits to from, not msg.sender -- operator contracts will not receive the deposited fundsreceive() on contracts that call withdraw or withdrawToAccount to themselves -- the native transfer will revertdeposit() pattern (call + value) when depositTo would be more gas-efficient for crediting another address"Wrapped Native", version "1", and the deterministic contract addressisNonceUsed before submitting a permit transaction -- the nonce may have been revoked or already consumed