Contract 0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd4e57abd753d0e0c46fc5945693d3f3e27af0eabdb8101e81c6ef6325d8fe5b9Set Approval For...365403812022-12-07 14:36:3311 hrs 36 mins ago0xbc6e70cb9b89851e6cff7ce198a774549f4c0f0c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.006353292857 137.845364658
0xbf0a02a85fea213b3966992c3831553a0f40f7d8542a5ac9fedf174904ffb1f7Set Approval For...365318032022-12-07 9:34:1916 hrs 38 mins ago0xc07b88ea95a947b8e0469a8aa8d97ab46eb72849 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.001811257111 39.298266692
0x7c90da2ff8faf3f84b7f5febf488bead7648c55d05f391854176e9b3f60a1480Safe Transfer Fr...365210832022-12-07 3:15:2322 hrs 57 mins ago0x6a6048f18223d2486f997eee6b134d23b076fe6c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003887258787 43.363773946
0xafa3c870ec3d140c391deec2002b3f8a873647147f514d6cb8db38d558a3a7e1Safe Transfer Fr...365210252022-12-07 3:13:2722 hrs 59 mins ago0x6a6048f18223d2486f997eee6b134d23b076fe6c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.002996048474 37.757860525
0xab432def9d8846207804c0215816d62a2d18999abd958ffbdd561aa8ec72aa0dSafe Transfer Fr...365209822022-12-07 3:11:5723 hrs ago0x6a6048f18223d2486f997eee6b134d23b076fe6c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003313843509 36.967119678
0x7fc85ed0c83a91b635eeb6db059d76759d742c4a78f2530ebbedd7e5c11e8e08Safe Transfer Fr...365208912022-12-07 3:08:4723 hrs 3 mins ago0x6a6048f18223d2486f997eee6b134d23b076fe6c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.004153700624 46.336028744
0x31d72eb111f0de44dafee419743ac2ccbf62c631a04a03bcf78d6e429e5217c9Safe Transfer Fr...365207942022-12-07 3:04:1523 hrs 8 mins ago0x6a6048f18223d2486f997eee6b134d23b076fe6c IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.005432243383 60.598634401
0xcccfb21fbcb298f285032350cf05e081cd4c25482d0ee4b9675b77af3e976d28Safe Transfer Fr...365203202022-12-07 2:47:0523 hrs 25 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.009008946393 100.498046627
0xbe1e40931586675fee0706e2ba09d6a14c6f7c492ac05fd776745ea9f509a767Safe Transfer Fr...365202582022-12-07 2:42:5523 hrs 29 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003793291618 42.315536273
0x0e4cfac8678fbbeed2635769dd6651d51d839618166c45e67616d64df5bedf2dSafe Transfer Fr...365202202022-12-07 2:41:2923 hrs 31 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003809353463 42.494711949
0x8ce59a2b2dd814f562c3afb54af90fc92bbfda6bde144e5efa533a6e8a7187baSafe Transfer Fr...365201792022-12-07 2:40:0323 hrs 32 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003793302026 42.315652378
0xe93db0784a18969e3cff02fea49bf3bef872d62194623a38ef842dcf573168b6Safe Transfer Fr...365201692022-12-07 2:39:4323 hrs 32 mins ago0x79185c9d1e48dd5599157a1c289a910c845deba3 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.00362702776845.709810691
0x32c680585ecc2dc6f53df50e6c8da45598a6ab42d616c5cde126406d0751ec3bSafe Transfer Fr...365201112022-12-07 2:37:4323 hrs 34 mins ago0x79185c9d1e48dd5599157a1c289a910c845deba3 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.00402690094744.921532602
0x724b0c1aa7c09d0314ac0af13a718a8c29b1c2f7fd3595f6d67b915594fcd527Safe Transfer Fr...365200882022-12-07 2:36:5723 hrs 35 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.004436113283 51.081990296
0x4a721dbbb74b83babb3d36b25fdc3e6893e735f5c71f1479ae52eb92525967f3Safe Transfer Fr...365200202022-12-07 2:34:3723 hrs 38 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.005020091589 56.000932473
0xf16a9c1759c4b3f9243a367a0ae4ff4e077f0cdca63064941de6e5c045624b1cSafe Transfer Fr...365196872022-12-07 2:21:1923 hrs 51 mins ago0xa0e9cb07d36953f3a2065bcdef7fb1a6f43d8852 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.004579867785 51.09007715
0x71b74be70442ac0d6445c3cba455eacc79e637007e864da0b4db2146dd00f42bSafe Transfer Fr...365132692022-12-06 22:35:561 day 3 hrs ago0x8bf840938e4183a18c0d2f138ddbe76d5dafa362 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003180976609 40.0884272
0x8fb058a922832cb73f9ac7f59c787f0a627f8c8c5bce943163c95ddac3423fffSafe Transfer Fr...365131472022-12-06 22:31:441 day 3 hrs ago0x8bf840938e4183a18c0d2f138ddbe76d5dafa362 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003373445376 37.632
0x7857a8a6c63e57ae326ad7a9d2f6c0ea8db01284cc877ea81f3f590cff3fada1Safe Transfer Fr...365130522022-12-06 22:28:281 day 3 hrs ago0x181a99cef678cdf2cfd855fcdab1230bb7e9616e IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.003516635444 39.229336867
0xc82819f40992ba28f501fd881aad9071fb9370c347a959a87c2128d5712023fbSafe Transfer Fr...365130162022-12-06 22:27:121 day 3 hrs ago0x181a99cef678cdf2cfd855fcdab1230bb7e9616e IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.004067942914 45.379370553
0x414cd1161f35b3a9656b75c89d32a4094de284796aefc26b810c8c64d3af9e26Safe Transfer Fr...365129912022-12-06 22:26:221 day 3 hrs ago0x181a99cef678cdf2cfd855fcdab1230bb7e9616e IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.002985184414 37.620945621
0x7a4b9c3f69e1b96ad2e57c325bb0af34c9d03569d82c1fbb1ffcc290de1304a7Set Approval For...364543372022-12-05 12:14:292 days 13 hrs ago0x4980388d6e2c996c0cf931c2412be7195fcf9f04 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.0026631141 57.780735528
0x3245ae20b5cf071162b9354efcd21f2d6fd64c6fe6ea238572fce883ff567b41Safe Transfer Fr...364338142022-12-05 0:02:343 days 2 hrs ago0x821d9a3f2ea71e19c862218f4b041fa5a2827490 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.002975022782 32.461050122
0x9d66cde755c3bc9c79807f91d2679150e370c2055fe1d10b04d9e3fd8c132addSafe Transfer Fr...363998572022-12-04 3:39:103 days 22 hrs ago0xe1f84beb41283db1be8191681d0f0da0ec50f211 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.002689290039 30.000000446
0x21e83fa27ea037cc32715ed2f536f1e4047182874c3898482f34531f29aeffc9Safe Transfer Fr...363998372022-12-04 3:38:303 days 22 hrs ago0xe1f84beb41283db1be8191681d0f0da0ec50f211 IN  0x8a57d0cb88e5dea66383b64669aa98c1ab48f03e0 MATIC0.002296470034 30.000000452
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TRVCToken

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : RedVillageChampionToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import { ChampionStorage } from "./ChampionHelpers.sol";

