ClaimsFacet
ClaimsFacet
setDataSelector
bytes4 setDataSelector
getClaimSupply
function getClaimSupply() external view returns (uint256)
getClaimFee
function getClaimFee() external view returns (uint256)
getClaimMaxFee
function getClaimMaxFee() external view returns (uint256)
getClaimMinFee
function getClaimMinFee() external view returns (uint256)
isTokenFromClaim
function isTokenFromClaim(uint256 tokenId) external view returns (bool)
getClaimCreator
function getClaimCreator(uint256 claimId) external view returns (address)
getClaim
function getClaim(uint256 _claimId) external view returns (struct LibClaims.Claim)
getTokensMintedFromClaim
function getTokensMintedFromClaim(uint256 claimId) external view returns (uint256)
getMissingClaimChunks
function getMissingClaimChunks(uint256 tokenId) public view returns (uint256[], uint256[])
getTotalClaimChunks
function getTotalClaimChunks(uint256 claimId) public view returns (uint256, uint256)
getClaimChunkBoundaries
function getClaimChunkBoundaries(uint256 totalSize) public pure returns (uint256[])
addClaimImageChunk
function addClaimImageChunk(uint256 claimId, string base64Image, uint256 chunkNo) public
addClaimAnimationChunk
function addClaimAnimationChunk(uint256 claimId, string base64Animation, uint256 chunkNo) public
addClaimImageChunk
function addClaimImageChunk(uint256 claimId, string base64Image, uint256 chunkNo, uint256 numChunks) public
addClaimAnimationChunk
function addClaimAnimationChunk(uint256 claimId, string base64Animation, uint256 chunkNo, uint256 numChunks) public
_storeClaimData
function _storeClaimData(string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, uint256 totalImgSize, uint256 totalAnimSize) internal
createClaim
function createClaim(string base64Image, string base64Animation, enum LibImageStorage.ResolutionMethod imageMethod, enum LibImageStorage.ResolutionMethod animationMethod, struct LibClaims.ClaimRule claimRule, uint256 totalImgSize, uint256 totalAnimSize) external
getNumTokensClaimedByAddress
function getNumTokensClaimedByAddress(uint256 claimId, address addr) external view returns (uint256)
updateClaimRule
function updateClaimRule(uint256 claimId, struct LibClaims.ClaimRule claimRule) external
_applyClaimAndRoyalty
function _applyClaimAndRoyalty(struct LibClaims.ClaimRule claimRule, uint32 tokenAmount, uint256 tokenSupply) internal
mintClaim
function mintClaim(uint256 claimId, address to, uint32 amount) external payable
claimTokenURI
function claimTokenURI(uint256 tokenId) external view returns (string)
_claimTokenURI
function _claimTokenURI(uint256 tokenId, string name, string desc, string attributes) internal view returns (string)
extClaimTokenURI
function extClaimTokenURI(uint256 tokenId, string name, string desc, string attributes) public view returns (string)
setClaimMetadata
function setClaimMetadata(uint256 claimId, bytes32[] dataKeys, bytes[] dataValues) public
onlyOwner
modifier onlyOwner()
_msgSender
function _msgSender() internal view virtual returns (address sender)