forked from storyprotocol/protocol-periphery-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIStoryNFT.sol
44 lines (38 loc) · 2.09 KB
/
IStoryNFT.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { IERC7572 } from "./IERC7572.sol";
/// @title IStoryNFT
/// @notice Interface for StoryNFT contracts.
interface IStoryNFT is IERC721, IERC7572 {
////////////////////////////////////////////////////////////////////////////
// Errors //
////////////////////////////////////////////////////////////////////////////
/// @notice Zero address provided as a param to StoryNFT constructor.
error StoryNFT__ZeroAddressParam();
////////////////////////////////////////////////////////////////////////////
// Structs //
////////////////////////////////////////////////////////////////////////////
/// @notice Struct for initializing StoryNFT contracts.
/// @param owner The address of the owner of this collection.
/// @param name The name of the collection.
/// @param symbol The symbol of the collection.
/// @param contractURI The contract URI of the collection (follows OpenSea contract-level metadata standard).
/// @param baseURI The base URI of the collection (see {ERC721URIStorage-tokenURI} for how it is used).
/// @param customInitData Custom data to initialize the StoryNFT.
struct StoryNftInitParams {
address owner;
string name;
string symbol;
string contractURI;
string baseURI;
bytes customInitData;
}
////////////////////////////////////////////////////////////////////////////
// Functions //
////////////////////////////////////////////////////////////////////////////
/// @notice Sets the contractURI of the collection (follows OpenSea contract-level metadata standard).
function setContractURI(string memory contractURI) external;
/// @notice Returns the current total supply of the collection.
function totalSupply() external view returns (uint256);
}