SNWProjects
Interfaces
ISnowconeProjects
General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.
Inheritance
SnowconeOperatable
Includes convenience functionality for checking a message sender's permissions before executing certain transactions.
ERC721Votes
A checkpointable standard definition for non-fungible tokens (NFTs).
Ownable
Includes convenience functionality for specifying an address that owns the contract, with modifiers that only allow access by the owner.
Constructor
constructor(ISnowconeOperatorStore _operatorStore)
  ERC721('Snowcone Projects', 'SNOWCONE')
  EIP712('Snowcone Projects', '1')
  SnowconeOperatable(_operatorStore)
{}
_operatorStore is an ISnowconeOperatorStore contract storing operator assignments.
Events
Create
uint256 indexed projectId, address indexed owner, SnowconeProjectMetadata metadata, address caller
SetMetadata
uint256 indexed projectId, SnowconeProjectMetadata metadata, address caller
SetTokenUriResolver
ISnowconeTokenUriResolver indexed resolver, address caller
Properties
count
Returns uint256
metadataContentOf
Params: uint256 _projectId, uint256 _domain Returns: string
tokenUriResolver
Returns ISnowconeTokenUriResolver
Read
tokenURI
Params: uint256 _projectId
supportsInterface
Params: uint256 _interfaceId Returns: bool
Write
createFor
Params: address _owner, SnowconeProjectMetadata _metadata Returns: uint256 projectId
setMetadataOf
Traits: requirePermission Params: uint256 _projectId, SnowconeProjectMetadata _metadata
setTokenUriResolver
Traits: onlyOwner Params: ISnowconeTokenUriResolver _newResolver
Last updated
Was this helpful?
