{
  "schema_version": "1.0",
  "name": "Prismfolio",
  "symbol": "PRFOL",
  "publication_state": "live",
  "network": {
    "name": "BNB Smart Chain",
    "chain_id": 56,
    "currency": "BNB"
  },
  "canonical_contracts": {
    "collection": "0x59F5578cF663a2228aed77c254019e3c71816E72",
    "claims": "0x59F5578cF663a2228aed77c254019e3c71816E72",
    "reward": "0xB53B7dd6A4ADA69B3Eb2e86845535d0a0946CE84"
  },
  "opened_at": "2026-11-21 11:59:47 (UTC+8)",
  "source_links": {
    "collection": "https://bscscan.com/address/0x59F5578cF663a2228aed77c254019e3c71816E72#code",
    "claims": "https://bscscan.com/address/0x59F5578cF663a2228aed77c254019e3c71816E72#code",
    "reward": "https://bscscan.com/address/0xB53B7dd6A4ADA69B3Eb2e86845535d0a0946CE84#code"
  },
  "permissions": {
    "owner": "owner() == address(0)",
    "admin": false,
    "upgrade": false,
    "pause": false,
    "withdrawal": false,
    "token_approvals_required": false
  },
  "verification": {
    "recipient": "SINK()",
    "registry": "ID_ROOT()",
    "identity": "idKeyFor(address)",
    "registry_address": "0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F",
    "reward_address": "DUST()",
    "reward_minter": "reward.MINTER() == collection",
    "claim_address": "collection",
    "bnb_flow": "Mint costs forwarded to immutable recipient; unused payment refunded atomically. Normal calls retain no BNB."
  },
  "read_first": {
    "opens": "startsAt()",
    "closes": "endsAt()",
    "utc_day": "utcDay()",
    "reset": "dayTurnsAt()",
    "entry_ready": "entryReady(address)",
    "paid_left": "premiumLeft(address)",
    "fee": "entryFee()",
    "paid_price": "premiumPrice()",
    "paid_quote": "settleQuote(address,uint256)",
    "entry_quote": "quoteEntryValue(address,uint256)",
    "batch_cap": "MAX_BUY_BATCH()",
    "wallet_cap": "PREMIUM_PER_WALLET()",
    "entry_cap": "MAX_ENTRY_CARDS()",
    "daily_cap": "ENTRY_PER_DAY()",
    "paid_cap": "MAX_PREMIUM_CARDS()"
  },
  "fee_entry": {
    "target": "0x59F5578cF663a2228aed77c254019e3c71816E72",
    "fee_getter": "entryFee()",
    "zero_value": "reverts",
    "source_launch_reference_bnb": "0.00005",
    "reference_is_not_live_quote": true,
    "entries": [
      {
        "signature": "mintFree(uint256)",
        "selector": "0xa4146733"
      },
      {
        "signature": "mintFree()",
        "selector": "0x8ab53447"
      },
      {
        "signature": "mint()",
        "selector": "0x1249c58b"
      },
      {
        "signature": "freeMint()",
        "selector": "0x5b70ea9f"
      },
      {
        "signature": "freeMint(uint256)",
        "selector": "0x7c928fe9"
      },
      {
        "signature": "claim()",
        "selector": "0x4e71d92d"
      },
      {
        "signature": "claim(uint256)",
        "selector": "0x379607f5"
      },
      {
        "signature": "claimFree()",
        "selector": "0xf366afc9"
      },
      {
        "signature": "publicMint()",
        "selector": "0x26092b83"
      },
      {
        "signature": "agentMint()",
        "selector": "0x1be3587a"
      }
    ],
    "ignored_arguments": "Numeric arguments are ignored; caller must own an Agent ID.",
    "availability": "One ordinary NFT per Agent ID per UTC day, during sale and while daily/total allocation remains.",
    "settlement": "If ordinary allocation is available, deduct fee and mint one ordinary NFT; remainder buys paid NFTs by amount. If ordinary allocation is unavailable, the whole amount buys paid NFTs if sufficient. Refund change. Revert if no allocation."
  },
  "paid_entry": {
    "target": "0x59F5578cF663a2228aed77c254019e3c71816E72",
    "price_getter": "premiumPrice()",
    "quantity_price_getter": "cardPriceFor(uint256)",
    "source_launch_reference_bnb": "0.0005",
    "entries": [
      {
        "signature": "mint(uint256)",
        "selector": "0xa0712d68"
      },
      {
        "signature": "mint(uint256,address)",
        "selector": "0x94bf804d"
      },
      {
        "signature": "receive()",
        "calldata": "0x"
      }
    ],
    "settlement": "Quantity and referral arguments do not limit settlement. min(floor(value / price), batch cap, wallet allowance, stock). Change refunded atomically.",
    "ordinary_fallback": "If value >= fee and either value < price or paid allowance is zero, issue an available ordinary NFT instead. Quote quantity 1 then means ordinary, not paid. Use entry quote to classify; always simulate.",
    "availability": "Paid sales remain available when ordinary allocation is used/exhausted, subject to their own limits and sale window."
  },
  "examples": {
    "definitions": "F = fee getter; P = paid price getter. Values in wei. Assume eligible caller, open window, enough capacity.",
    "cases": [
      {
        "call": "mint(1)",
        "value": "6 * P",
        "paid_nfts": 6,
        "refund": "0"
      },
      {
        "call": "mint(5)",
        "value": "3 * P",
        "paid_nfts": 3,
        "refund": "0"
      },
      {
        "call": "mint(2)",
        "value": "2 * P - 1",
        "paid_nfts": 1,
        "refund": "P - 1"
      },
      {
        "call": "mint(1)",
        "value": "P + 1",
        "paid_nfts": 1,
        "refund": "1 wei"
      },
      {
        "call": "mintFree(0)",
        "value": "F + 2 * P",
        "ordinary_nfts": 1,
        "paid_nfts": 2,
        "when": "ordinary available"
      },
      {
        "call": "mintFree(0)",
        "value": "F + 2 * P",
        "ordinary_nfts": 0,
        "paid_nfts": 2,
        "refund": "F",
        "when": "ordinary unavailable and F < P"
      }
    ]
  },
  "rewards": {
    "token": "Dust",
    "currency": "own ERC-20 token, not BNB",
    "bnb_valuation": null,
    "pool_created": false,
    "target": "0x59F5578cF663a2228aed77c254019e3c71816E72",
    "value_wei": "0",
    "entries": [
      {
        "signature": "claim(uint256[])",
        "selector": "0x6ba4c138"
      },
      {
        "signature": "claimReward(uint256[])",
        "selector": "0xc94c7ff4"
      }
    ],
    "pending": "pending(uint256)",
    "batch_cap": "MAX_CLAIM_BATCH()",
    "rate": "DUST_PER_DAY() * (kindOf(id) == KIND_PREMIUM() ? PREMIUM_WEIGHT() : 1)",
    "duration": "DUST_DAYS()",
    "schedule": "Credit at UTC midnight after mint day; emission days > HALVING_DAY() pay half. dailyRate is initial rate; pending is accrued amount.",
    "headroom": "room()",
    "hard_cap": "reward.MAX_SUPPLY()",
    "ownership": "Current holder only; unclaimed rights follow transfers; duplicate IDs pay once. Actual payout clipped to token headroom.",
    "warning": "claim() without arguments on collection is paid minting, not a reward claim."
  },
  "gas_limit": {
    "fee_or_fallback": "300000 + 50000 * actualPaidCount",
    "paid": "150000 + 50000 * actualPaidCount",
    "reward": "100000 + 12000 * uniqueIds.length",
    "receive": "max(400000, applicable formula)",
    "estimate_margin": "max(formula, ceil(eth_estimateGas * 1.20))"
  },
  "execution": [
    "Reject any address other than the listed ones",
    "Verify BSC 56 and deployed code/source",
    "Verify canonical addresses, registry and issuer",
    "Read getters at a fresh block",
    "Quote exact value and allocation",
    "eth_call from real caller and estimate gas",
    "Show target, calldata, value, allocation and refund",
    "Re-quote; require new preview for changed allocation",
    "Wallet confirmation",
    "Submit once and inspect receipt"
  ],
  "links": {
    "overview": "llms.txt",
    "reference": "skill.md",
    "website": "index.html"
  },
  "contract_names": {
    "collection": "PrismfolioCards",
    "reward": "PrismfolioDust"
  },
  "token_metadata": {
    "collection": {
      "name": "Prismfolio Cards",
      "symbol": "PRFOL"
    },
    "reward": {
      "name": "Prismfolio Dust",
      "symbol": "PRFOLD"
    }
  },
  "abi": {
    "PrismfolioCards": "abi/PrismfolioCards.json",
    "PrismfolioDust": "abi/PrismfolioDust.json"
  },
  "settlement_zh": "照付款金额成交。付款能买几张就给几张（受每日额度、每钱包上限、单笔上限与剩余量限制），不足一张的零头与被上限截掉的部分在同一笔交易退回；连一张都买不起时才 revert，并在错误中写明价格。"
}
