Mine Interface

Embedded mining interface of ERC721

interface mineIF {   
    function blockStatus (uint256 _BlockNumber)external view returns (uint256);
    function mineInfo(address user, uint256 number) external view  returns (uint256);  
    function tokenIDPower (uint256 tokenId)external view returns(uint256);  
    function totalPower() external view returns (uint256);
    function MineStatus(address user)external view returns(uint256); 
}

Minerpunk adopts the ERC721A standard and adds some codes to realize mining.

Here is the complete smart contract code, this document will not specifically explain ERC721.

First briefly introduce the four-line function on the Interface.

function
Parameter
value

blockStatus

BlockNumber

Mining pool stock at this block number.

mineInfo

address,1 address,2 address,3

1.The block number stored at this address.

2.The power accumulated by this address.

3.The amount of ore accumulated by this address (Fixed, token balance changes will update the data).

tokenIDPower

tokenID

TokenID power.

totalPower

The sum of all power

MineStatus

address

This address accumulates ores (will be updated as the block number changes).

Last updated