{
  "contractName": "IERC1155CreatorExtensionApproveTransfer",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "bytes4",
          "name": "interfaceId",
          "type": "bytes4"
        }
      ],
      "name": "supportsInterface",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "creator",
          "type": "address"
        },
        {
          "internalType": "bool",
          "name": "enabled",
          "type": "bool"
        }
      ],
      "name": "setApproveTransfer",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "operator",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "from",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "to",
          "type": "address"
        },
        {
          "internalType": "uint256[]",
          "name": "tokenIds",
          "type": "uint256[]"
        },
        {
          "internalType": "uint256[]",
          "name": "amounts",
          "type": "uint256[]"
        }
      ],
      "name": "approveTransfer",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"approveTransfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setApproveTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"approveTransfer(address,address,address,uint256[],uint256[])\":{\"details\":\"Called by creator contract to approve a transfer\"},\"setApproveTransfer(address,bool)\":{\"details\":\"Set whether or not the creator contract will check the extension for approval of token transfer\"},\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Implement this if you want your extension to approve a transfer\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol\":\"IERC1155CreatorExtensionApproveTransfer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":25},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"project:/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol\":{\"keccak256\":\"0x721390972cc45ff82d97046f5b9e560369a4bf25ae1db2ee0998c8dfc484b782\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f564087ce1ed42a2dbb0bd4dd463643ebb51dc8662c6a8ff34b073d94f38ca24\",\"dweb:/ipfs/QmNyZnZLe3dTxpCVLxA2hKamUjDUhds4BjSb7EvegS52yS\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "immutableReferences": {},
  "generatedSources": [],
  "deployedGeneratedSources": [],
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/// @author: manifold.xyz\n\nimport \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\n\n/**\n * Implement this if you want your extension to approve a transfer\n */\ninterface IERC1155CreatorExtensionApproveTransfer is IERC165 {\n\n    /**\n     * @dev Set whether or not the creator contract will check the extension for approval of token transfer\n     */\n    function setApproveTransfer(address creator, bool enabled) external;\n\n    /**\n     * @dev Called by creator contract to approve a transfer\n     */\n    function approveTransfer(address operator, address from, address to, uint256[] calldata tokenIds, uint256[] calldata amounts) external returns (bool);\n}",
  "sourcePath": "/Users/chung/git/manifoldxyz/solidity/creator-core-solidity/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol",
  "ast": {
    "absolutePath": "project:/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol",
    "exportedSymbols": {
      "IERC1155CreatorExtensionApproveTransfer": [
        16055
      ],
      "IERC165": [
        2338
      ]
    },
    "id": 16056,
    "license": "MIT",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 16024,
        "literals": [
          "solidity",
          "^",
          "0.8",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "33:23:46"
      },
      {
        "absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
        "file": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
        "id": 16025,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 16056,
        "sourceUnit": 2339,
        "src": "85:65:46",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [
          {
            "baseName": {
              "id": 16027,
              "name": "IERC165",
              "nameLocations": [
                "280:7:46"
              ],
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 2338,
              "src": "280:7:46"
            },
            "id": 16028,
            "nodeType": "InheritanceSpecifier",
            "src": "280:7:46"
          }
        ],
        "canonicalName": "IERC1155CreatorExtensionApproveTransfer",
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": {
          "id": 16026,
          "nodeType": "StructuredDocumentation",
          "src": "152:74:46",
          "text": " Implement this if you want your extension to approve a transfer"
        },
        "fullyImplemented": false,
        "id": 16055,
        "linearizedBaseContracts": [
          16055,
          2338
        ],
        "name": "IERC1155CreatorExtensionApproveTransfer",
        "nameLocation": "237:39:46",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "documentation": {
              "id": 16029,
              "nodeType": "StructuredDocumentation",
              "src": "295:119:46",
              "text": " @dev Set whether or not the creator contract will check the extension for approval of token transfer"
            },
            "functionSelector": "1b95a227",
            "id": 16036,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setApproveTransfer",
            "nameLocation": "428:18:46",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 16034,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 16031,
                  "mutability": "mutable",
                  "name": "creator",
                  "nameLocation": "455:7:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16036,
                  "src": "447:15:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 16030,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "447:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 16033,
                  "mutability": "mutable",
                  "name": "enabled",
                  "nameLocation": "469:7:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16036,
                  "src": "464:12:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 16032,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "464:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "446:31:46"
            },
            "returnParameters": {
              "id": 16035,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "486:0:46"
            },
            "scope": 16055,
            "src": "419:68:46",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "documentation": {
              "id": 16037,
              "nodeType": "StructuredDocumentation",
              "src": "493:72:46",
              "text": " @dev Called by creator contract to approve a transfer"
            },
            "functionSelector": "e4835177",
            "id": 16054,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "approveTransfer",
            "nameLocation": "579:15:46",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 16050,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 16039,
                  "mutability": "mutable",
                  "name": "operator",
                  "nameLocation": "603:8:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "595:16:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 16038,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "595:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 16041,
                  "mutability": "mutable",
                  "name": "from",
                  "nameLocation": "621:4:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "613:12:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 16040,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "613:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 16043,
                  "mutability": "mutable",
                  "name": "to",
                  "nameLocation": "635:2:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "627:10:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 16042,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "627:7:46",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 16046,
                  "mutability": "mutable",
                  "name": "tokenIds",
                  "nameLocation": "658:8:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "639:27:46",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 16044,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "639:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 16045,
                    "nodeType": "ArrayTypeName",
                    "src": "639:9:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 16049,
                  "mutability": "mutable",
                  "name": "amounts",
                  "nameLocation": "687:7:46",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "668:26:46",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 16047,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "668:7:46",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 16048,
                    "nodeType": "ArrayTypeName",
                    "src": "668:9:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "594:101:46"
            },
            "returnParameters": {
              "id": 16053,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 16052,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 16054,
                  "src": "714:4:46",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 16051,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "714:4:46",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "713:6:46"
            },
            "scope": 16055,
            "src": "570:150:46",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 16056,
        "src": "227:495:46",
        "usedErrors": []
      }
    ],
    "src": "33:689:46"
  },
  "compiler": {
    "name": "solc",
    "version": "0.8.19+commit.7dd6d404.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.12",
  "updatedAt": "2023-03-22T17:07:39.762Z",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "approveTransfer(address,address,address,uint256[],uint256[])": {
        "details": "Called by creator contract to approve a transfer"
      },
      "setApproveTransfer(address,bool)": {
        "details": "Set whether or not the creator contract will check the extension for approval of token transfer"
      },
      "supportsInterface(bytes4)": {
        "details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "notice": "Implement this if you want your extension to approve a transfer",
    "version": 1
  }
}