Contract 0x49cc23d0b5f61002c2844d0e3d96a8eae71e3604

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcfb281b3ba8ac02aa4c29620ecc071e58382f432565f8d188ccd088e3265a132Inject HGH285523072022-05-20 14:58:537 hrs 45 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.019030261115 237.57832131
0x823665e5adf0555e81a9f7f71b667110fda3f8a0050c997ba9c552c7cf8e126dInject HGH285522652022-05-20 14:56:057 hrs 48 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.009469120439 150.301113301
0x78549d82c37732dc70f2cef857556686683052640a14e1c2a1096c9db5b8c8acInject HGH285522632022-05-20 14:55:577 hrs 48 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.009201311985 146.050252937
0xe70e7ea37e03287436d1c6f97d27aeb7c0223076c01fc80b146b3699ae1154e1Mint Lord285522572022-05-20 14:55:337 hrs 48 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.064551501384 129.545530301
0x5f1fd605ed216b12310eaae27a5f26a9710a37bbc1f7c954c368699d4d7a01cbSafe Transfer Fr...285520412022-05-20 14:48:017 hrs 56 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.006462624051 66.984774419
0xfc2468c5aa3afa2d49bb71a597ffafbdb8a104e72fec540820169c3d9edb68f7Unstake By Ids285518542022-05-20 14:41:358 hrs 2 mins ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.00846798281 65.62445508
0x71054c4510b87a4acbe7f39948318fa0df29704a85130afe241ba55282fab072Safe Transfer Fr...285478342022-05-20 12:14:0010 hrs 30 mins ago0xe6867a9191b595d0d3eed01c79285ea7828cb596 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003114751863 32.284246975
0xec2d9f7f8ff31c97b4cd2c800b7ae8be5e2c681cfc57ca44beedc616fc272da8Safe Transfer Fr...285477282022-05-20 12:10:2410 hrs 34 mins ago0x9de74ee592fff19cd7b83ea40250d0c142e4cc9d IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003052597099 34.299999998
0x4b0b053616f1be6b940b6382dfa3883eadb9bed489e1015d33b7e3dbe940222bInject HGH285424572022-05-20 8:53:3313 hrs 50 mins ago0x3322235da0199cc4210ea7e6ff43d17d44005e93 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.013566635367215.340000433
0xfc796ebb49bec8f2c41ff522f4a05ab971eb06d6c202c3048abc42f9131b903cUnstake By Ids285295452022-05-20 1:15:5921 hrs 28 mins ago0xdaa655f2cf47a4050d1592836095dc5912bd36ba IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003531031156 30.16299625
0x14d093547575303b4938b1e2e9cef16804d192bc9ee2921921e4ece30817dabeUnstake By Ids285015472022-05-19 8:35:211 day 14 hrs ago0xfac6b91421ebe1cc176cd50b8458de833fe1720e IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003911479509 31.462488618
0x17fd3ea48d374348afaebeb1d438828f695ca3634bf32a17711958935afa3e67Inject HGH284971582022-05-19 5:53:211 day 16 hrs ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.00329621232 52.320000013
0x6cd5738492a155544a3f66f5a19d7264b9dc86e8a34472ea6762a04b19d834a1Inject HGH284971432022-05-19 5:52:471 day 16 hrs ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003625735591 57.550445095
0xb1b210ff415c1c31a1c87fc0f518b57888cf33586acf6eaf4b5822dc8227b35dInject HGH284971292022-05-19 5:52:191 day 16 hrs ago0xbb681cb0885cc95fedf7fbb90128f0805a77d4ae IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003254228453 51.653599997
0x0e6edd228a4a95fac3606336553fece096e5209ba7b93a34f3e4828c4759a335Burn For Mint284826252022-05-18 21:18:082 days 1 hr ago0xe9225f057a16f600c4ee2b6c169e93534381d0d0 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.012284269964 30.108799999
0x42761273bba1fc922a5e9b126b7c70a8b6b6a24cb4cc3c96a5bd6c67393db247Inject HGH284618122022-05-18 8:32:192 days 14 hrs ago0x3322235da0199cc4210ea7e6ff43d17d44005e93 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.0018907650830.011667752
0x70ae2deb6e3beb82dd8a000da240169b5e45c09742829ae258bf096c6357c3d6Mint Lord284588472022-05-18 6:40:492 days 16 hrs agoMVP Society: Deployer IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.016117175336 30.430319606
0x2f2d26b369a8a312d9a319a6955cd0e207743d820473ec0932f9326383c2e3a5Safe Transfer Fr...284480582022-05-18 0:05:122 days 22 hrs ago0x54e565eeb4e301add18f79c7ec36bed9329517b5 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.002781033219 36.259999999
0x77892174c66332950885697aaed445b0d6881d1b87377f74d0e9fcffcf34d5a0Safe Transfer Fr...284480382022-05-18 0:04:322 days 22 hrs ago0x54e565eeb4e301add18f79c7ec36bed9329517b5 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003104023921 40.471255997
0x0c95cf8a5900a9b0e12674e9c8349d47c98fabb96bba5db3938333216fde15d2Unstake By Ids284418332022-05-17 20:20:343 days 2 hrs ago0x1978e236376e4348fe7e826d22f1824d6a53f4ee IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.004109784867 33.057583274
0xe9c37086e69bfa47580158f50d08c10ccfd0084072d088b2df8151a49b353ac9Burn For Mint284399422022-05-17 19:12:533 days 3 hrs ago0xe9225f057a16f600c4ee2b6c169e93534381d0d0 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.015079653772 37.915823361
0xa220099a8db27a8f0b4e34f1c25863df1fc6cc4c5266dd5d8e6c8f6b22e77437Burn For Mint284398402022-05-17 19:09:213 days 3 hrs ago0xe9225f057a16f600c4ee2b6c169e93534381d0d0 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.013969614204 34.239586183
0xad4e5440f5e22bf6c547df94f61293e6b4f28a2e0db620bc3929b4bbde87d698Burn For Mint284397362022-05-17 19:05:443 days 3 hrs ago0xe9225f057a16f600c4ee2b6c169e93534381d0d0 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.014249295075 34.925085235
0xb84a846dae372d014d267e486c0652d8d45a5a733093842cb2d6b1f08823e2bfBurn For Mint284397132022-05-17 19:04:583 days 3 hrs ago0xe9225f057a16f600c4ee2b6c169e93534381d0d0 IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.012847733181 31.489850835
0xaf0d7f2cd9235adc0cf663147654ff6eec8669bfdd745b4990eb2e90003d6f0cUnstake By Ids284378432022-05-17 17:54:143 days 4 hrs ago0xeb9089f029d5cee7941d90d9bbb5018c2645caaf IN  0x49cc23d0b5f61002c2844d0e3d96a8eae71e36040 MATIC0.003990825341 32.10071702
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EvilClubLords

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 21 : EvilClubLords.sol
// contracts/EvilClubLords.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "./IHgh.sol";
import "./IECLData.sol";
import "./MaticMikeLibrary.sol";

