Core
Other
Extension
Revealable
Revealable

IRMRKRevealable

Methods

getRevealer

function getRevealer() external view returns (address revealer)

Gets the IRMRKRevealer associated with the contract.

Returns

NameTypeDescription
revealeraddressThe IRMRKRevealer associated with the contract

reveal

function reveal(uint256[] tokenIds) external nonpayable

Reveals the asset for the given tokenIds by adding and accepting and new one.

SHOULD ask revealer which assetId should be added to the token and which asset to replace through IRMRKRevealer.getAssetsToRevealSHOULD be called by the owner or approved for assetsSHOULD add the new asset to each token and accept it

Parameters

NameTypeDescription
tokenIdsuint256[]undefined

setRevealer

function setRevealer(address revealer) external nonpayable

Sets the IRMRKRevealer associated with the contract.

Parameters

NameTypeDescription
revealeraddressThe IRMRKRevealer to associate with the contract