UNPKG

@startbahn/startrail

Version:
1,598 lines (1,597 loc) 31.5 kB
[ { "inputs": [], "name": "CustomHistoryDoesNotExist", "type": "error" }, { "inputs": [], "name": "NotCollectionOwner", "type": "error" }, { "inputs": [], "name": "NotCollectionOwnerOrSRROwner", "type": "error" }, { "inputs": [], "name": "NotTrustedForwarder", "type": "error" }, { "inputs": [], "name": "OnlyBulkContract", "type": "error" }, { "inputs": [], "name": "RoyaltyFeeNotToExceedSalePrice", "type": "error" }, { "inputs": [], "name": "SRRAlreadyExists", "type": "error" }, { "inputs": [], "name": "SRRMetadataNotEmpty", "type": "error" }, { "inputs": [], "name": "SRRNotExists", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "components": [ { "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "internalType": "address", "name": "artistAddress", "type": "address" }, { "internalType": "address", "name": "issuer", "type": "address" } ], "indexed": false, "internalType": "struct LibSRRCreate.SRR", "name": "registryRecord", "type": "tuple" }, { "indexed": false, "internalType": "string", "name": "metadataCID", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "lockExternalTransfer", "type": "bool" } ], "name": "CreateSRR", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "indexed": false, "internalType": "string", "name": "historyMetadataURI", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "isIntermediary", "type": "bool" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "Provenance", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "customHistoryId", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "indexed": false, "internalType": "string", "name": "historyMetadataURI", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "isIntermediary", "type": "bool" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "Provenance", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "components": [ { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "uint16", "name": "basisPoints", "type": "uint16" } ], "indexed": false, "internalType": "struct LibERC2981RoyaltyTypes.RoyaltyInfo", "name": "royalty", "type": "tuple" } ], "name": "RoyaltiesSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "SRRCommitment", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "indexed": true, "internalType": "uint256", "name": "customHistoryId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "SRRCommitment", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "SRRCommitmentCancelled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "internalType": "uint256", "name": "customHistoryId", "type": "uint256" } ], "name": "approveSRRByCommitmentFromBulk", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "internalType": "address", "name": "artistAddress", "type": "address" }, { "internalType": "string", "name": "metadataCID", "type": "string" }, { "internalType": "address", "name": "issuerAddress", "type": "address" }, { "internalType": "bool", "name": "lockExternalTransfer", "type": "bool" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "address", "name": "royaltyReceiver", "type": "address" }, { "internalType": "uint16", "name": "royaltyBasisPoints", "type": "uint16" } ], "name": "createSRRFromBulk", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "signer", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "internalType": "uint256", "name": "customHistoryId", "type": "uint256" }, { "internalType": "bool", "name": "isIntermediary", "type": "bool" } ], "name": "transferFromWithProvenanceFromBulk", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "NotAdministrator", "type": "error" }, { "inputs": [], "name": "RoyaltyNotExists", "type": "error" }, { "inputs": [], "name": "RoyaltyReceiverNotAddressZero", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getSRRRoyalty", "outputs": [ { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "uint16", "name": "basisPoints", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "uint256", "name": "salePrice", "type": "uint256" } ], "name": "royaltyInfo", "outputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "address", "name": "royaltyReceiver", "type": "address" }, { "internalType": "uint16", "name": "royaltyBasisPoints", "type": "uint16" } ], "name": "updateSRRRoyalty", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }, { "internalType": "address", "name": "royaltyReceiver", "type": "address" } ], "name": "updateSRRRoyaltyReceiverMulti", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "ERC721ExternalTransferLocked", "type": "error" }, { "inputs": [], "name": "ERC721FeatureAlreadyInitialized", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "indexed": false, "internalType": "string", "name": "historyMetadataURI", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "isIntermediary", "type": "bool" } ], "name": "Provenance", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "customHistoryId", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "indexed": false, "internalType": "string", "name": "historyMetadataURI", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "isIntermediary", "type": "bool" } ], "name": "Provenance", "type": "event" }, { "inputs": [ { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" } ], "name": "__ERC721Feature_initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "exists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "internalType": "uint256", "name": "customHistoryId", "type": "uint256" }, { "internalType": "bool", "name": "isIntermediary", "type": "bool" } ], "name": "transferFromWithProvenance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "OnlyIssuerOrCollectionOwner", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "flag", "type": "bool" } ], "name": "LockExternalTransferSetLock", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getLockExternalTransfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bool", "name": "flag", "type": "bool" } ], "name": "setLockExternalTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "OwnableFeatureAlreadyInitialized", "type": "error" }, { "inputs": [], "name": "Ownable__NotOwner", "type": "error" }, { "inputs": [], "name": "Ownable__NotTransitiveOwner", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "initialOwner", "type": "address" } ], "name": "__OwnableFeature_initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "IncorrectRevealHash", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "commitment", "type": "bytes32" } ], "name": "SRRCommitment", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "indexed": true, "internalType": "uint256", "name": "customHistoryId", "type": "uint256" } ], "name": "SRRCommitment", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "SRRCommitmentCancelled", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" } ], "name": "approveSRRByCommitment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "internalType": "uint256", "name": "customHistoryId", "type": "uint256" } ], "name": "approveSRRByCommitment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "cancelSRRCommitment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getSRRCommitment", "outputs": [ { "internalType": "bytes32", "name": "commitment", "type": "bytes32" }, { "internalType": "string", "name": "historyMetadataHash", "type": "string" }, { "internalType": "uint256", "name": "customHistoryId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bytes32", "name": "reveal", "type": "bytes32" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bool", "name": "isIntermediary", "type": "bool" } ], "name": "transferSRRByReveal", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "OnlyIssuerOrArtistOrCollectionOwner", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "indexed": false, "internalType": "address", "name": "artistAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "UpdateSRR", "type": "event" }, { "inputs": [ { "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "internalType": "address", "name": "artistAddress", "type": "address" }, { "internalType": "string", "name": "metadataCID", "type": "string" }, { "internalType": "bool", "name": "lockExternalTransfer", "type": "bool" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "address", "name": "royaltyReceiver", "type": "address" }, { "internalType": "uint16", "name": "royaltyBasisPoints", "type": "uint16" } ], "name": "createSRR", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getSRR", "outputs": [ { "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "internalType": "address", "name": "artist", "type": "address" }, { "internalType": "address", "name": "issuer", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bool", "name": "isPrimaryIssuer", "type": "bool" }, { "internalType": "address", "name": "artistAddress", "type": "address" } ], "name": "updateSRR", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "AddHistoryNotPermitted", "type": "error" }, { "inputs": [], "name": "MaxCombinedTokensAndHistoriesExceeded", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "customHistoryIds", "type": "uint256[]" } ], "name": "History", "type": "event" }, { "inputs": [ { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "customHistoryIds", "type": "uint256[]" } ], "name": "addHistory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "metadataCID", "type": "string" } ], "name": "UpdateSRRMetadataDigest", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getSRRMetadata", "outputs": [ { "internalType": "string", "name": "metadataCID", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "string", "name": "metadataCID", "type": "string" } ], "name": "updateSRRMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]