contract EvilClubLords is 
    ERC721Enumerable, 
    VRFConsumerBase, 
    Ownable  {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    using MaticMikeLibrary for uint8;

    // Mappings
    mapping(string => bool) hashToMinted;
    mapping(uint256 => string) internal tokenIdToHash;
    mapping(uint256 => bool) internal tokenIsBurnReroll;
    mapping(uint256 => uint8) internal tokenIdToBurns;
    mapping(uint256 => uint256) internal tokenIdToTime;
    mapping(uint256 => uint256) internal tokenIdToTimeStamp;
    mapping(uint16 => uint256[]) internal mikeToMint;
    mapping(uint256 => uint16) public mintToMike;
    mapping(uint16 => address) internal tokenIdToStaker;
    mapping(address => uint16[]) internal stakerToTokenIds;
    mapping(uint256 => uint256) internal lastInject;

    // VRF and Staking Maps
    mapping(bytes32 => uint256) private requestIdToToken;

    // In case a fulfill is reverted and we need an admin override
    mapping(uint256 => bytes32) private tokenToRequestId;

    // Booleans
    bool public active = false;
    bool public burnRerollActive = false;

    //uint256
    uint256 REROLL_COST = 10000000000000000000;
    uint256 SEED_NONCE = 0;
    uint256 private fee;
    uint256 MIN_TIME = 1209600;

    uint8 MAX_BURNS = 10;

    // bytes32
    bytes32 private keyHash;

    //uint arrays
    uint16[][8] TIERS;

    //address
    address hghAddress;
    address mikeAddress;
    address revealAddress;
    address unrevealedAddress;

    address _owner;
    address nullAddress = 0x0000000000000000000000000000000000000000;

    // Mainnet LINK
    // TOKEN        0xb0897686c545045aFc77CF20eC7A532E3120E0F1
    // Coordinator  0x3d2341ADb2D31f1c5530cDC622016af293177AE0
    // Key Hash     0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da

    // Mumbai LINK
    // TOKEN        0x326C977E6efc84E512bB9C30f76E30c160eD06FB
    // Coordinator  0x8C7382F9D8f56b33781fE506E897a4F1e2d17255
    // Key Hash     0x6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4

    constructor() 
        VRFConsumerBase(0x3d2341ADb2D31f1c5530cDC622016af293177AE0, 0xb0897686c545045aFc77CF20eC7A532E3120E0F1)
        ERC721("Evil Club Lords (Matic Mike)", "ECL")
    {
        _owner = msg.sender;

        // Chainlink Info
        keyHash = 0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da;
        fee = 0.0001 * 10 ** 18; // 0.0001 LINK

        // necklace
        TIERS[7] = [25, 75, 1000, 1400, 1500, 1750, 1750, 2500];
        // Eyes
        TIERS[6] = [50, 150, 750, 1250, 1500, 1750, 2000, 2550];
        // back
        TIERS[5] = [50, 250, 300, 500, 1050, 1925, 1925, 1925, 2075];
        // Mouth
        TIERS[4] = [200, 250, 300, 500, 1050, 1925, 1925, 1925, 1925];
        // Tattoos
        TIERS[3] = [100, 300, 500, 600, 600, 1000, 1000, 1950, 1950, 2000]; 
        // crown
        TIERS[2] = [50, 500, 2000, 3500, 3950];
        // Nipple Rings
        TIERS[1] = [300, 800, 900, 1000, 1100, 1100, 4800];
        // Body
        TIERS[0] = [375, 425, 600, 1220, 1770, 1870, 1870, 1870];
    }

    /*
    Owner functions
    */

    /**
    * @dev Sales activation setter. If any issues occur can flip it off.
    * @param val is true or false
    */
    function activateSale(bool val) public onlyOwner {
        active = val;
    }

    /**
    * @dev Contract addresses set here. Interface will be the major contract added for dynamic integration in future.
    * @param _hghAddress HGH Contract
    * @param _mikeAddress Matic Mike Contract
    * @param _dataAddress Unrevealed Data Contract
    * @param _revealAddress Revealed Data Contract
    */
    function setContractAddresses(address _hghAddress, address _mikeAddress, address _dataAddress, address _revealAddress) public onlyOwner{
        hghAddress = _hghAddress;
        mikeAddress = _mikeAddress;
        unrevealedAddress = _dataAddress;
        revealAddress = _revealAddress;
    }

    /**
    * @dev Set minimum time to reveal
    * @param _time seconds of time
    */
    function setMinTime(uint256 _time) public onlyOwner{
        MIN_TIME = _time;
    }

    /**
    * @dev Burn reroll activation
    * @param _roll is true or false
    */
    function activateBurn(bool _roll) public onlyOwner {
        burnRerollActive = _roll;
    }

    /**
    * @dev Admin override in case a fulfillRandomness call fails and we need to replace
    * @param _tokenId is the token to override
    */
    function forceFullfill(uint256 _tokenId) public onlyOwner{
        uint256 _seed = uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp,
                    block.difficulty,
                    _tokenId,
                    ownerOf(_tokenId),
                    SEED_NONCE
                )
            )
        );

        if(tokenIsBurnReroll[_tokenId] == false){
            tokenIdToTime[_tokenId] = MIN_TIME + (_seed % MIN_TIME);
        }
        
        // generate dna
        tokenIdToHash[_tokenId] = hash(_seed);
        hashToMinted[tokenIdToHash[_tokenId]] = true;
    }

    /*
    Internal Functions
    */

    /**
    * @dev Fulfills chainlink VRF. Upgrade Attempt.
    * @param requestId is the chainlink request id
    * @param randomness is the uint256 random number we will work off of.
    */
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        // check if a burn reroll, if so, no need to calculate time to reveal
        uint256 _tokenId = requestIdToToken[requestId];

        if(tokenIsBurnReroll[_tokenId] == false){
            tokenIdToTime[_tokenId] = MIN_TIME + (randomness % MIN_TIME);
        }
        
        // generate dna
        tokenIdToHash[_tokenId] = hash(randomness);
        hashToMinted[tokenIdToHash[_tokenId]] = true;
    }

    /*
    Read Functions
    */

    /**
    * @dev Get burnRerollActive
    */
    function isBurnRerollActive() 
        public 
        view 
        returns (bool)
    {
        // interface to pull from MaticMikeData contract
        // pass in hash and tokenid
        return burnRerollActive;
    }

    /**
    * @dev Get total mints
    */
    function getTotalMints() public view returns(uint256){
        return _tokenIds.current();
    }

    /**
    * @dev Get time to reveal
    * @param _tokenId token ID of the ECL
    */
    function getHoursToReveal(uint256 _tokenId) public view returns(uint256){
        if(block.timestamp - tokenIdToTimeStamp[_tokenId] > tokenIdToTime[_tokenId]){
            return 0;
        }
        else{
            return tokenIdToTime[_tokenId] - (block.timestamp - tokenIdToTimeStamp[_tokenId]);
        }
    }
    
    /**
     * @dev Gets the staker address
     * @param tokenId the token id of the Matic Mike
     */
    function getStaker(uint16 tokenId) public view returns (address) {
        return tokenIdToStaker[tokenId];
    }

    /**
     * @dev Gets the tokens of the staker
     * @param staker address of the staker
     */
    function getTokensStaked(address staker)
        public
        view
        returns (uint16[] memory)
    {
        return stakerToTokenIds[staker];
    }

    /**
     * @dev Hours Left on Stake by ID
     * @param tokenId hours left on the stake
     */
    function getHoursLeftOnStake(uint16 tokenId) public view returns (uint256){
        uint256 timeLeft = 0;

        for(uint256 i = 0; i < mikeToMint[tokenId].length; i++){
            timeLeft += getHoursToReveal(mikeToMint[tokenId][i]);
        }

        return timeLeft;
    }

    /**
    * @dev Get time until next injection to reduce hours
    * @param _tokenId token id of ECL
    */
    function getTimeUntilNextInject(uint256 _tokenId) public view returns (uint256){
        uint256 timeSinceInject = block.timestamp - lastInject[_tokenId];
        if(getHoursToReveal(_tokenId) == 0){
            return 99999;
        }
        else{
            if(timeSinceInject >= 86400){
                return 0;
            }
            else{
                return (86400 - timeSinceInject);
            }
        }
    }

    /**
    * @dev Get Power Level by addition of trait power levels as well as external contracts
    * @param _tokenId token id of ECL
    */
    function getPowerLevel(uint256 _tokenId) 
        public 
        view 
        returns (uint16)
    {
        require(getHoursToReveal(_tokenId) == 0, "Not yet revealed");
        return IECLData(revealAddress).getPowerLevel(_tokenId);
    }

    /**
    * @dev Get Burn Rerolls Left
    * @param _tokenId token id of ECL
    */
    function getBurnsLeft(uint256 _tokenId)
        public
        view
        returns (uint8){
        return (10 - tokenIdToBurns[_tokenId]);
    }

    /**
     * @dev Returns the SVG and metadata for a token Id
     * @param _tokenId The tokenId to return the SVG and metadata for.
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId));

        if(getHoursToReveal(_tokenId) == 0 && bytes(tokenIdToHash[_tokenId]).length != 0){
            return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    MaticMikeLibrary.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "Evil Club Lord #',
                                    MaticMikeLibrary.toString(_tokenId),
                                    '", "description": "Matic Mike: Evil Club Lords is a collection with a total circulating supply of 5274 summoned by dancing your Matic Mike in the club. No IPFS, No API, all on-chain.", "image": "data:image/svg+xml;base64,',
                                    IECLData(revealAddress).hashToSVG(_tokenId),
                                    '","attributes":',
                                    IECLData(revealAddress).hashToMetadata(_tokenId),
                                    "}"
                                    )
                                )
                            )
                        )
                    )
                );
        }
        else{
            return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    MaticMikeLibrary.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "Evil Club Lord #',
                                    MaticMikeLibrary.toString(_tokenId),
                                    '", "description": "Matic Mike: Evil Club Lords is a collection with a total circulating supply of 5274 summoned by dancing your Matic Mike in the club. No IPFS, No API, all on-chain.", "image": "data:image/svg+xml;base64,',
                                    IECLData(unrevealedAddress).hashToSVG(_tokenId),
                                    '","attributes":',
                                    IECLData(unrevealedAddress).hashToMetadata(_tokenId),
                                    "}"
                                    )
                                )
                            )
                        )
                    )
                );
        }
    }

    /**
     * @dev Returns a hash for a given tokenId
     * @param _tokenId The tokenId to return the hash for.
     */
    function _tokenIdToHash(uint256 _tokenId)
        public
        view
        returns (string memory)
    {
        require(getHoursToReveal(_tokenId) == 0, "Not yet revealed");
        string memory tokenHash = tokenIdToHash[_tokenId];
        //If this is a burned token, override the previous hash
        if (ownerOf(_tokenId) == 0x000000000000000000000000000000000000dEaD) {
            tokenHash = string(
                abi.encodePacked(
                    "1",
                    MaticMikeLibrary.substring(tokenHash, 1, 9)
                )
            );
        }

        return tokenHash;
    }

    /**
     * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs.
     * @param _wallet The wallet to get the tokens of.
     */
    function walletOfOwner(address _wallet)
        public
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_wallet);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_wallet, i);
        }
        return tokensId;
    }

    /*
    Mint Functions
    */

     /**
     * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier.
     *      PUTS power level (10000-rarity) into the power level for token id which will be used to calculate
     *      battles. 
     * @param _randinput The input from 0 - 10000 to use for rarity gen.
     * @param _rarityTier The tier to use.
     */
    function rarityGen(uint256 _randinput, uint8 _rarityTier)
        internal
        view
        returns (string memory)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < TIERS[_rarityTier].length; i++) {
            uint16 thisPercentage = TIERS[_rarityTier][i];
            if (
                _randinput >= currentLowerBound &&
                _randinput <= currentLowerBound + thisPercentage
            ) return i.toString();
            currentLowerBound = currentLowerBound + thisPercentage;
        }
        revert();
    }

    /**
     * @dev Generates a 9 digit hash from a seed generated by vrf
     * @param _seed The token id to be used within the hash.
     */
    function hash(
        uint256 _seed
    ) internal returns (string memory) {
        string memory currentHash = "0";

        for (uint8 i = 0; i < 8; i++) {
            SEED_NONCE++;
            uint16 _randinput = uint16(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            _seed,
                            SEED_NONCE
                        )
                    )
                ) % 10000
            );

            currentHash = string(
                abi.encodePacked(currentHash, rarityGen(_randinput, i))
            );
        }

        if (hashToMinted[currentHash]) return hash(_seed + 1);

        return currentHash;
    }

    /*
    Minting, and other public functions
    */

    /**
     * @dev Returns the current HGH cost for minting
     */
    function currentHghCost(uint16 _tokenId) public view returns (uint256) {
        if(mikeToMint[_tokenId].length == 0){
            return 25000000000000000000;
        }
        else if(mikeToMint[_tokenId].length == 1){
            return 50000000000000000000;
        }
        // max 2 mikes per mint
        revert();
    }

    /**
     * @dev Mint internal, called after staking Matic Mike in the club
     */
    function mintInternal() internal {
        require(!MaticMikeLibrary.isContract(msg.sender));

        uint256 currentId = _tokenIds.current();
        tokenIdToTimeStamp[_tokenIds.current()] = block.timestamp;
        tokenIdToTime[_tokenIds.current()] = 9999999;
        
        _mint(msg.sender, _tokenIds.current());
        _tokenIds.increment();

        bytes32 requestId = requestRandomness(keyHash, fee);
        requestIdToToken[requestId] = currentId;
    }

    /**
     * @dev burn internal, called when a token is burned
     * @param _tokenId ID of the token being burned
     */
    function burnInternal(uint256 _tokenId) internal {
        require(!MaticMikeLibrary.isContract(msg.sender));

        uint256 currentId = _tokenIds.current();
        tokenIdToTimeStamp[_tokenIds.current()] = block.timestamp;
        tokenIdToTime[_tokenIds.current()] = 0;
        tokenIsBurnReroll[_tokenIds.current()] = true;
        tokenIdToBurns[_tokenIds.current()] = tokenIdToBurns[_tokenId] + 1;

        _mint(msg.sender, _tokenIds.current());
        _tokenIds.increment();

        bytes32 requestId = requestRandomness(keyHash, fee);
        requestIdToToken[requestId] = currentId;
    }

    /**
     * @dev mintLord is the minting function for Evil Club Lords
     * @param _tokenId The Matic Mike Token Id being staked
     */
    function mintLord(uint16 _tokenId) public{
        if (msg.sender != _owner) {
            require(active, "Sale is not active currently.");
        }
        require(IERC721(mikeAddress).ownerOf(_tokenId) == msg.sender, "Not the owner of the token id.");
        require(mikeToMint[_tokenId].length < 2, "Max mints for this Matic Mike");

        IHgh(hghAddress).burnFrom(msg.sender, currentHghCost(_tokenId));
        
        tokenIdToStaker[_tokenId] = msg.sender;
        stakerToTokenIds[msg.sender].push(_tokenId);
        
        IERC721(mikeAddress).transferFrom(
            msg.sender,
            address(this),
            _tokenId
        );

        mikeToMint[_tokenId].push(_tokenIds.current());
        mintToMike[_tokenIds.current()] = _tokenId;

        mintInternal();
    }

    /**
     * @dev Burns and mints new.
     * @param _tokenId The token to burn.
     */
    function burnForMint(uint256 _tokenId) public {
        require(ownerOf(_tokenId) == msg.sender);
        require(burnRerollActive, "Burn rerolls not currently active");
        require(getHoursToReveal(_tokenId) == 0, "Not yet revealed.");
        require(tokenIdToBurns[_tokenId] < 10, "No burns left for this ECL.");

        //Burn HGH
        IHgh(hghAddress).burnFrom(msg.sender, 10000000000000000000);

        //Burn token
        _transfer(
            msg.sender,
            0x000000000000000000000000000000000000dEaD,
            _tokenId
        );

        burnInternal(_tokenId);
    }

    /**
     * @dev Burns and mints new.
     * @param _amount Amount of HGH to inject.
     * @param _tokenId The token to burn.
     */
    function injectHGH(uint256 _amount, uint256 _tokenId) public{
        require(ownerOf(_tokenId) == msg.sender, "You don't own this token");
        require(_amount > 0 && _amount <= 10, "Can only inject up to 10 HGH a day");
        require(block.timestamp - lastInject[_tokenId] >= 86400, "Last inject was less than 24 hours ago");
        require(getHoursToReveal(_tokenId) > 0, "Already Revealed");
        
        uint256 burnAmount = _amount * 1000000000000000000;
        IHgh(hghAddress).burnFrom(msg.sender, burnAmount);

        if(tokenIdToTime[_tokenId] > (_amount * 3600)){
            tokenIdToTime[_tokenId] = tokenIdToTime[_tokenId] - (_amount * 3600);
        }
        else{
            tokenIdToTime[_tokenId] = 0;
        }

        lastInject[_tokenId] = block.timestamp;
    }

    /*
        Staking functions
    */

    function remove(address staker, uint256 index) internal {
        if (index >= stakerToTokenIds[staker].length) return;

        for (uint256 i = index; i < stakerToTokenIds[staker].length - 1; i++) {
            stakerToTokenIds[staker][i] = stakerToTokenIds[staker][i + 1];
        }
        stakerToTokenIds[staker].pop();
    }


    function removeTokenIdFromStaker(address staker, uint256 tokenId) internal {
        for (uint256 i = 0; i < stakerToTokenIds[staker].length; i++) {
            if (stakerToTokenIds[staker][i] == tokenId) {
                //This is the tokenId to remove;
                remove(staker, i);
            }
        }
    }

    /**
     * @dev unstake by IDs
     * @param tokenIds the tokens we are withdrawing
     */
    function unstakeByIds(uint16[] memory tokenIds) public {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                tokenIdToStaker[tokenIds[i]] == msg.sender,
                "Message Sender was not original staker!"
            );


            for(uint256 j = 0; j < mikeToMint[tokenIds[i]].length; j++){
                require(getHoursToReveal(mikeToMint[tokenIds[i]][j]) == 0, "Still time left on reveal.");
            }

            IERC721(mikeAddress).transferFrom(
                address(this),
                msg.sender,
                tokenIds[i]
            );

            removeTokenIdFromStaker(msg.sender, tokenIds[i]);

            tokenIdToStaker[tokenIds[i]] = nullAddress;
        }
    }
}

