Sound Protocol
Module Contracts
Metadata
GoldenEgg Metadata

GoldenEggMetadata

contracts/modules/GoldenEggMetadata.sol (opens in a new tab)

A metadata module that implements the sound.xyz Golden Egg, a lottery mechanism that rewards a unique 1-of-1 NFT per edition.

Inherits:

getGoldenEggTokenId

function getGoldenEggTokenId(ISoundEditionV1 edition) external view returns (uint256)

Returns token ID for the golden egg after the SoundEdition.mintRandomness is locked, else returns 0.

Params:
editionAddress of the song edition contract we are minting for.