Core
Other
Extension
Revealable
Revealer

IRMRKRevealer

Methods

getRevealableTokens

function getRevealableTokens(uint256[] tokenIds) external view returns (bool[] revealable)

For each tokenId in tokenIds returns whether it can be revealed or not

Parameters

NameTypeDescription
tokenIdsuint256[]The tokenIds to check

Returns

NameTypeDescription
revealablebool[]The array of booleans indicating whether each tokenId can be revealed or not

reveal

function reveal(uint256[] tokenIds) external nonpayable returns (uint64[] revealedAssetsIds, uint64[] assetsToReplaceIds)

Returns the revealed assetIds for the given tokenIds and marks them as revealed.

This CAN add new assets to the original contract if necessary, in which case it SHOULD have the necessary permissionsThis method MUST only return existing assetIdsThis method MUST be called only by the contract implementing the IRMRKRevealable interface, during the reveal methodThis method MUST return the same amount of revealedAssetsIds and assetsToReplaceIds as tokenIds

Parameters

NameTypeDescription
tokenIdsuint256[]The tokenIds to reveal

Returns

NameTypeDescription
revealedAssetsIdsuint64[]The revealed assetIds
assetsToReplaceIdsuint64[]The assetIds to replace

Events

Revealed

event Revealed(uint256[] indexed tokenIds, uint64[] revealedAssetsIds, uint64[] assetsToReplaceIds)

Parameters

NameTypeDescription
tokenIds indexeduint256[]undefined
revealedAssetsIdsuint64[]undefined
assetsToReplaceIdsuint64[]undefined