//
//   +-+ +-+ +-+   +-+ +-+ +-+   +-+ +-+ +-+ +-+ +-+ +-+ +-+
//   |T| |h| |e|   |R| |e| |d|   |V| |i| |l| |l| |a| |g| |e|
//   +-+ +-+ +-+   +-+ +-+ +-+   +-+ +-+ +-+ +-+ +-+ +-+ +-+
//
//
//   The Red Village + Pellar 2022
//

contract TRVCToken is ERC721Enumerable, VRFConsumerBase, Ownable {
  using Strings for uint256;
  using ChampionStorage for ChampionStorage.Store;

  struct PhaseConfig {
    uint256 START_INDEX;
    uint256 TOTAL_SUPPLY;
  }

  struct PhaseInfo {
    bool seeded;
    uint256 seedNumber;
    uint256 boundary;
    mapping(uint256 => uint256) randoms;
    PhaseConfig config;
  }

  bool tradingPaused;
  string defaultBaseURI;

  // constants
  address public constant VRF_COORDINATOR_ADDRESS = 0x3d2341ADb2D31f1c5530cDC622016af293177AE0;
  address public constant LINK_ADDRESS = 0xb0897686c545045aFc77CF20eC7A532E3120E0F1;
  bytes32 public constant VRF_KEY_HASH = 0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da;
  uint256 public constant VRF_FEE = 0.0001 * (10**18);

  mapping(bytes32 => uint256) public vrfRequests;
  mapping(uint256 => PhaseInfo) public phases;
  ChampionStorage.Store public rangeTickets;

  constructor() ERC721("TheRedVillageChampions", "TRVC") VRFConsumerBase(VRF_COORDINATOR_ADDRESS, LINK_ADDRESS) {
    uint256 currentPhaseId = 1;
    phases[currentPhaseId].config.START_INDEX = 5000;
    phases[currentPhaseId].config.TOTAL_SUPPLY = 6000;
    phases[currentPhaseId].boundary = 6000;
  }

  /** View */
  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
    require(_exists(_tokenId), "URI query for non existent token");
    (bool success, uint256 index) = rangeTickets.findTicketIndex(_tokenId);

    if (!success) {
      return string(abi.encodePacked(defaultBaseURI, Strings.toString(_tokenId)));
    }

    string memory baseURI = rangeTickets.getValue(index);
    return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
  }

  /** Admin */
  function mintTo(uint256 _phaseId, address[] calldata _accounts) external onlyOwner {
    PhaseInfo storage phase = phases[_phaseId];
    require(phase.seeded, "Need VRF seed");
    require(phase.boundary >= _accounts.length, "Out of bound");

    for (uint256 i = 0; i < _accounts.length; i++) {
      address to = _accounts[i];

      uint256 index = (uint256(keccak256(abi.encodePacked(phase.seedNumber, block.timestamp, to, i, totalSupply(), block.number, address(this)))) % phase.boundary) + 1;
      uint256 tokenId = (phase.randoms[index] > 0 ? phase.randoms[index] - 1 : index - 1) + phase.config.START_INDEX;
      phase.randoms[index] = phase.randoms[phase.boundary] > 0 ? phase.randoms[phase.boundary] : phase.boundary;
      phase.boundary -= 1;

      _safeMint(to, tokenId);
    }
  }

  function setDefaultBaseURI(
    string calldata _uri
  ) external onlyOwner {
    defaultBaseURI = _uri;
  }

  function setBaseURI(
    uint256 _startId,
    uint256 _endId,
    string calldata _uri
  ) external onlyOwner {
    require(_endId >= _startId, "Input invalid.");

    rangeTickets.addTicket(_startId, _endId, _uri);
  }

  function createPhase(
    uint256 _phaseId,
    uint256 _startIndex,
    uint256 _totalSupply
  ) external onlyOwner {
    require(phases[_phaseId].boundary == phases[_phaseId].config.TOTAL_SUPPLY, "Already issued");
    require(_startIndex >= 5000, "Overlap");
    phases[_phaseId].config.START_INDEX = _startIndex;
    phases[_phaseId].config.TOTAL_SUPPLY = _totalSupply;
    phases[_phaseId].boundary = _totalSupply;
  }

  function toggleTrading(bool _status) external onlyOwner {
    tradingPaused = _status;
  }

  function _beforeTokenTransfer(address _from, address _to, uint256 _tokenId) internal virtual override {
    require(_from == address(0) || !tradingPaused, "Token paused");
    super._beforeTokenTransfer(_from, _to, _tokenId);
  }

  /** VRF */
  function createRandomSeed(uint256 _phaseId) external onlyOwner returns (bytes32 _requestId) {
    require(LINK.balanceOf(address(this)) >= VRF_FEE, "Not enough LINK.");
    _requestId = requestRandomness(VRF_KEY_HASH, VRF_FEE);
    vrfRequests[_requestId] = _phaseId;
  }

  function fulfillRandomness(bytes32 _requestId, uint256 _randomness) internal override {
    phases[vrfRequests[_requestId]].seeded = true;
    phases[vrfRequests[_requestId]].seedNumber = _randomness;
  }

  function withdrawLink() external onlyOwner {
    uint256 balance = LINK.balanceOf(address(this));
    LINK.transfer(msg.sender, balance);
  }

  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }
}

