Agent Skill · Limit Break

payment-processor-exchange

Generate NFT marketplace exchange integration code using Payment Processor V3 -- order signing, listing and buying NFTs, accepting offers, calldata encoding, filling, sweeping collections, cancellation, PermitC. Use for any ERC-721 or ERC-1155 buy/sell/trade flow.

Provider: Limit Break Path in repo: SKILL.md

Skill body

Payment Processor Exchange Integration Generator

Project Setup

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

  1. Foundry: foundry.toml must exist. If not: forge init
  2. Payment Processor (optional): forge install limitbreakinc/payment-processor for direct interface imports. Otherwise, scripts use inline interface definitions with the deployed contract addresses.
  3. 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 the exchange integration requirements from $ARGUMENTS.
  2. Resolve ambiguities before generating – if $ARGUMENTS mentions specific collections or tokens without addresses, or the order type (listing vs offer, standard vs PermitC, single vs bulk) isn’t clear from context, ask in a single message. If clear, proceed.
  3. Determine the order types needed:
    • Listings (single, bulk, sweep)
    • Item offers
    • Collection offers
    • Token set offers
    • Bulk orders (merkle tree signing)
    • Partial fills (ERC1155)
  4. Generate integration code covering:
    • EIP-712 order signing with the correct typehash
    • Calldata encoding via the PaymentProcessorEncoder at 0x9A1D00C3a699f491037745393a0592AC6b62421D
    • Proper struct construction for Order, SweepOrder, AdvancedOrder, etc.
  5. Handle advanced features as needed:
    • Cosigner security: Short-lived cosignatures for order-book protection
    • PermitC: Time-bound approvals without setApprovalForAll
    • Bulk orders: Merkle tree signing for 2-1024 orders in a single signature
    • Partial fills: ERC1155 orders with requestedFillAmount and minimumFillAmount
  6. Key detail: All trade functions on PaymentProcessor accept a single bytes calldata data parameter. This calldata is produced by the Encoder contract (called off-chain or on-chain).
  7. The executor (msg.sender on PaymentProcessor) is always the taker of the trade.

Reference Files

Common Mistakes

Skill frontmatter

user-invocable: true disable-model-invocation: true argument-hint: [description of exchange integration requirements]

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.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/payment-processor-exchange"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.