File 2 of 21 : MaticMikeLibrary.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library MaticMikeLibrary {

    // Originally Anonymice Library utilizing the same functions for encoding as well as generic toString/parseInt
    // We love anonymice.

    // Additional library will be added eventually for storing, drawing, and reading trait struct. This is to prevent
    // out of gas issues during the mapping of pixels to the grid.

    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    function parseInt(string memory _a)
        internal
        pure
        returns (uint8 _parsedInt)
    {
        bytes memory bresult = bytes(_a);
        uint8 mint = 0;
        for (uint8 i = 0; i < bresult.length; i++) {
            if (
                (uint8(uint8(bresult[i])) >= 48) &&
                (uint8(uint8(bresult[i])) <= 57)
            ) {
                mint *= 10;
                mint += uint8(bresult[i]) - 48;
            }
        }
        return mint;
    }

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

    function getPercent(uint part, uint whole) internal pure returns(uint percent) {
        uint numerator = part * 1000;
        if(numerator > part && numerator > whole){
            uint temp = numerator / whole;
            return temp / 10;
        }
        else{
            return 0;
        }
        
    }

    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 3 of 21 : IHgh.sol
// contracts/IHgh.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IHgh is IERC20 {
    function burnFrom(address account, uint256 amount) external;
    function getStaker(uint256 tokenId) external view returns (address);
}