File 2 of 17 : 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 3 of 17 : 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 4 of 17 : 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 5 of 17 : 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);
  }
}

File 6 of 17 : ChampionHelpers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

library ChampionStorage {
  struct Ticket {
    uint256 startIdx;
    uint256 endIdx;
    string value;
  }

  struct Store {
    uint256 currentEnd;
    Ticket[] values;
  }

  function addTicket(
    Store storage _store,
    uint256 _start,
    uint256 _end,
    string memory _value
  ) internal {
    _store.values.push(Ticket(_start, _end, _value));
    _store.currentEnd = max(_store.currentEnd, _end);
  }

  function findTicketIndex(Store storage _store, uint256 _element) internal view returns (bool, uint256) {
    uint256 len = _store.values.length;

    for (uint256 i = len; i > 0; i--) {
      Ticket memory ticket = _store.values[i - 1];
      if (ticket.startIdx <= _element && ticket.endIdx >= _element) {
        // finding first element match
        return (true, i - 1);
      }
    }
    return (false, 0);
  }

  function getValue(Store storage _store, uint256 _index) internal view returns (string memory) {
    return _store.values[_index].value;
  }

  /**
   * @dev Returns the largest of two numbers.
   */
  function max(uint256 a, uint256 b) internal pure returns (uint256) {
    return a >= b ? a : b;
  }
}

