[
  {
    "type": "function",
    "name": "isAuthorizedToCreatePremint",
    "inputs": [
      {
        "name": "signer",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "premintContractConfigContractAdmin",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "contractAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "isAuthorized",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "premintV1",
    "inputs": [
      {
        "name": "contractConfig",
        "type": "tuple",
        "internalType": "struct ContractCreationConfig",
        "components": [
          {
            "name": "contractAdmin",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "contractURI",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "contractName",
            "type": "string",
            "internalType": "string"
          }
        ]
      },
      {
        "name": "premintConfig",
        "type": "tuple",
        "internalType": "struct PremintConfig",
        "components": [
          {
            "name": "tokenConfig",
            "type": "tuple",
            "internalType": "struct TokenCreationConfig",
            "components": [
              {
                "name": "tokenURI",
                "type": "string",
                "internalType": "string"
              },
              {
                "name": "maxSupply",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "maxTokensPerAddress",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "pricePerToken",
                "type": "uint96",
                "internalType": "uint96"
              },
              {
                "name": "mintStart",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "mintDuration",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "royaltyMintSchedule",
                "type": "uint32",
                "internalType": "uint32"
              },
              {
                "name": "royaltyBPS",
                "type": "uint32",
                "internalType": "uint32"
              },
              {
                "name": "royaltyRecipient",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "fixedPriceMinter",
                "type": "address",
                "internalType": "address"
              }
            ]
          },
          {
            "name": "uid",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "version",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "deleted",
            "type": "bool",
            "internalType": "bool"
          }
        ]
      },
      {
        "name": "signature",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "quantityToMint",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "mintArguments",
        "type": "tuple",
        "internalType": "struct MintArguments",
        "components": [
          {
            "name": "mintRecipient",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "mintComment",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "mintRewardsRecipients",
            "type": "address[]",
            "internalType": "address[]"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple",
        "internalType": "struct PremintResult",
        "components": [
          {
            "name": "contractAddress",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "tokenId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "createdNewContract",
            "type": "bool",
            "internalType": "bool"
          }
        ]
      }
    ],
    "stateMutability": "payable"
  },
  {
    "type": "function",
    "name": "premintV2",
    "inputs": [
      {
        "name": "contractConfig",
        "type": "tuple",
        "internalType": "struct ContractCreationConfig",
        "components": [
          {
            "name": "contractAdmin",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "contractURI",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "contractName",
            "type": "string",
            "internalType": "string"
          }
        ]
      },
      {
        "name": "premintConfig",
        "type": "tuple",
        "internalType": "struct PremintConfigV2",
        "components": [
          {
            "name": "tokenConfig",
            "type": "tuple",
            "internalType": "struct TokenCreationConfigV2",
            "components": [
              {
                "name": "tokenURI",
                "type": "string",
                "internalType": "string"
              },
              {
                "name": "maxSupply",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "maxTokensPerAddress",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "pricePerToken",
                "type": "uint96",
                "internalType": "uint96"
              },
              {
                "name": "mintStart",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "mintDuration",
                "type": "uint64",
                "internalType": "uint64"
              },
              {
                "name": "royaltyBPS",
                "type": "uint32",
                "internalType": "uint32"
              },
              {
                "name": "payoutRecipient",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "fixedPriceMinter",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "createReferral",
                "type": "address",
                "internalType": "address"
              }
            ]
          },
          {
            "name": "uid",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "version",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "deleted",
            "type": "bool",
            "internalType": "bool"
          }
        ]
      },
      {
        "name": "signature",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "quantityToMint",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "mintArguments",
        "type": "tuple",
        "internalType": "struct MintArguments",
        "components": [
          {
            "name": "mintRecipient",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "mintComment",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "mintRewardsRecipients",
            "type": "address[]",
            "internalType": "address[]"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple",
        "internalType": "struct PremintResult",
        "components": [
          {
            "name": "contractAddress",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "tokenId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "createdNewContract",
            "type": "bool",
            "internalType": "bool"
          }
        ]
      }
    ],
    "stateMutability": "payable"
  },
  {
    "type": "event",
    "name": "Preminted",
    "inputs": [
      {
        "name": "contractAddress",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "tokenId",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "createdNewContract",
        "type": "bool",
        "indexed": true,
        "internalType": "bool"
      },
      {
        "name": "uid",
        "type": "uint32",
        "indexed": false,
        "internalType": "uint32"
      },
      {
        "name": "contractConfig",
        "type": "tuple",
        "indexed": false,
        "internalType": "struct ContractCreationConfig",
        "components": [
          {
            "name": "contractAdmin",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "contractURI",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "contractName",
            "type": "string",
            "internalType": "string"
          }
        ]
      },
      {
        "name": "tokenConfig",
        "type": "tuple",
        "indexed": false,
        "internalType": "struct TokenCreationConfig",
        "components": [
          {
            "name": "tokenURI",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "maxSupply",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxTokensPerAddress",
            "type": "uint64",
            "internalType": "uint64"
          },
          {
            "name": "pricePerToken",
            "type": "uint96",
            "internalType": "uint96"
          },
          {
            "name": "mintStart",
            "type": "uint64",
            "internalType": "uint64"
          },
          {
            "name": "mintDuration",
            "type": "uint64",
            "internalType": "uint64"
          },
          {
            "name": "royaltyMintSchedule",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "royaltyBPS",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "royaltyRecipient",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "fixedPriceMinter",
            "type": "address",
            "internalType": "address"
          }
        ]
      },
      {
        "name": "minter",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "quantityMinted",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  }
]