File 4 of 21 : IECLData.sol
// contracts/IHgh.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IECLData {
    function hashToMetadata(uint256 _tokenId) external view returns (string memory);
    function hashToSVG(uint256 _tokenId) external view returns (string memory);
    function getPowerLevel(uint256 _tokenId) external view returns (uint16);
}

File 5 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 6 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 7 of 21 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 8 of 21 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 13 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 14 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 16 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 17 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 18 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 19 of 21 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

File 20 of 21 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

File 21 of 21 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_roll","type":"bool"}],"name":"activateBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnRerollActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"currentHghCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"forceFullfill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getBurnsLeft","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getHoursLeftOnStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getHoursToReveal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPowerLevel","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTimeUntilNextInject","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"injectHGH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnRerollActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"mintLord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintToMike","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_hghAddress","type":"address"},{"internalType":"address","name":"_mikeAddress","type":"address"},{"internalType":"address","name":"_dataAddress","type":"address"},{"internalType":"address","name":"_revealAddress","type":"address"}],"name":"setContractAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setMinTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

60c0604052601a805461ffff19169055678ac7230489e80000601b556000601c5562127500601e55601f805460ff1916600a179055602e80546001600160a01b03191690553480156200005157600080fd5b50604080518082018252601c81527f4576696c20436c7562204c6f72647320284d61746963204d696b6529000000006020808301918252835180850190945260038452621150d360ea1b908401528151733d2341adb2d31f1c5530cdc622016af293177ae09373b0897686c545045afc77cf20ec7a532e3120e0f193929091620000de916000916200047f565b508051620000f49060019060208401906200047f565b5050506001600160601b0319606092831b811660a052911b16608052620001226200011c3390565b6200042d565b602d80546001600160a01b031916331790557ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da6020908155655af3107a4000601d55604080516101008101825260198152604b928101929092526103e89082015261057860608201526105dc60808201526106d660a0820181905260c08201526109c460e0820152620001ba9060289060086200050e565b50604080516101008101825260328152609660208201526102ee918101919091526104e260608201526105dc60808201526106d660a08201526107d060c08201526109f660e0820152620002139060279060086200050e565b5060408051610120810182526032815260fa602082015261012c918101919091526101f4606082015261041a608082015261078560a0820181905260c0820181905260e082015261081b610100820152620002739060269060096200050e565b50604080516101208101825260c8815260fa602082015261012c918101919091526101f4606082015261041a608082015261078560a0820181905260c0820181905260e08201819052610100820152620002d29060259060096200050e565b5060408051610140810182526064815261012c60208201526101f4918101919091526102586060820181905260808201526103e860a0820181905260c082015261079e60e082018190526101008201526107d06101208201526200033b90602490600a6200050e565b506040805160a081018252603281526101f460208201526107d091810191909152610dac6060820152610f6e60808201526200037c9060239060056200050e565b506040805160e08101825261012c81526103206020820152610384918101919091526103e8606082015261044c6080820181905260a08201526112c060c0820152620003cd9060229060076200050e565b50604080516101008101825261017781526101a96020820152610258918101919091526104c460608201526106ea608082015261074e60a0820181905260c0820181905260e0820152620004269060219060086200050e565b5062000608565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200048d90620005cb565b90600052602060002090601f016020900481019282620004b15760008555620004fc565b82601f10620004cc57805160ff1916838001178555620004fc565b82800160010185558215620004fc579182015b82811115620004fc578251825591602001919060010190620004df565b506200050a929150620005b4565b5090565b82805482825590600052602060002090600f01601090048101928215620004fc5791602002820160005b838211156200057a57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000538565b8015620005aa5782816101000a81549061ffff02191690556002016020816001010492830192600103026200057a565b50506200050a9291505b5b808211156200050a5760008155600101620005b5565b600181811c90821680620005e057607f821691505b602082108114156200060257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c6155be6200063b60003960008181611a5801526144ca0152600061448e01526155be6000f3fe608060405234801561001057600080fd5b50600436106102f35760003560e01c806380a45f8211610191578063b77bd253116100e3578063cada136711610097578063e985e9c511610071578063e985e9c51461069b578063f14e7561146106e4578063f2fde38b146106f757600080fd5b8063cada136714610662578063cf4f31c714610675578063d2e59bfe1461068857600080fd5b8063c4ef71c7116100c8578063c4ef71c714610617578063c5bb972b1461062a578063c87b56dd1461064f57600080fd5b8063b77bd253146105f1578063b88d4fde1461060457600080fd5b806394985ddd11610145578063a22cb4651161011f578063a22cb465146105b8578063a46619d6146105cb578063aaa68777146105de57600080fd5b806394985ddd1461058a57806395d89b411461059d5780639777ac23146105a557600080fd5b80638a0407ed116101765780638a0407ed1461051f5780638da5cb5b1461055957806393f89a801461057757600080fd5b806380a45f82146104fa57806382e2d9c11461050c57600080fd5b8063438b63001161024a5780636687adc0116101fe57806370a08231116101d857806370a08231146104cc578063715018a6146104df578063720de389146104e757600080fd5b80636687adc01461047d5780636dbf04781461048d5780636ec0dfe5146104c457600080fd5b80634f6ccce71161022f5780634f6ccce71461043757806352eb77961461044a5780636352211e1461046a57600080fd5b8063438b63001461040457806343c1e67b1461042457600080fd5b8063095ea7b3116102ac57806323b872dd1161028657806323b872dd146103cb5780632f745c59146103de57806342842e0e146103f157600080fd5b8063095ea7b31461039157806316109565146103a657806318160ddd146103b957600080fd5b806302fb0c5e116102dd57806302fb0c5e1461034457806306fdde0314610351578063081812fc1461035957600080fd5b80625ea307146102f857806301ffc9a714610321575b600080fd5b61030b610306366004614c8b565b61070a565b604051610318919061517b565b60405180910390f35b61033461032f366004614ba0565b61088d565b6040519015158152602001610318565b601a546103349060ff1681565b61030b6108e3565b61036c610367366004614c8b565b610975565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610318565b6103a461039f366004614a5f565b610a4f565b005b6103a46103b4366004614b7e565b610bdc565b6008545b604051908152602001610318565b6103a46103d9366004614941565b610f3e565b6103bd6103ec366004614a5f565b610fdf565b6103a46103ff366004614941565b6110ae565b610417610412366004614872565b6110c9565b6040516103189190615143565b6103a4610432366004614b44565b61116b565b6103bd610445366004614c8b565b611223565b61045d610458366004614872565b6112e1565b60405161031891906150fb565b61036c610478366004614c8b565b611382565b601a54610100900460ff16610334565b6104b161049b366004614c8b565b60146020526000908152604090205461ffff1681565b60405161ffff9091168152602001610318565b6103bd611434565b6103bd6104da366004614872565b611444565b6103a4611512565b6103bd6104f5366004614c8b565b61159f565b601a5461033490610100900460ff1681565b6103a461051a366004614a8b565b611603565b61036c61052d366004614c51565b61ffff1660009081526015602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600b5473ffffffffffffffffffffffffffffffffffffffff1661036c565b6103a4610585366004614c8b565b6119ba565b6103a4610598366004614b7e565b611a40565b61030b611ae9565b6103bd6105b3366004614c51565b611af8565b6103a46105c6366004614a31565b611b4c565b6103a46105d9366004614c8b565b611c63565b6103a46105ec3660046148e5565b611e4b565b6103bd6105ff366004614c51565b611f41565b6103a4610612366004614982565b611fb0565b6103a4610625366004614c8b565b612058565b61063d610638366004614c8b565b6122b0565b60405160ff9091168152602001610318565b61030b61065d366004614c8b565b6122cd565b6103bd610670366004614c8b565b61263a565b6103a4610683366004614b44565b61269c565b6104b1610696366004614c8b565b61274e565b6103346106a93660046148ac565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103a46106f2366004614c51565b612862565b6103a4610705366004614872565b612cb2565b60606107158261159f565b15610781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f74207965742072657665616c65640000000000000000000000000000000060448201526064015b60405180910390fd5b6000828152600e60205260408120805461079a90615334565b80601f01602080910402602001604051908101604052809291908181526020018280546107c690615334565b80156108135780601f106107e857610100808354040283529160200191610813565b820191906000526020600020905b8154815290600101906020018083116107f657829003601f168201915b5050505050905061082383611382565b73ffffffffffffffffffffffffffffffffffffffff1661dead73ffffffffffffffffffffffffffffffffffffffff161415610887576108658160016009612ddf565b6040516020016108759190615038565b60405160208183030381529060405290505b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610887575061088782612edc565b6060600080546108f290615334565b80601f016020809104026020016040519081016040528092919081815260200182805461091e90615334565b801561096b5780601f106109405761010080835404028352916020019161096b565b820191906000526020600020905b81548152906001019060200180831161094e57829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610778565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a5a82611382565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610778565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b415750610b4181336106a9565b610bcd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610778565b610bd78383612fbf565b505050565b33610be682611382565b73ffffffffffffffffffffffffffffffffffffffff1614610c63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f596f7520646f6e2774206f776e207468697320746f6b656e00000000000000006044820152606401610778565b600082118015610c745750600a8211155b610d00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f43616e206f6e6c7920696e6a65637420757020746f203130204847482061206460448201527f61790000000000000000000000000000000000000000000000000000000000006064820152608401610778565b6000818152601760205260409020546201518090610d1e90426152ce565b1015610dac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4c61737420696e6a65637420776173206c657373207468616e20323420686f7560448201527f72732061676f00000000000000000000000000000000000000000000000000006064820152608401610778565b6000610db78261159f565b11610e1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c72656164792052657665616c6564000000000000000000000000000000006044820152606401610778565b6000610e3283670de0b6b3a7640000615291565b6029546040517f79cc67900000000000000000000000000000000000000000000000000000000081523360048201526024810183905291925073ffffffffffffffffffffffffffffffffffffffff16906379cc679090604401600060405180830381600087803b158015610ea557600080fd5b505af1158015610eb9573d6000803e3d6000fd5b5050505082610e10610ecb9190615291565b6000838152601160205260409020541115610f1957610eec83610e10615291565b600083815260116020526040902054610f0591906152ce565b600083815260116020526040902055610f29565b6000828152601160205260408120555b50600090815260176020526040902042905550565b610f48338261305f565b610fd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610778565b610bd78383836131cf565b6000610fea83611444565b8210611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610778565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b610bd783838360405180602001604052806000815250611fb0565b606060006110d683611444565b905060008167ffffffffffffffff8111156110f3576110f36154ab565b60405190808252806020026020018201604052801561111c578160200160208202803683370190505b50905060005b82811015611163576111348582610fdf565b8282815181106111465761114661547c565b60209081029190910101528061115b81615382565b915050611122565b509392505050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146111ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b601a8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b600061122e60085490565b82106112bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610778565b600882815481106112cf576112cf61547c565b90600052602060002001549050919050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526016602090815260409182902080548351818402810184019094528084526060939283018282801561137657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161133d5790505b50505050509050919050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610778565b600061143f600c5490565b905090565b600073ffffffffffffffffffffffffffffffffffffffff82166114e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610778565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b61159d6000613441565b565b60008181526011602090815260408083205460129092528220546115c390426152ce565b11156115d157506000919050565b6000828152601260205260409020546115ea90426152ce565b60008381526011602052604090205461088791906152ce565b60005b81518110156119b6573373ffffffffffffffffffffffffffffffffffffffff166015600084848151811061163c5761163c61547c565b60209081029190910181015161ffff1682528101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff16146116fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2060448201527f7374616b657221000000000000000000000000000000000000000000000000006064820152608401610778565b60005b601360008484815181106117175761171761547c565b602002602001015161ffff1661ffff1681526020019081526020016000208054905081101561181157611798601360008585815181106117595761175961547c565b602002602001015161ffff1661ffff16815260200190815260200160002082815481106117885761178861547c565b906000526020600020015461159f565b156117ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5374696c6c2074696d65206c656674206f6e2072657665616c2e0000000000006044820152606401610778565b8061180981615382565b915050611701565b50602a54825173ffffffffffffffffffffffffffffffffffffffff909116906323b872dd903090339086908690811061184c5761184c61547c565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff938416600482015292909116602483015261ffff166044820152606401600060405180830381600087803b1580156118cf57600080fd5b505af11580156118e3573d6000803e3d6000fd5b5050505061190e338383815181106118fd576118fd61547c565b602002602001015161ffff166134b8565b602e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601560008484815181106119475761194761547c565b602002602001015161ffff1661ffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806119ae90615382565b915050611606565b5050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611a3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b601e55565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614611adf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610778565b6119b68282613566565b6060600180546108f290615334565b61ffff8116600090815260136020526040812054611b20575068015af1d78b58c40000919050565b61ffff8216600090815260136020526040902054600114156102f357506802b5e3af16b1880000919050565b73ffffffffffffffffffffffffffffffffffffffff8216331415611bcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610778565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611ce4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b6000424483611cf285611382565b601c546040805160208101969096528501939093526060808501929092527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000911b166080830152609482015260b401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000858152600f90935291205490915060ff16611db857601e54611d9b90826153db565b601e54611da89190615240565b6000838152601160205260409020555b611dc181613649565b6000838152600e602090815260409091208251611de493919291909101906147d9565b506001600d600e6000858152602001908152602001600020604051611e099190614d55565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611ecc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b6029805473ffffffffffffffffffffffffffffffffffffffff9586167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155602a805494861694821694909417909355602c805492851692841692909217909155602b8054919093169116179055565b600080805b61ffff8416600090815260136020526040902054811015611fa95761ffff841660009081526013602052604090208054611f8b9190839081106117885761178861547c565b611f959083615240565b915080611fa181615382565b915050611f46565b5092915050565b611fba338361305f565b612046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610778565b6120528484848461376d565b50505050565b3361206282611382565b73ffffffffffffffffffffffffffffffffffffffff161461208257600080fd5b601a54610100900460ff16612119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4275726e207265726f6c6c73206e6f742063757272656e746c7920616374697660448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610778565b6121228161159f565b15612189576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f74207965742072657665616c65642e0000000000000000000000000000006044820152606401610778565b600081815260106020526040902054600a60ff90911610612206576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4e6f206275726e73206c65667420666f7220746869732045434c2e00000000006044820152606401610778565b6029546040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152678ac7230489e80000602482015273ffffffffffffffffffffffffffffffffffffffff909116906379cc679090604401600060405180830381600087803b15801561227f57600080fd5b505af1158015612293573d6000803e3d6000fd5b505050506122a43361dead836131cf565b6122ad81613810565b50565b6000818152601060205260408120546108879060ff16600a6152e5565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166122fe57600080fd5b6123078261159f565b15801561232d57506000828152600e60205260409020805461232890615334565b151590505b15612513576124ed61233e8361394e565b602b546040517f7d37ba560000000000000000000000000000000000000000000000000000000081526004810186905273ffffffffffffffffffffffffffffffffffffffff90911690637d37ba569060240160006040518083038186803b1580156123a857600080fd5b505afa1580156123bc573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124029190810190614bda565b602b546040517f1b435efa0000000000000000000000000000000000000000000000000000000081526004810187905273ffffffffffffffffffffffffffffffffffffffff90911690631b435efa906024015b60006040518083038186803b15801561246d57600080fd5b505afa158015612481573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124c79190810190614bda565b6040516020016124d993929190614e28565b604051602081830303815290604052613a80565b6040516020016124fd9190614ff3565b6040516020818303038152906040529050919050565b6124ed61251f8361394e565b602c546040517f7d37ba560000000000000000000000000000000000000000000000000000000081526004810186905273ffffffffffffffffffffffffffffffffffffffff90911690637d37ba569060240160006040518083038186803b15801561258957600080fd5b505afa15801561259d573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526125e39190810190614bda565b602c546040517f1b435efa0000000000000000000000000000000000000000000000000000000081526004810187905273ffffffffffffffffffffffffffffffffffffffff90911690631b435efa90602401612455565b600081815260176020526040812054819061265590426152ce565b90506126608361159f565b61266f57506201869f92915050565b6201518081106126825750600092915050565b61268f81620151806152ce565b9392505050565b50919050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461271d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b601a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60006127598261159f565b156127c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f74207965742072657665616c6564000000000000000000000000000000006044820152606401610778565b602b546040517fd2e59bfe0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff9091169063d2e59bfe9060240160206040518083038186803b15801561282a57600080fd5b505afa15801561283e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108879190614c6e565b602d5473ffffffffffffffffffffffffffffffffffffffff1633146128ed57601a5460ff166128ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f53616c65206973206e6f74206163746976652063757272656e746c792e0000006044820152606401610778565b602a546040517f6352211e00000000000000000000000000000000000000000000000000000000815261ffff83166004820152339173ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b15801561295a57600080fd5b505afa15801561296e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612992919061488f565b73ffffffffffffffffffffffffffffffffffffffff1614612a0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e6f7420746865206f776e6572206f662074686520746f6b656e2069642e00006044820152606401610778565b61ffff8116600090815260136020526040902054600211612a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d6178206d696e747320666f722074686973204d61746963204d696b650000006044820152606401610778565b60295473ffffffffffffffffffffffffffffffffffffffff166379cc679033612ab484611af8565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b158015612b1f57600080fd5b505af1158015612b33573d6000803e3d6000fd5b5050505061ffff81811660008181526015602090815260408083208054337fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091558084526016835281842080546001810182559085529290932060108304018054600f9093166002026101000a95860219909216948402949094179055602a5492517f23b872dd0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90606401600060405180830381600087803b158015612c3057600080fd5b505af1158015612c44573d6000803e3d6000fd5b5050505061ffff81166000818152601360209081526040808320600c80548254600181018455928652848620909201919091555483526014909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001690911790556122ad613c5b565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612d33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610778565b73ffffffffffffffffffffffffffffffffffffffff8116612dd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610778565b6122ad81613441565b6060836000612dee85856152ce565b67ffffffffffffffff811115612e0657612e066154ab565b6040519080825280601f01601f191660200182016040528015612e30576020820181803683370190505b509050845b84811015612ed257828181518110612e4f57612e4f61547c565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682612e8188846152ce565b81518110612e9157612e9161547c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080612eca81615382565b915050612e35565b5095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612f6f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061088757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610887565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061301982611382565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16613110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610778565b600061311b83611382565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061318a57508373ffffffffffffffffffffffffffffffffffffffff1661317284610975565b73ffffffffffffffffffffffffffffffffffffffff16145b806131c7575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff166131ef82611382565b73ffffffffffffffffffffffffffffffffffffffff1614613292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610778565b73ffffffffffffffffffffffffffffffffffffffff8216613334576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610778565b61333f838383613cf6565b61334a600082612fbf565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054600192906133809084906152ce565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906133bb908490615240565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b73ffffffffffffffffffffffffffffffffffffffff8316600090815260166020526040902054811015610bd75773ffffffffffffffffffffffffffffffffffffffff831660009081526016602052604090208054839190839081106135225761352261547c565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415613554576135548382613dfc565b8061355e81615382565b9150506134bb565b600082815260186020908152604080832054808452600f9092529091205460ff166135b557601e5461359890836153db565b601e546135a59190615240565b6000828152601160205260409020555b6135be82613649565b6000828152600e6020908152604090912082516135e193919291909101906147d9565b506001600d600e60008481526020019081526020016000206040516136069190614d55565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909216919091179055505050565b60408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015260609060005b60088160ff16101561373157601c805490600061369f83615382565b9190505550600061271085601c546040516020016136c7929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6136ea91906153db565b9050826136fb8261ffff1684613fe0565b60405160200161370c929190614d26565b6040516020818303038152906040529250508080613729906153bb565b915050613683565b50600d816040516137429190614d0a565b9081526040519081900360200190205460ff16156108875761268f613768846001615240565b613649565b6137788484846131cf565b613784848484846140bd565b612052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610778565b333b1561381c57600080fd5b6000613827600c5490565b90504260126000613837600c5490565b815260200190815260200160002081905550600060116000613858600c5490565b8152602001908152602001600020819055506001600f6000613879600c5490565b81526020808201929092526040908101600090812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169415159490941790935584835260109091529020546138d59060ff166001615258565b601060006138e2600c5490565b815260200190815260200160002060006101000a81548160ff021916908360ff16021790555061391a33613915600c5490565b6142bc565b613928600c80546001019055565b6000613938602054601d5461448a565b6000908152601860205260409020919091555050565b60608161398e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156139b857806139a281615382565b91506139b19050600a8361527d565b9150613992565b60008167ffffffffffffffff8111156139d3576139d36154ab565b6040519080825280601f01601f1916602001820160405280156139fd576020820181803683370190505b5090505b84156131c757613a126001836152ce565b9150613a1f600a866153db565b613a2a906030615240565b60f81b818381518110613a3f57613a3f61547c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613a79600a8661527d565b9450613a01565b6060815160001415613aa057505060408051602081019091526000815290565b60006040518060600160405280604081526020016155496040913990506000600384516002613acf9190615240565b613ad9919061527d565b613ae4906004615291565b90506000613af3826020615240565b67ffffffffffffffff811115613b0b57613b0b6154ab565b6040519080825280601f01601f191660200182016040528015613b35576020820181803683370190505b509050818152600183018586518101602084015b81831015613ba35760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401613b49565b600389510660018114613bbd5760028114613c0757613c4d565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152613c4d565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b509398975050505050505050565b333b15613c6757600080fd5b6000613c72600c5490565b90504260126000613c82600c5490565b8152602001908152602001600020819055506298967f60116000613ca5600c5490565b8152602081019190915260400160002055613cc333613915600c5490565b613cd1600c80546001019055565b6000613ce1602054601d5461448a565b60009081526018602052604090209190915550565b73ffffffffffffffffffffffffffffffffffffffff8316613d5e57613d5981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613d9b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613d9b57613d9b8382614622565b73ffffffffffffffffffffffffffffffffffffffff8216613dbf57610bd7816146d9565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610bd757610bd78282614788565b73ffffffffffffffffffffffffffffffffffffffff82166000908152601660205260409020548110613e2c575050565b805b73ffffffffffffffffffffffffffffffffffffffff8316600090815260166020526040902054613e60906001906152ce565b811015613f5d5773ffffffffffffffffffffffffffffffffffffffff83166000908152601660205260409020613e97826001615240565b81548110613ea757613ea761547c565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110613f1b57613f1b61547c565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508080613f5590615382565b915050613e2e565b5073ffffffffffffffffffffffffffffffffffffffff82166000908152601660205260409020805480613f9257613f9261544d565b60008281526020902060107fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191820401805461ffff6002600f8516026101000a021916905590555050565b60606000805b60218460ff1660088110613ffc57613ffc61547c565b015460ff821610156140b757600060218560ff16600881106140205761402061547c565b018260ff16815481106140355761403561547c565b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff16861015801561407c57506140748184615223565b61ffff168611155b156140975761408d8260ff1661394e565b9350505050610887565b6140a18184615223565b92505080806140af906153bb565b915050613fe6565b50600080fd5b600073ffffffffffffffffffffffffffffffffffffffff84163b156142b1576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061413490339089908890889060040161507d565b602060405180830381600087803b15801561414e57600080fd5b505af192505050801561419c575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261419991810190614bbd565b60015b614266573d8080156141ca576040519150601f19603f3d011682016040523d82523d6000602084013e6141cf565b606091505b50805161425e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610778565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506131c7565b506001949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216614339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610778565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156143c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610778565b6143d160008383613cf6565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290614407908490615240565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001614507929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401614534939291906150c6565b602060405180830381600087803b15801561454e57600080fd5b505af1158015614562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145869190614b61565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526145e2906001615240565b6000858152600a60205260409020556131c78482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000600161462f84611444565b61463991906152ce565b6000838152600760205260409020549091508082146146995773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906146eb906001906152ce565b600083815260096020526040812054600880549394509092849081106147135761471361547c565b9060005260206000200154905080600883815481106147345761473461547c565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061476c5761476c61544d565b6001900381819060005260206000200160009055905550505050565b600061479383611444565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546147e590615334565b90600052602060002090601f016020900481019282614807576000855561484d565b82601f1061482057805160ff191683800117855561484d565b8280016001018555821561484d579182015b8281111561484d578251825591602001919060010190614832565b5061485992915061485d565b5090565b5b80821115614859576000815560010161485e565b60006020828403121561488457600080fd5b813561268f816154da565b6000602082840312156148a157600080fd5b815161268f816154da565b600080604083850312156148bf57600080fd5b82356148ca816154da565b915060208301356148da816154da565b809150509250929050565b600080600080608085870312156148fb57600080fd5b8435614906816154da565b93506020850135614916816154da565b92506040850135614926816154da565b91506060850135614936816154da565b939692955090935050565b60008060006060848603121561495657600080fd5b8335614961816154da565b92506020840135614971816154da565b929592945050506040919091013590565b6000806000806080858703121561499857600080fd5b84356149a3816154da565b935060208501356149b3816154da565b925060408501359150606085013567ffffffffffffffff8111156149d657600080fd5b8501601f810187136149e757600080fd5b80356149fa6149f5826151dd565b61518e565b818152886020838501011115614a0f57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215614a4457600080fd5b8235614a4f816154da565b915060208301356148da816154fc565b60008060408385031215614a7257600080fd5b8235614a7d816154da565b946020939093013593505050565b60006020808385031215614a9e57600080fd5b823567ffffffffffffffff80821115614ab657600080fd5b818501915085601f830112614aca57600080fd5b813581811115614adc57614adc6154ab565b8060051b9150614aed84830161518e565b8181528481019084860184860187018a1015614b0857600080fd5b600095505b83861015614b375780359450614b2285615538565b84835260019590950194918601918601614b0d565b5098975050505050505050565b600060208284031215614b5657600080fd5b813561268f816154fc565b600060208284031215614b7357600080fd5b815161268f816154fc565b60008060408385031215614b9157600080fd5b50508035926020909101359150565b600060208284031215614bb257600080fd5b813561268f8161550a565b600060208284031215614bcf57600080fd5b815161268f8161550a565b600060208284031215614bec57600080fd5b815167ffffffffffffffff811115614c0357600080fd5b8201601f81018413614c1457600080fd5b8051614c226149f5826151dd565b818152856020838501011115614c3757600080fd5b614c48826020830160208601615308565b95945050505050565b600060208284031215614c6357600080fd5b813561268f81615538565b600060208284031215614c8057600080fd5b815161268f81615538565b600060208284031215614c9d57600080fd5b5035919050565b60008151808452614cbc816020860160208601615308565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008151614d00818560208601615308565b9290920192915050565b60008251614d1c818460208701615308565b9190910192915050565b60008351614d38818460208801615308565b835190830190614d4c818360208801615308565b01949350505050565b600080835481600182811c915080831680614d7157607f831692505b6020808410821415614daa577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015614dbe5760018114614ded57614e1a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614e1a565b60008a81526020902060005b86811015614e125781548b820152908501908301614df9565b505084890196505b509498975050505050505050565b7f7b226e616d65223a20224576696c20436c7562204c6f72642023000000000000815260008451614e6081601a850160208901615308565b7f222c20226465736372697074696f6e223a20224d61746963204d696b653a2045601a918401918201527f76696c20436c7562204c6f726473206973206120636f6c6c656374696f6e2077603a8201527f697468206120746f74616c2063697263756c6174696e6720737570706c79206f605a8201527f6620353237342073756d6d6f6e65642062792064616e63696e6720796f757220607a8201527f4d61746963204d696b6520696e2074686520636c75622e204e6f20495046532c609a8201527f204e6f204150492c20616c6c206f6e2d636861696e2e222c2022696d6167652260ba8201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c00000060da8201528451614f818160f7840160208901615308565b614fe8614fbf614fb960f7848601017f222c2261747472696275746573223a00000000000000000000000000000000008152600f0190565b87614cee565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161502b81601d850160208701615308565b91909101601d0192915050565b7f3100000000000000000000000000000000000000000000000000000000000000815260008251615070816001850160208701615308565b9190910160010192915050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526150bc6080830184614ca4565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152826020820152606060408201526000614c486060830184614ca4565b6020808252825182820181905260009190848201906040850190845b8181101561513757835161ffff1683529284019291840191600101615117565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156151375783518352928401929184019160010161515f565b60208152600061268f6020830184614ca4565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156151d5576151d56154ab565b604052919050565b600067ffffffffffffffff8211156151f7576151f76154ab565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600061ffff808316818516808303821115614d4c57614d4c6153ef565b60008219821115615253576152536153ef565b500190565b600060ff821660ff84168060ff03821115615275576152756153ef565b019392505050565b60008261528c5761528c61541e565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152c9576152c96153ef565b500290565b6000828210156152e0576152e06153ef565b500390565b600060ff821660ff8416808210156152ff576152ff6153ef565b90039392505050565b60005b8381101561532357818101518382015260200161530b565b838111156120525750506000910152565b600181811c9082168061534857607f821691505b60208210811415612696577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153b4576153b46153ef565b5060010190565b600060ff821660ff8114156153d2576153d26153ef565b60010192915050565b6000826153ea576153ea61541e565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146122ad57600080fd5b80151581146122ad57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146122ad57600080fd5b61ffff811681146122ad57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212200cf1a9c2823db15886d56bb2d8d9d3db9c864b210af5fc1ec5504273ff2a4c6164736f6c63430008070033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.