Skip to main content

IMinterBreeding

IMinterBreeding

breed

function breed(uint256[] parents) external returns (uint256 tokenId)

Create a new type of species and define attributes.

safeBreed

function safeBreed(uint256[] parents) external returns (uint256 tokenId)

Create a new type of species and define attributes.

NameTypeDescription
tokenIduint256minted token id

setBreedingRules

function setBreedingRules(uint8 requiredParents, uint256 breedCooldownSeconds, uint8[] genes, uint256[] mutationRates) external returns (uint256 tokenId)

Create a new type of species and define attributes.

NameTypeDescription
tokenIduint256minted token id

getBreedingRules

function getBreedingRules() external view returns (uint8 requiredParents, uint256 breedCooldownSeconds, uint8[] genes, uint256[] mutationRates)

Returns the current breeding rules used for a species