File 7 of 17 : 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 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : 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 15 of 17 : 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 16 of 17 : 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 17 of 17 : 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));
  }
}

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

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":[],"name":"LINK_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_COORDINATOR_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_KEY_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"_phaseId","type":"uint256"},{"internalType":"uint256","name":"_startIndex","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"createPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseId","type":"uint256"}],"name":"createRandomSeed","outputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseId","type":"uint256"},{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"","type":"uint256"}],"name":"phases","outputs":[{"internalType":"bool","name":"seeded","type":"bool"},{"internalType":"uint256","name":"seedNumber","type":"uint256"},{"internalType":"uint256","name":"boundary","type":"uint256"},{"components":[{"internalType":"uint256","name":"START_INDEX","type":"uint256"},{"internalType":"uint256","name":"TOTAL_SUPPLY","type":"uint256"}],"internalType":"struct TRVCToken.PhaseConfig","name":"config","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rangeTickets","outputs":[{"internalType":"uint256","name":"currentEnd","type":"uint256"}],"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":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setDefaultBaseURI","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":"bool","name":"_status","type":"bool"}],"name":"toggleTrading","outputs":[],"stateMutability":"nonpayable","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":"bytes32","name":"","type":"bytes32"}],"name":"vrfRequests","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLink","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604080518082018252601681527f54686552656456696c6c6167654368616d70696f6e73000000000000000000006020808301918252835180850190945260048452635452564360e01b908401528151733d2341adb2d31f1c5530cdc622016af293177ae09373b0897686c545045afc77cf20ec7a532e3120e0f1939290916200009f91600091620001a5565b508051620000b5906001906020840190620001a5565b5050506001600160a01b0391821660a05216608052620000d53362000153565b6001600052600e6020526113887fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be95820b556117707fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be95820c8190557fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582095562000288565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b3906200024b565b90600052602060002090601f016020900481019282620001d7576000855562000222565b82601f10620001f257805160ff191683800117855562000222565b8280016001018555821562000222579182015b828111156200022257825182559160200191906001019062000205565b506200023092915062000234565b5090565b5b8082111562000230576000815560010162000235565b600181811c908216806200026057607f821691505b602082108114156200028257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051612d14620002ca600039600081816110d40152611a02015260008181610fa401528181611045015281816112c901526119d30152612d146000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80636352211e11610125578063a22cb465116100ad578063da06a5f01161007c578063da06a5f0146104b5578063dec04e5f146104dc578063e985e9c5146104fc578063ed08d8eb14610538578063f2fde38b1461055357600080fd5b8063a22cb46514610469578063b88d4fde1461047c578063bdd629651461048f578063c87b56dd146104a257600080fd5b80638da5cb5b116100f45780638da5cb5b1461041a5780638dc654a21461042b57806394985ddd1461043357806395d89b411461044657806398c0f6d11461044e57600080fd5b80636352211e146103d957806370a08231146103ec578063715018a6146103ff5780638628b3091461040757600080fd5b806325e09d95116101a85780632f745c59116101775780632f745c59146103855780633ccfd60b1461039857806342842e0e146103a05780634592c43d146103b35780634f6ccce7146103c657600080fd5b806325e09d95146102d857806326560be7146102eb5780632ae9ec18146102fe5780632e37eef61461030857600080fd5b8063095ea7b3116101e4578063095ea7b31461029357806318160ddd146102a65780631c9c7c9c146102b857806323b872dd146102c557600080fd5b806301e669721461021657806301ffc9a71461022b57806306fdde0314610253578063081812fc14610268575b600080fd5b610229610224366004612504565b610566565b005b61023e61023936600461255c565b6105aa565b60405190151581526020015b60405180910390f35b61025b6105d5565b60405161024a91906125d1565b61027b6102763660046125e4565b610667565b6040516001600160a01b03909116815260200161024a565b6102296102a1366004612619565b6106fc565b6008545b60405190815260200161024a565b6102aa655af3107a400081565b6102296102d3366004612643565b61080d565b6102296102e636600461267f565b61083e565b6102296102f93660046126e0565b6108f6565b600f546102aa9081565b6103576103163660046125e4565b600e602090815260009182526040918290208054600182015460028301548551808701909652600484015486526005909301549385019390935260ff169284565b604080519415158552602080860194909452840191909152805160608401520151608082015260a00161024a565b6102aa610393366004612619565b61093e565b6102296109d4565b6102296103ae366004612643565b610a31565b6102296103c13660046126fd565b610a4c565b6102aa6103d43660046125e4565b610b2d565b61027b6103e73660046125e4565b610bc0565b6102aa6103fa366004612729565b610c37565b610229610cbe565b610229610415366004612744565b610cf4565b600b546001600160a01b031661027b565b610229610f62565b6102296104413660046127c3565b6110c9565b61025b611179565b61027b733d2341adb2d31f1c5530cdc622016af293177ae081565b6102296104773660046127e5565b611188565b61022961048a366004612832565b61124d565b6102aa61049d3660046125e4565b61127f565b61025b6104b03660046125e4565b6113d2565b6102aa7ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da81565b6102aa6104ea3660046125e4565b600d6020526000908152604090205481565b61023e61050a36600461290e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61027b73b0897686c545045afc77cf20ec7a532e3120e0f181565b610229610561366004612729565b6114c7565b600b546001600160a01b031633146105995760405162461bcd60e51b815260040161059090612941565b60405180910390fd5b6105a5600c83836123b5565b505050565b60006001600160e01b0319821663780e9d6360e01b14806105cf57506105cf82611562565b92915050565b6060600080546105e490612976565b80601f016020809104026020016040519081016040528092919081815260200182805461061090612976565b801561065d5780601f106106325761010080835404028352916020019161065d565b820191906000526020600020905b81548152906001019060200180831161064057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106e05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610590565b506000908152600460205260409020546001600160a01b031690565b600061070782610bc0565b9050806001600160a01b0316836001600160a01b031614156107755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610590565b336001600160a01b03821614806107915750610791813361050a565b6108035760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610590565b6105a583836115b2565b6108173382611620565b6108335760405162461bcd60e51b8152600401610590906129b1565b6105a5838383611717565b600b546001600160a01b031633146108685760405162461bcd60e51b815260040161059090612941565b838310156108a95760405162461bcd60e51b815260206004820152600e60248201526d24b7383aba1034b73b30b634b21760911b6044820152606401610590565b6108f0848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600f9594939250506118c29050565b50505050565b600b546001600160a01b031633146109205760405162461bcd60e51b815260040161059090612941565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600061094983610c37565b82106109ab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610590565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b031633146109fe5760405162461bcd60e51b815260040161059090612941565b6040514790339082156108fc029083906000818181858888f19350505050158015610a2d573d6000803e3d6000fd5b5050565b6105a58383836040518060200160405280600081525061124d565b600b546001600160a01b03163314610a765760405162461bcd60e51b815260040161059090612941565b6000838152600e60205260409020600581015460029091015414610acd5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481a5cdcdd595960921b6044820152606401610590565b611388821015610b095760405162461bcd60e51b815260206004820152600760248201526604f7665726c61760cc1b6044820152606401610590565b6000928352600e602052604090922060048101919091556005810182905560020155565b6000610b3860085490565b8210610b9b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610590565b60088281548110610bae57610bae612a02565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610590565b60006001600160a01b038216610ca25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610590565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610ce85760405162461bcd60e51b815260040161059090612941565b610cf26000611930565b565b600b546001600160a01b03163314610d1e5760405162461bcd60e51b815260040161059090612941565b6000838152600e60205260409020805460ff16610d6d5760405162461bcd60e51b815260206004820152600d60248201526c1399595908159491881cd95959609a1b6044820152606401610590565b6002810154821115610db05760405162461bcd60e51b815260206004820152600c60248201526b13dd5d081bd988189bdd5b9960a21b6044820152606401610590565b60005b82811015610f5b576000848483818110610dcf57610dcf612a02565b9050602002016020810190610de49190612729565b9050600083600201548460010154428486610dfe60085490565b6040805160208101969096528501939093526bffffffffffffffffffffffff19606092831b811683860152607485019190915260948401929092524360b484015230901b1660d482015260e8016040516020818303038152906040528051906020012060001c610e6e9190612a2e565b610e79906001612a58565b6004850154600082815260038701602052604081205492935091610ea757610ea2600184612a70565b610ec4565b6000838152600387016020526040902054610ec490600190612a70565b610ece9190612a58565b60028601546000908152600387016020526040902054909150610ef5578460020154610f0c565b600285015460009081526003860160205260409020545b600083815260038701602052604081209190915560028601805460019290610f35908490612a70565b90915550610f4590508382611982565b5050508080610f5390612a87565b915050610db3565b5050505050565b600b546001600160a01b03163314610f8c5760405162461bcd60e51b815260040161059090612941565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610fee57600080fd5b505afa158015611002573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110269190612aa2565b60405163a9059cbb60e01b8152336004820152602481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2d9190612abb565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146111415760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610590565b6000918252600d6020908152604080842080548552600e909252808420805460ff191660019081179091559154845290922090910155565b6060600180546105e490612976565b6001600160a01b0382163314156111e15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610590565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112573383611620565b6112735760405162461bcd60e51b8152600401610590906129b1565b6108f08484848461199c565b600b546000906001600160a01b031633146112ac5760405162461bcd60e51b815260040161059090612941565b6040516370a0823160e01b8152306004820152655af3107a4000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561131357600080fd5b505afa158015611327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134b9190612aa2565b101561138c5760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b4102624a7259760811b6044820152606401610590565b6113bc7ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da655af3107a40006119cf565b6000818152600d60205260409020929092555090565b6000818152600260205260409020546060906001600160a01b03166114395760405162461bcd60e51b815260206004820181905260248201527f55524920717565727920666f72206e6f6e206578697374656e7420746f6b656e6044820152606401610590565b600080611447600f85611b5a565b915091508161148457600c61145b85611ca9565b60405160200161146c929190612af4565b60405160208183030381529060405292505050919050565b6000611491600f83611da7565b90508061149d86611ca9565b6040516020016114ae929190612b9b565b6040516020818303038152906040529350505050919050565b600b546001600160a01b031633146114f15760405162461bcd60e51b815260040161059090612941565b6001600160a01b0381166115565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610590565b61155f81611930565b50565b60006001600160e01b031982166380ac58cd60e01b148061159357506001600160e01b03198216635b5e139f60e01b145b806105cf57506301ffc9a760e01b6001600160e01b03198316146105cf565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115e782610bc0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610590565b60006116a483610bc0565b9050806001600160a01b0316846001600160a01b031614806116df5750836001600160a01b03166116d484610667565b6001600160a01b0316145b8061170f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661172a82610bc0565b6001600160a01b0316146117925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610590565b6001600160a01b0382166117f45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610590565b6117ff838383611e60565b61180a6000826115b2565b6001600160a01b0383166000908152600360205260408120805460019290611833908490612a70565b90915550506001600160a01b0382166000908152600360205260408120805460019290611861908490612a58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60408051606081018252848152602080820185815292820184815260018089018054808301825560009182529084902085516003909202019081559451908501555180519293926119199260028501920190612439565b50508454611928915083611ec6565b909355505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a2d828260405180602001604052806000815250611edf565b6119a7848484611717565b6119b384848484611f12565b6108f05760405162461bcd60e51b815260040161059090612bca565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611a3f929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611a6c93929190612c1c565b602060405180830381600087803b158015611a8657600080fd5b505af1158015611a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abe9190612abb565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611b1a906001612a58565b6000858152600a602052604090205561170f8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60018201546000908190805b8015611c9857600086600101600183611b7f9190612a70565b81548110611b8f57611b8f612a02565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282018054611bcc90612976565b80601f0160208091040260200160405190810160405280929190818152602001828054611bf890612976565b8015611c455780601f10611c1a57610100808354040283529160200191611c45565b820191906000526020600020905b815481529060010190602001808311611c2857829003601f168201915b505050505081525050905085816000015111158015611c68575085816020015110155b15611c85576001611c798184612a70565b94509450505050611ca2565b5080611c9081612c43565b915050611b66565b5060008092509250505b9250929050565b606081611ccd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cf75780611ce181612a87565b9150611cf09050600a83612c5a565b9150611cd1565b60008167ffffffffffffffff811115611d1257611d1261281c565b6040519080825280601f01601f191660200182016040528015611d3c576020820181803683370190505b5090505b841561170f57611d51600183612a70565b9150611d5e600a86612a2e565b611d69906030612a58565b60f81b818381518110611d7e57611d7e612a02565b60200101906001600160f81b031916908160001a905350611da0600a86612c5a565b9450611d40565b6060826001018281548110611dbe57611dbe612a02565b90600052602060002090600302016002018054611dda90612976565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0690612976565b8015611e535780601f10611e2857610100808354040283529160200191611e53565b820191906000526020600020905b815481529060010190602001808311611e3657829003601f168201915b5050505050905092915050565b6001600160a01b0383161580611e805750600b54600160a01b900460ff16155b611ebb5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610590565b6105a583838361201f565b600081831015611ed65781611ed8565b825b9392505050565b611ee983836120d7565b611ef66000848484611f12565b6105a55760405162461bcd60e51b815260040161059090612bca565b60006001600160a01b0384163b1561201457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f56903390899088908890600401612c6e565b602060405180830381600087803b158015611f7057600080fd5b505af1925050508015611fa0575060408051601f3d908101601f19168201909252611f9d91810190612cab565b60015b611ffa573d808015611fce576040519150601f19603f3d011682016040523d82523d6000602084013e611fd3565b606091505b508051611ff25760405162461bcd60e51b815260040161059090612bca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061170f565b506001949350505050565b6001600160a01b03831661207a5761207581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61209d565b816001600160a01b0316836001600160a01b03161461209d5761209d8382612225565b6001600160a01b0382166120b4576105a5816122c2565b826001600160a01b0316826001600160a01b0316146105a5576105a58282612371565b6001600160a01b03821661212d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610590565b6000818152600260205260409020546001600160a01b0316156121925760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610590565b61219e60008383611e60565b6001600160a01b03821660009081526003602052604081208054600192906121c7908490612a58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161223284610c37565b61223c9190612a70565b60008381526007602052604090205490915080821461228f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906122d490600190612a70565b600083815260096020526040812054600880549394509092849081106122fc576122fc612a02565b90600052602060002001549050806008838154811061231d5761231d612a02565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061235557612355612cc8565b6001900381819060005260206000200160009055905550505050565b600061237c83610c37565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546123c190612976565b90600052602060002090601f0160209004810192826123e35760008555612429565b82601f106123fc5782800160ff19823516178555612429565b82800160010185558215612429579182015b8281111561242957823582559160200191906001019061240e565b506124359291506124ad565b5090565b82805461244590612976565b90600052602060002090601f0160209004810192826124675760008555612429565b82601f1061248057805160ff1916838001178555612429565b82800160010185558215612429579182015b82811115612429578251825591602001919060010190612492565b5b8082111561243557600081556001016124ae565b60008083601f8401126124d457600080fd5b50813567ffffffffffffffff8111156124ec57600080fd5b602083019150836020828501011115611ca257600080fd5b6000806020838503121561251757600080fd5b823567ffffffffffffffff81111561252e57600080fd5b61253a858286016124c2565b90969095509350505050565b6001600160e01b03198116811461155f57600080fd5b60006020828403121561256e57600080fd5b8135611ed881612546565b60005b8381101561259457818101518382015260200161257c565b838111156108f05750506000910152565b600081518084526125bd816020860160208601612579565b601f01601f19169290920160200192915050565b602081526000611ed860208301846125a5565b6000602082840312156125f657600080fd5b5035919050565b80356001600160a01b038116811461261457600080fd5b919050565b6000806040838503121561262c57600080fd5b612635836125fd565b946020939093013593505050565b60008060006060848603121561265857600080fd5b612661846125fd565b925061266f602085016125fd565b9150604084013590509250925092565b6000806000806060858703121561269557600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156126ba57600080fd5b6126c6878288016124c2565b95989497509550505050565b801515811461155f57600080fd5b6000602082840312156126f257600080fd5b8135611ed8816126d2565b60008060006060848603121561271257600080fd5b505081359360208301359350604090920135919050565b60006020828403121561273b57600080fd5b611ed8826125fd565b60008060006040848603121561275957600080fd5b83359250602084013567ffffffffffffffff8082111561277857600080fd5b818601915086601f83011261278c57600080fd5b81358181111561279b57600080fd5b8760208260051b85010111156127b057600080fd5b6020830194508093505050509250925092565b600080604083850312156127d657600080fd5b50508035926020909101359150565b600080604083850312156127f857600080fd5b612801836125fd565b91506020830135612811816126d2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561284857600080fd5b612851856125fd565b935061285f602086016125fd565b925060408501359150606085013567ffffffffffffffff8082111561288357600080fd5b818701915087601f83011261289757600080fd5b8135818111156128a9576128a961281c565b604051601f8201601f19908116603f011681019083821181831017156128d1576128d161281c565b816040528281528a60208487010111156128ea57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561292157600080fd5b61292a836125fd565b9150612938602084016125fd565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061298a57607f821691505b602082108114156129ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612a3d57612a3d612a18565b500690565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a6b57612a6b612a42565b500190565b600082821015612a8257612a82612a42565b500390565b6000600019821415612a9b57612a9b612a42565b5060010190565b600060208284031215612ab457600080fd5b5051919050565b600060208284031215612acd57600080fd5b8151611ed8816126d2565b60008151612aea818560208601612579565b9290920192915050565b600080845481600182811c915080831680612b1057607f831692505b6020808410821415612b3057634e487b7160e01b86526022600452602486fd5b818015612b445760018114612b5557612b82565b60ff19861689528489019650612b82565b60008b81526020902060005b86811015612b7a5781548b820152908501908301612b61565b505084890196505b505050505050612b928185612ad8565b95945050505050565b60008351612bad818460208801612579565b835190830190612bc1818360208801612579565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60018060a01b0384168152826020820152606060408201526000612b9260608301846125a5565b600081612c5257612c52612a42565b506000190190565b600082612c6957612c69612a18565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ca1908301846125a5565b9695505050505050565b600060208284031215612cbd57600080fd5b8151611ed881612546565b634e487b7160e01b600052603160045260246000fdfea26469706673582212204f7179445e819622745d02fa384aae83bcd55649aee7b1457690bfd3ec7ca44d64736f6c63430008090033

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.