Token系列 - 加密猫智能合约源码分析

GeneScienceInterface合约

这个合约没有源码,从名字看已经很明显,就是猫的基因工程,用于决定新出生猫的基因。 这里仅仅定义了一个接口,没有具体实现,后续的调用请看后续代码分析

/// @title SEKRETOOOO

contract GeneScienceInterface {

/// @dev simply a boolean to indicate this is the contract we expect to be

function isGeneScience() public pure returns (bool);

/// @dev given genes of kitten 1 & 2, return a genetic combination - may have a random factor

/// @param genes1 genes of mom

/// @param genes2 genes of sire

/// @return the genes that are supposed to be passed down the child

function mixGenes(uint256 genes1, uint256 genes2, uint256 targetBlock) public returns