{
  "$schema": "../../specs/erc7730-v2.schema.json",
  "includes": "common-AggregationRouterV4.json",
  "context": {
    "$id": "AggregationRouterV4",
    "contract": { "deployments": [{ "chainId": 1, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }] }
  },
  "display": {
    "formats": {
      "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)": {
        "$id": "clipperSwap",
        "intent": "Swap",
        "fields": [
          { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" }, "visible": "always" },
          {
            "path": "minReturn",
            "$ref": "$.display.definitions.minReceiveAmount",
            "params": { "tokenPath": "dstToken" },
            "visible": "always"
          },
          { "path": "@.from", "$ref": "$.display.definitions.beneficiary", "visible": "always" }
        ]
      },
      "clipperSwapTo(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn)": {
        "$id": "clipperSwapTo",
        "intent": "Swap",
        "fields": [
          { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" }, "visible": "always" },
          {
            "path": "minReturn",
            "$ref": "$.display.definitions.minReceiveAmount",
            "params": { "tokenPath": "dstToken" },
            "visible": "always"
          },
          { "path": "recipient", "$ref": "$.display.definitions.beneficiary", "visible": "always" }
        ]
      },
      "clipperSwapToWithPermit(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn, bytes permit)": {
        "$id": "clipperSwapToWithPermit",
        "intent": "Swap",
        "fields": [
          { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" }, "visible": "always" },
          {
            "path": "minReturn",
            "$ref": "$.display.definitions.minReceiveAmount",
            "params": { "tokenPath": "dstToken" },
            "visible": "always"
          },
          { "path": "recipient", "$ref": "$.display.definitions.beneficiary", "visible": "always" },
          { "label": "Permit", "path": "permit", "visible": "never" }
        ]
      }
    }
  },
  "metadata": { "contractName": "AggregationRouterV4" }
}
