Core
Other
Extension
Revealable
Revealable

RMRKRevealable

RMRK team

IRMRKRevealable

Interface smart contract of the RMRK Revealable extension. This extension simplifies the process of revealing.

Methods

getRevealer

function getRevealer() external view returns (address)

Returns the address of the revealer contract

Returns

NameTypeDescription
_0addressundefined

reveal

function reveal(uint256[] tokenIds) external nonpayable

Reveals the assets for the given tokenIds

This method SHOULD be called by the owner or approved for assetsThis method SHOULD add the asset to the token and accept itThis method SHOULD get the assetId to add and replace from the revealer contractThis assetId to replace CAN be 0, meaning that the asset is added to the token without replacing anythingThe revealer contract MUST take care of ensuring the assetId exists on the contract implementating this interface

Parameters

NameTypeDescription
tokenIdsuint256[]The tokenIds to reveal

setRevealer

function setRevealer(address revealer) external nonpayable

Sets the IRMRKRevealer associated with the contract.

Parameters

NameTypeDescription
revealeraddressThe IRMRKRevealer to associate with the contract

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Parameters

NameTypeDescription
interfaceIdbytes4undefined

Returns

NameTypeDescription
_0boolundefined