ETH Price: $3,319.69 (+1.84%)
Gas: 3 Gwei

Contract

0x44D26D3Ba60DF9E9737399a6ECb9781d7122a752
 

Overview

ETH Balance

9.8 ETH

Eth Value

$32,532.95 (@ $3,319.69/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...196246302024-04-10 10:27:23110 days ago1712744843IN
0x44D26D3B...d7122a752
0 ETH0.0008630718.72375315
Set Approval For...153432032022-08-15 1:38:51714 days ago1660527531IN
0x44D26D3B...d7122a752
0 ETH0.0002919712.03159549
Set Approval For...142232712022-02-17 11:05:05893 days ago1645095905IN
0x44D26D3B...d7122a752
0 ETH0.0007967532.83287727
Set Approval For...140895462022-01-27 19:18:00914 days ago1643311080IN
0x44D26D3B...d7122a752
0 ETH0.00636425137.81701699
Set Approval For...139889132022-01-12 5:42:28929 days ago1641966148IN
0x44D26D3B...d7122a752
0 ETH0.00672489145.62661312
Set Approval For...139805992022-01-10 23:03:49930 days ago1641855829IN
0x44D26D3B...d7122a752
0 ETH0.00868046187.97434824
Set Approval For...139158592021-12-31 22:51:51940 days ago1640991111IN
0x44D26D3B...d7122a752
0 ETH0.0034378574.44633012
Set Approval For...131501552021-09-03 2:48:591060 days ago1630637339IN
0x44D26D3B...d7122a752
0 ETH0.0036956180.02811314
Set Approval For...131259902021-08-30 9:11:221064 days ago1630314682IN
0x44D26D3B...d7122a752
0 ETH0.0027972860.57476761
Set Approval For...131208822021-08-29 14:22:041065 days ago1630246924IN
0x44D26D3B...d7122a752
0 ETH0.0024887853.89420373
Set Approval For...131025862021-08-26 18:16:321068 days ago1630001792IN
0x44D26D3B...d7122a752
0 ETH0.0054573118.17713
Set Approval For...130994112021-08-26 6:39:501068 days ago1629959990IN
0x44D26D3B...d7122a752
0 ETH0.0039921486.44941899
Mint130865912021-08-24 7:05:521070 days ago1629788752IN
0x44D26D3B...d7122a752
0.07 ETH0.001275353.84205872
Toggle Sale130865912021-08-24 7:05:521070 days ago1629788752IN
0x44D26D3B...d7122a752
0 ETH0.0017007763.18357292
Withdraw130865812021-08-24 7:02:591070 days ago1629788579IN
0x44D26D3B...d7122a752
0 ETH0.0115019170
Mint130864932021-08-24 6:46:431070 days ago1629787603IN
0x44D26D3B...d7122a752
0.07 ETH0.0088436157.91496959
Mint130864902021-08-24 6:45:211070 days ago1629787521IN
0x44D26D3B...d7122a752
0.07 ETH0.0075310949.31952717
Mint130864852021-08-24 6:44:131070 days ago1629787453IN
0x44D26D3B...d7122a752
0.07 ETH0.0072600147.54526657
Mint130864812021-08-24 6:43:321070 days ago1629787412IN
0x44D26D3B...d7122a752
0.07 ETH0.007711650.50269005
Mint130864792021-08-24 6:42:591070 days ago1629787379IN
0x44D26D3B...d7122a752
0.07 ETH0.00742748.63791318
Mint130864722021-08-24 6:41:361070 days ago1629787296IN
0x44D26D3B...d7122a752
0.07 ETH0.0076405650.03742539
Mint130864532021-08-24 6:37:521070 days ago1629787072IN
0x44D26D3B...d7122a752
0.07 ETH0.0086399356.58219051
Mint130864452021-08-24 6:35:321070 days ago1629786932IN
0x44D26D3B...d7122a752
0.14 ETH0.0145317154.34448943
Mint130864302021-08-24 6:32:031070 days ago1629786723IN
0x44D26D3B...d7122a752
0.07 ETH0.0087403557.23989159
Mint130864092021-08-24 6:28:021070 days ago1629786482IN
0x44D26D3B...d7122a752
0.07 ETH0.0081153553.14680587
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
130865812021-08-24 7:02:591070 days ago1629788579
0x44D26D3B...d7122a752
9.8 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HogGang

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 19 : HogGang.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@chainlink/contracts/src/v0.8/VRFConsumerBase.sol';

// Rinkeby
// VRFConsumerBase(
//     0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B,
//     0x01BE23585060835E02B77ef475b0Cc51aA1e0709
// )
// _keyHash = 0x2ed0feb3e7fd2022120aa84fab1945545a9f2ffc9076fd6156fa96eaff4c1311;
// _fee = 1e17;

contract HogGang is
    Ownable,
    ERC721,
    ERC721Enumerable,
    ERC721Burnable,
    VRFConsumerBase,
    IERC2981
{
    using Strings for uint256;

    string private _ipfsURI;
    bytes32 private _requestId;
    address payable private _payout;
    uint256 private constant FEE = 2e18;
    bytes32 private constant KEY_HASH =
        0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;

    string public constant PROVENANCE =
        '2974f603bb107189a312694b92c9880d40cc92f3c8796d67443de17b1cf3068f'; // IPFS Hash as SHA256
    uint256 public constant PRICE = 7e16;
    uint256 public constant MAX_PURCHASE = 10;
    uint256 public revealAmount;
    uint256 public maxSupply;
    uint256 public saleStart;
    uint256 public offset;
    uint256 public limit;

    constructor(
        address payout,
        uint256 _revealAmount,
        uint256 _maxSupply
    )
        ERC721('Hog Gang', 'HOGS')
        VRFConsumerBase(
            0xf0d54349aDdcf704F77AE15b96510dEA15cb7952,
            0x514910771AF9Ca656af840dff83E8264EcF986CA
        )
    {
        _payout = payable(payout);
        revealAmount = _revealAmount;
        maxSupply = _maxSupply;

        for (uint256 i = _maxSupply - 1; i > _maxSupply - 51; i--) {
            _safeMint(msg.sender, i);
        }
    }

    receive() external payable {}

    function mint(uint256 amount) external payable {
        require(saleStart != 0, 'Sale not yet started');
        require(amount > 0, 'Cannot mint zero');
        require(
            limit == 0 || balanceOf(msg.sender) + amount <= limit,
            'Over limit'
        );

        uint256 supply = totalSupply();
        require(supply < maxSupply, 'Sold out');
        require(
            amount <= MAX_PURCHASE && supply + amount <= maxSupply,
            'Mint amount too high'
        );
        require(msg.value >= PRICE * amount, 'Not enough ETH for minting');

        for (uint256 i = supply; i < supply + amount; i++) {
            _safeMint(msg.sender, i);
        }

        if (
            (supply + amount >= revealAmount ||
                block.timestamp - saleStart >= 2 days) && _requestId == 0
        ) {
            _requestId = requestRandomness(KEY_HASH, FEE);
        }
    }

    function reveal() external {
        require(offset == 0, 'Already revealed');
        require(saleStart != 0, 'Sale not yet started');
        require(_requestId == 0, 'Reveal already requested');
        require(
            totalSupply() >= revealAmount - 10 ||
                block.timestamp - saleStart >= 2 days,
            'Sale not over'
        );

        _requestId = requestRandomness(KEY_HASH, FEE);
    }

    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        royaltyAmount = salePrice / 10; // 10%
        receiver = _payout;
    }

    function toggleSale(uint256 limit_) external onlyOwner {
        saleStart = saleStart == 0 ? block.timestamp : 0;
        limit = limit_;
    }

    function setLimit(uint256 limit_) external onlyOwner {
        limit = limit_;
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        require(bytes(_ipfsURI).length == 0, 'baseURI already set');
        _ipfsURI = baseURI;
    }

    function withdraw() external {
        require(address(this).balance > 0, 'No balance');
        (bool sent, ) = _payout.call{
            value: address(this).balance,
            gas: 129_100
        }('');

        require(sent, 'Failed to withdraw');
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory baseURI = _baseURI();
        if (offset == 0 || bytes(baseURI).length == 0) {
            return 'ipfs://QmPvBJbxzHmZ8fjrfa1T4MeuTzmf9e7neRDVVxFs6bpcAY';
        } else {
            uint256 lastId = maxSupply - 1;
            uint256 hogId = tokenId == lastId
                ? tokenId
                : (tokenId + offset) % (lastId);
            return string(abi.encodePacked(baseURI, hogId.toString(), '.json'));
        }
    }

    function _baseURI() internal view override returns (string memory) {
        return _ipfsURI;
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness)
        internal
        override
    {
        require(_requestId == requestId, 'Wrong request');
        require(offset == 0, 'Already revealed');

        offset = (randomness % (maxSupply - 1)) + 1;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }
}

File 2 of 19 : 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 19 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 19 : 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 5 of 19 : 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 6 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 7 of 19 : 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 8 of 19 : 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 9 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 19 : 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 11 of 19 : 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 12 of 19 : 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 13 of 19 : 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 14 of 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : 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 18 of 19 : 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 19 of 19 : 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": 999999
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"payout","type":"address"},{"internalType":"uint256","name":"_revealAmount","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"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":"MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"toggleSale","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b50604051620042aa380380620042aa83398101604081905262000034916200090b565b73f0d54349addcf704f77ae15b96510dea15cb795273514910771af9ca656af840dff83e8264ecf986ca60405180604001604052806008815260200167486f672047616e6760c01b81525060405180604001604052806004815260200163484f475360e01b815250620000b6620000b06200017560201b60201c565b62000179565b8151620000cb90600190602085019062000865565b508051620000e190600290602084019062000865565b505050606091821b6001600160601b031990811660a052911b16608052600e80546001600160a01b0319166001600160a01b038516179055600f829055601081905560006200013260018362000a19565b90505b6200014260338362000a19565b8111156200016b57620001563382620001c9565b80620001628162000a33565b91505062000135565b5050505062000acc565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001eb828260405180602001604052806000815250620001ef60201b60201c565b5050565b620001fb83836200026b565b6200020a6000848484620003c1565b620002665760405162461bcd60e51b815260206004820152603260248201526000805160206200428a83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620002c35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016200025d565b6000818152600360205260409020546001600160a01b0316156200032a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200025d565b62000338600083836200052a565b6001600160a01b038216600090815260046020526040812080546001929062000363908490620009fe565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620003e2846001600160a01b03166200054260201b62001ce71760201c565b156200051e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200041c90339089908890889060040162000983565b602060405180830381600087803b1580156200043757600080fd5b505af19250505080156200046a575060408051601f3d908101601f19168201909252620004679181019062000950565b60015b62000503573d8080156200049b576040519150601f19603f3d011682016040523d82523d6000602084013e620004a0565b606091505b508051620004fb5760405162461bcd60e51b815260206004820152603260248201526000805160206200428a83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200025d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000522565b5060015b949350505050565b620002668383836200054860201b62001ced1760201c565b3b151590565b620005608383836200026660201b62000a581760201c565b6001600160a01b038316620005be57620005b881600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b620005e4565b816001600160a01b0316836001600160a01b031614620005e457620005e4838262000624565b6001600160a01b038216620005fe576200026681620006d1565b826001600160a01b0316826001600160a01b03161462000266576200026682826200078b565b600060016200063e84620007dc60201b620011151760201c565b6200064a919062000a19565b6000838152600860205260409020549091508082146200069e576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090620006e59060019062000a19565b6000838152600a60205260408120546009805493945090928490811062000710576200071062000ab6565b90600052602060002001549050806009838154811062000734576200073462000ab6565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806200076f576200076f62000aa0565b6001900381819060005260206000200160009055905550505050565b6000620007a383620007dc60201b620011151760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b038216620008495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016200025d565b506001600160a01b031660009081526004602052604090205490565b828054620008739062000a4d565b90600052602060002090601f016020900481019282620008975760008555620008e2565b82601f10620008b257805160ff1916838001178555620008e2565b82800160010185558215620008e2579182015b82811115620008e2578251825591602001919060010190620008c5565b50620008f0929150620008f4565b5090565b5b80821115620008f05760008155600101620008f5565b6000806000606084860312156200092157600080fd5b83516001600160a01b03811681146200093957600080fd5b602085015160409095015190969495509392505050565b6000602082840312156200096357600080fd5b81516001600160e01b0319811681146200097c57600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620009d25785810182015185820160a001528101620009b4565b82811115620009e557600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000821982111562000a145762000a1462000a8a565b500190565b60008282101562000a2e5762000a2e62000a8a565b500390565b60008162000a455762000a4562000a8a565b506000190190565b600181811c9082168062000a6257607f821691505b6020821081141562000a8457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60805160601c60a05160601c61378b62000aff60003960008181611288015261257301526000612537015261378b6000f3fe6080604052600436106102535760003560e01c80637146bd0811610138578063a4d66daf116100b0578063d55565441161007f578063e72f984311610064578063e72f98431461066d578063e985e9c51461068d578063f2fde38b146106e357600080fd5b8063d555654414610641578063d5abeb011461065757600080fd5b8063a4d66daf146105d5578063ab0bcc41146105eb578063b88d4fde14610601578063c87b56dd1461062157600080fd5b806394985ddd11610107578063a0712d68116100ec578063a0712d681461058d578063a22cb465146105a0578063a475b5dd146105c057600080fd5b806394985ddd1461055857806395d89b411461057857600080fd5b80637146bd08146104e8578063715018a6146104fd5780638d859f3e146105125780638da5cb5b1461052d57600080fd5b80633ccfd60b116101cb57806355f804b31161019a5780636352211e1161017f5780636352211e146104935780636373a6b1146104b357806370a08231146104c857600080fd5b806355f804b31461045d5780636080a8261461047d57600080fd5b80633ccfd60b146103e857806342842e0e146103fd57806342966c681461041d5780634f6ccce71461043d57600080fd5b806318160ddd1161022257806327ea6f2b1161020757806327ea6f2b1461035c5780632a55205a1461037c5780632f745c59146103c857600080fd5b806318160ddd1461031d57806323b872dd1461033c57600080fd5b806301ffc9a71461025f57806306fdde0314610294578063081812fc146102b6578063095ea7b3146102fb57600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a3660046132c4565b610703565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102a961075f565b60405161028b9190613488565b3480156102c257600080fd5b506102d66102d1366004613347565b6107f1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028b565b34801561030757600080fd5b5061031b61031636600461325b565b6108d0565b005b34801561032957600080fd5b506009545b60405190815260200161028b565b34801561034857600080fd5b5061031b61035736600461316c565b610a5d565b34801561036857600080fd5b5061031b610377366004613347565b610aff565b34801561038857600080fd5b5061039c6103973660046132a2565b610b85565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520161028b565b3480156103d457600080fd5b5061032e6103e336600461325b565b610bb6565b3480156103f457600080fd5b5061031b610c85565b34801561040957600080fd5b5061031b61041836600461316c565b610dc2565b34801561042957600080fd5b5061031b610438366004613347565b610ddd565b34801561044957600080fd5b5061032e610458366004613347565b610e7b565b34801561046957600080fd5b5061031b6104783660046132fe565b610f39565b34801561048957600080fd5b5061032e600f5481565b34801561049f57600080fd5b506102d66104ae366004613347565b611047565b3480156104bf57600080fd5b506102a96110f9565b3480156104d457600080fd5b5061032e6104e3366004613117565b611115565b3480156104f457600080fd5b5061032e600a81565b34801561050957600080fd5b5061031b6111e3565b34801561051e57600080fd5b5061032e66f8b0a10e47000081565b34801561053957600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166102d6565b34801561056457600080fd5b5061031b6105733660046132a2565b611270565b34801561058457600080fd5b506102a9611319565b61031b61059b366004613347565b611328565b3480156105ac57600080fd5b5061031b6105bb366004613224565b61169d565b3480156105cc57600080fd5b5061031b6117b4565b3480156105e157600080fd5b5061032e60135481565b3480156105f757600080fd5b5061032e60115481565b34801561060d57600080fd5b5061031b61061c3660046131a8565b6119bd565b34801561062d57600080fd5b506102a961063c366004613347565b611a65565b34801561064d57600080fd5b5061032e60125481565b34801561066357600080fd5b5061032e60105481565b34801561067957600080fd5b5061031b610688366004613347565b611b20565b34801561069957600080fd5b5061027f6106a8366004613139565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156106ef57600080fd5b5061031b6106fe366004613117565b611bba565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610759575061075982611df3565b92915050565b60606001805461076e90613547565b80601f016020809104026020016040519081016040528092919081815260200182805461079a90613547565b80156107e75780601f106107bc576101008083540402835291602001916107e7565b820191906000526020600020905b8154815290600101906020018083116107ca57829003601f168201915b5050505050905090565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff166108a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108db82611047565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161089e565b3373ffffffffffffffffffffffffffffffffffffffff821614806109c257506109c281336106a8565b610a4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161089e565b610a588383611e49565b505050565b610a68335b82611ee9565b610af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b610a58838383612059565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b601355565b600080610b93600a846134b3565b600e5473ffffffffffffffffffffffffffffffffffffffff169590945092505050565b6000610bc183611115565b8210610c4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161089e565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600760209081526040808320938352929052205490565b60004711610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f2062616c616e636500000000000000000000000000000000000000000000604482015260640161089e565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16906201f84c90479084818181858888f193505050503d8060008114610d4f576040519150601f19603f3d011682016040523d82523d6000602084013e610d54565b606091505b5050905080610dbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4661696c656420746f2077697468647261770000000000000000000000000000604482015260640161089e565b50565b610a58838383604051806020016040528060008152506119bd565b610de633610a62565b610e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161089e565b610dbf816122cb565b6000610e8660095490565b8210610f14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161089e565b60098281548110610f2757610f2761366f565b90600052602060002001549050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610fba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b600c8054610fc790613547565b159050611030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6261736555524920616c72656164792073657400000000000000000000000000604482015260640161089e565b805161104390600c906020840190612fc1565b5050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161089e565b60405180606001604052806040815260200161370a6040913981565b600073ffffffffffffffffffffffffffffffffffffffff82166111ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161089e565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff163314611264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b61126e60006123a4565b565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161089e565b6110438282612419565b60606002805461076e90613547565b601154611391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f53616c65206e6f74207965742073746172746564000000000000000000000000604482015260640161089e565b600081116113fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74206d696e74207a65726f00000000000000000000000000000000604482015260640161089e565b601354158061141f57506013548161141233611115565b61141c919061349b565b11155b611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f766572206c696d697400000000000000000000000000000000000000000000604482015260640161089e565b600061149060095490565b905060105481106114fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f536f6c64206f7574000000000000000000000000000000000000000000000000604482015260640161089e565b600a82111580156115195750601054611516838361349b565b11155b61157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d696e7420616d6f756e7420746f6f2068696768000000000000000000000000604482015260640161089e565b6115908266f8b0a10e4700006134c7565b3410156115f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f7420656e6f7567682045544820666f72206d696e74696e67000000000000604482015260640161089e565b805b611605838361349b565b811015611628576116163382612519565b8061162081613595565b9150506115fb565b50600f54611636838361349b565b10158061165357506202a300601154426116509190613504565b10155b801561165f5750600d54155b15611043576116967faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000612533565b600d555050565b73ffffffffffffffffffffffffffffffffffffffff821633141561171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089e565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6012541561181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c72656164792072657665616c656400000000000000000000000000000000604482015260640161089e565b601154611887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f53616c65206e6f74207965742073746172746564000000000000000000000000604482015260640161089e565b600d54156118f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52657665616c20616c7265616479207265717565737465640000000000000000604482015260640161089e565b600a600f546119009190613504565b60095410158061192057506202a3006011544261191d9190613504565b10155b611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f53616c65206e6f74206f76657200000000000000000000000000000000000000604482015260640161089e565b6119b87faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000612533565b600d55565b6119c73383611ee9565b611a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b611a5f848484846126cb565b50505050565b60606000611a7161276e565b905060125460001480611a8357508051155b15611aa85760405180606001604052806035815260200161374a603591399392505050565b60006001601054611ab99190613504565b90506000818514611ae2578160125486611ad3919061349b565b611add91906135ce565b611ae4565b845b905082611af08261277d565b604051602001611b019291906133aa565b6040516020818303038152906040529350505050919050565b50919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ba1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b60115415611bb0576000611bb2565b425b601155601355565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b73ffffffffffffffffffffffffffffffffffffffff8116611cde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089e565b610dbf816123a4565b3b151590565b73ffffffffffffffffffffffffffffffffffffffff8316611d5557611d5081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611d92565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611d9257611d9283826128af565b73ffffffffffffffffffffffffffffffffffffffff8216611db657610a5881612966565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610a5857610a588282612a15565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610759575061075982612a66565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611ea382611047565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16611f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b6000611fa583611047565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061201457508373ffffffffffffffffffffffffffffffffffffffff16611ffc846107f1565b73ffffffffffffffffffffffffffffffffffffffff16145b80612051575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661207982611047565b73ffffffffffffffffffffffffffffffffffffffff161461211c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161089e565b73ffffffffffffffffffffffffffffffffffffffff82166121be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161089e565b6121c9838383612b49565b6121d4600082611e49565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040812080546001929061220a908490613504565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040812080546001929061224590849061349b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006122d682611047565b90506122e481600084612b49565b6122ef600083611e49565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120805460019290612325908490613504565b909155505060008281526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b81600d5414612484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e67207265717565737400000000000000000000000000000000000000604482015260640161089e565b601254156124ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c72656164792072657665616c656400000000000000000000000000000000604482015260640161089e565b60016010546124fd9190613504565b61250790826135ce565b61251290600161349b565b6012555050565b611043828260405180602001604052806000815250612b54565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016125b0929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016125dd9392919061344a565b602060405180830381600087803b1580156125f757600080fd5b505af115801561260b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262f9190613285565b506000838152600b6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261268b90600161349b565b6000858152600b60205260409020556120518482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6126d6848484612059565b6126e284848484612bf7565b611a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b6060600c805461076e90613547565b6060816127bd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127e757806127d181613595565b91506127e09050600a836134b3565b91506127c1565b60008167ffffffffffffffff8111156128025761280261369e565b6040519080825280601f01601f19166020018201604052801561282c576020820181803683370190505b5090505b841561205157612841600183613504565b915061284e600a866135ce565b61285990603061349b565b60f81b81838151811061286e5761286e61366f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128a8600a866134b3565b9450612830565b600060016128bc84611115565b6128c69190613504565b6000838152600860205260409020549091508082146129265773ffffffffffffffffffffffffffffffffffffffff841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b50600091825260086020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600781528383209183525290812055565b60095460009061297890600190613504565b6000838152600a6020526040812054600980549394509092849081106129a0576129a061366f565b9060005260206000200154905080600983815481106129c1576129c161366f565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806129f9576129f9613640565b6001900381819060005260206000200160009055905550505050565b6000612a2083611115565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612af957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061075957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610759565b610a58838383611ced565b612b5e8383612df3565b612b6b6000848484612bf7565b610a58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612deb576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612c6e903390899088908890600401613401565b602060405180830381600087803b158015612c8857600080fd5b505af1925050508015612cd6575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612cd3918101906132e1565b60015b612da0573d808015612d04576040519150601f19603f3d011682016040523d82523d6000602084013e612d09565b606091505b508051612d98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612051565b506001612051565b73ffffffffffffffffffffffffffffffffffffffff8216612e70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089e565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612efc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089e565b612f0860008383612b49565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290612f3e90849061349b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612fcd90613547565b90600052602060002090601f016020900481019282612fef5760008555613035565b82601f1061300857805160ff1916838001178555613035565b82800160010185558215613035579182015b8281111561303557825182559160200191906001019061301a565b50613041929150613045565b5090565b5b808211156130415760008155600101613046565b600067ffffffffffffffff808411156130755761307561369e565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156130bb576130bb61369e565b816040528093508581528686860111156130d457600080fd5b858560208301376000602087830101525050509392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461311257600080fd5b919050565b60006020828403121561312957600080fd5b613132826130ee565b9392505050565b6000806040838503121561314c57600080fd5b613155836130ee565b9150613163602084016130ee565b90509250929050565b60008060006060848603121561318157600080fd5b61318a846130ee565b9250613198602085016130ee565b9150604084013590509250925092565b600080600080608085870312156131be57600080fd5b6131c7856130ee565b93506131d5602086016130ee565b925060408501359150606085013567ffffffffffffffff8111156131f857600080fd5b8501601f8101871361320957600080fd5b6132188782356020840161305a565b91505092959194509250565b6000806040838503121561323757600080fd5b613240836130ee565b91506020830135613250816136cd565b809150509250929050565b6000806040838503121561326e57600080fd5b613277836130ee565b946020939093013593505050565b60006020828403121561329757600080fd5b8151613132816136cd565b600080604083850312156132b557600080fd5b50508035926020909101359150565b6000602082840312156132d657600080fd5b8135613132816136db565b6000602082840312156132f357600080fd5b8151613132816136db565b60006020828403121561331057600080fd5b813567ffffffffffffffff81111561332757600080fd5b8201601f8101841361333857600080fd5b6120518482356020840161305a565b60006020828403121561335957600080fd5b5035919050565b6000815180845261337881602086016020860161351b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600083516133bc81846020880161351b565b8351908301906133d081836020880161351b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526134406080830184613360565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff8416815282602082015260606040820152600061347f6060830184613360565b95945050505050565b6020815260006131326020830184613360565b600082198211156134ae576134ae6135e2565b500190565b6000826134c2576134c2613611565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156134ff576134ff6135e2565b500290565b600082821015613516576135166135e2565b500390565b60005b8381101561353657818101518382015260200161351e565b83811115611a5f5750506000910152565b600181811c9082168061355b57607f821691505b60208210811415611b1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135c7576135c76135e2565b5060010190565b6000826135dd576135dd613611565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114610dbf57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610dbf57600080fdfe32393734663630336262313037313839613331323639346239326339383830643430636339326633633837393664363734343364653137623163663330363866697066733a2f2f516d5076424a62787a486d5a38666a7266613154344d6575547a6d663965376e6552445656784673366270634159a164736f6c6343000807000a4552433732313a207472616e7366657220746f206e6f6e204552433732315265000000000000000000000000129f2771c5244b41dd7abb4c024060b088ac1c1200000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000002710

Deployed Bytecode

0x6080604052600436106102535760003560e01c80637146bd0811610138578063a4d66daf116100b0578063d55565441161007f578063e72f984311610064578063e72f98431461066d578063e985e9c51461068d578063f2fde38b146106e357600080fd5b8063d555654414610641578063d5abeb011461065757600080fd5b8063a4d66daf146105d5578063ab0bcc41146105eb578063b88d4fde14610601578063c87b56dd1461062157600080fd5b806394985ddd11610107578063a0712d68116100ec578063a0712d681461058d578063a22cb465146105a0578063a475b5dd146105c057600080fd5b806394985ddd1461055857806395d89b411461057857600080fd5b80637146bd08146104e8578063715018a6146104fd5780638d859f3e146105125780638da5cb5b1461052d57600080fd5b80633ccfd60b116101cb57806355f804b31161019a5780636352211e1161017f5780636352211e146104935780636373a6b1146104b357806370a08231146104c857600080fd5b806355f804b31461045d5780636080a8261461047d57600080fd5b80633ccfd60b146103e857806342842e0e146103fd57806342966c681461041d5780634f6ccce71461043d57600080fd5b806318160ddd1161022257806327ea6f2b1161020757806327ea6f2b1461035c5780632a55205a1461037c5780632f745c59146103c857600080fd5b806318160ddd1461031d57806323b872dd1461033c57600080fd5b806301ffc9a71461025f57806306fdde0314610294578063081812fc146102b6578063095ea7b3146102fb57600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a3660046132c4565b610703565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102a961075f565b60405161028b9190613488565b3480156102c257600080fd5b506102d66102d1366004613347565b6107f1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028b565b34801561030757600080fd5b5061031b61031636600461325b565b6108d0565b005b34801561032957600080fd5b506009545b60405190815260200161028b565b34801561034857600080fd5b5061031b61035736600461316c565b610a5d565b34801561036857600080fd5b5061031b610377366004613347565b610aff565b34801561038857600080fd5b5061039c6103973660046132a2565b610b85565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520161028b565b3480156103d457600080fd5b5061032e6103e336600461325b565b610bb6565b3480156103f457600080fd5b5061031b610c85565b34801561040957600080fd5b5061031b61041836600461316c565b610dc2565b34801561042957600080fd5b5061031b610438366004613347565b610ddd565b34801561044957600080fd5b5061032e610458366004613347565b610e7b565b34801561046957600080fd5b5061031b6104783660046132fe565b610f39565b34801561048957600080fd5b5061032e600f5481565b34801561049f57600080fd5b506102d66104ae366004613347565b611047565b3480156104bf57600080fd5b506102a96110f9565b3480156104d457600080fd5b5061032e6104e3366004613117565b611115565b3480156104f457600080fd5b5061032e600a81565b34801561050957600080fd5b5061031b6111e3565b34801561051e57600080fd5b5061032e66f8b0a10e47000081565b34801561053957600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166102d6565b34801561056457600080fd5b5061031b6105733660046132a2565b611270565b34801561058457600080fd5b506102a9611319565b61031b61059b366004613347565b611328565b3480156105ac57600080fd5b5061031b6105bb366004613224565b61169d565b3480156105cc57600080fd5b5061031b6117b4565b3480156105e157600080fd5b5061032e60135481565b3480156105f757600080fd5b5061032e60115481565b34801561060d57600080fd5b5061031b61061c3660046131a8565b6119bd565b34801561062d57600080fd5b506102a961063c366004613347565b611a65565b34801561064d57600080fd5b5061032e60125481565b34801561066357600080fd5b5061032e60105481565b34801561067957600080fd5b5061031b610688366004613347565b611b20565b34801561069957600080fd5b5061027f6106a8366004613139565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156106ef57600080fd5b5061031b6106fe366004613117565b611bba565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610759575061075982611df3565b92915050565b60606001805461076e90613547565b80601f016020809104026020016040519081016040528092919081815260200182805461079a90613547565b80156107e75780601f106107bc576101008083540402835291602001916107e7565b820191906000526020600020905b8154815290600101906020018083116107ca57829003601f168201915b5050505050905090565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff166108a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108db82611047565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161089e565b3373ffffffffffffffffffffffffffffffffffffffff821614806109c257506109c281336106a8565b610a4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161089e565b610a588383611e49565b505050565b610a68335b82611ee9565b610af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b610a58838383612059565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b601355565b600080610b93600a846134b3565b600e5473ffffffffffffffffffffffffffffffffffffffff169590945092505050565b6000610bc183611115565b8210610c4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161089e565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600760209081526040808320938352929052205490565b60004711610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f2062616c616e636500000000000000000000000000000000000000000000604482015260640161089e565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16906201f84c90479084818181858888f193505050503d8060008114610d4f576040519150601f19603f3d011682016040523d82523d6000602084013e610d54565b606091505b5050905080610dbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4661696c656420746f2077697468647261770000000000000000000000000000604482015260640161089e565b50565b610a58838383604051806020016040528060008152506119bd565b610de633610a62565b610e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161089e565b610dbf816122cb565b6000610e8660095490565b8210610f14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161089e565b60098281548110610f2757610f2761366f565b90600052602060002001549050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610fba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b600c8054610fc790613547565b159050611030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6261736555524920616c72656164792073657400000000000000000000000000604482015260640161089e565b805161104390600c906020840190612fc1565b5050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161089e565b60405180606001604052806040815260200161370a6040913981565b600073ffffffffffffffffffffffffffffffffffffffff82166111ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161089e565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff163314611264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b61126e60006123a4565b565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952161461130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161089e565b6110438282612419565b60606002805461076e90613547565b601154611391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f53616c65206e6f74207965742073746172746564000000000000000000000000604482015260640161089e565b600081116113fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f74206d696e74207a65726f00000000000000000000000000000000604482015260640161089e565b601354158061141f57506013548161141233611115565b61141c919061349b565b11155b611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f766572206c696d697400000000000000000000000000000000000000000000604482015260640161089e565b600061149060095490565b905060105481106114fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f536f6c64206f7574000000000000000000000000000000000000000000000000604482015260640161089e565b600a82111580156115195750601054611516838361349b565b11155b61157f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d696e7420616d6f756e7420746f6f2068696768000000000000000000000000604482015260640161089e565b6115908266f8b0a10e4700006134c7565b3410156115f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f7420656e6f7567682045544820666f72206d696e74696e67000000000000604482015260640161089e565b805b611605838361349b565b811015611628576116163382612519565b8061162081613595565b9150506115fb565b50600f54611636838361349b565b10158061165357506202a300601154426116509190613504565b10155b801561165f5750600d54155b15611043576116967faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000612533565b600d555050565b73ffffffffffffffffffffffffffffffffffffffff821633141561171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089e565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6012541561181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c72656164792072657665616c656400000000000000000000000000000000604482015260640161089e565b601154611887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f53616c65206e6f74207965742073746172746564000000000000000000000000604482015260640161089e565b600d54156118f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52657665616c20616c7265616479207265717565737465640000000000000000604482015260640161089e565b600a600f546119009190613504565b60095410158061192057506202a3006011544261191d9190613504565b10155b611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f53616c65206e6f74206f76657200000000000000000000000000000000000000604482015260640161089e565b6119b87faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000612533565b600d55565b6119c73383611ee9565b611a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b611a5f848484846126cb565b50505050565b60606000611a7161276e565b905060125460001480611a8357508051155b15611aa85760405180606001604052806035815260200161374a603591399392505050565b60006001601054611ab99190613504565b90506000818514611ae2578160125486611ad3919061349b565b611add91906135ce565b611ae4565b845b905082611af08261277d565b604051602001611b019291906133aa565b6040516020818303038152906040529350505050919050565b50919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ba1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b60115415611bb0576000611bb2565b425b601155601355565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b73ffffffffffffffffffffffffffffffffffffffff8116611cde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089e565b610dbf816123a4565b3b151590565b73ffffffffffffffffffffffffffffffffffffffff8316611d5557611d5081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611d92565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611d9257611d9283826128af565b73ffffffffffffffffffffffffffffffffffffffff8216611db657610a5881612966565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610a5857610a588282612a15565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610759575061075982612a66565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611ea382611047565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16611f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b6000611fa583611047565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061201457508373ffffffffffffffffffffffffffffffffffffffff16611ffc846107f1565b73ffffffffffffffffffffffffffffffffffffffff16145b80612051575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661207982611047565b73ffffffffffffffffffffffffffffffffffffffff161461211c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161089e565b73ffffffffffffffffffffffffffffffffffffffff82166121be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161089e565b6121c9838383612b49565b6121d4600082611e49565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040812080546001929061220a908490613504565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040812080546001929061224590849061349b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006122d682611047565b90506122e481600084612b49565b6122ef600083611e49565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120805460019290612325908490613504565b909155505060008281526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b81600d5414612484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e67207265717565737400000000000000000000000000000000000000604482015260640161089e565b601254156124ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c72656164792072657665616c656400000000000000000000000000000000604482015260640161089e565b60016010546124fd9190613504565b61250790826135ce565b61251290600161349b565b6012555050565b611043828260405180602001604052806000815250612b54565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016125b0929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016125dd9392919061344a565b602060405180830381600087803b1580156125f757600080fd5b505af115801561260b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262f9190613285565b506000838152600b6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261268b90600161349b565b6000858152600b60205260409020556120518482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6126d6848484612059565b6126e284848484612bf7565b611a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b6060600c805461076e90613547565b6060816127bd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127e757806127d181613595565b91506127e09050600a836134b3565b91506127c1565b60008167ffffffffffffffff8111156128025761280261369e565b6040519080825280601f01601f19166020018201604052801561282c576020820181803683370190505b5090505b841561205157612841600183613504565b915061284e600a866135ce565b61285990603061349b565b60f81b81838151811061286e5761286e61366f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128a8600a866134b3565b9450612830565b600060016128bc84611115565b6128c69190613504565b6000838152600860205260409020549091508082146129265773ffffffffffffffffffffffffffffffffffffffff841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b50600091825260086020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600781528383209183525290812055565b60095460009061297890600190613504565b6000838152600a6020526040812054600980549394509092849081106129a0576129a061366f565b9060005260206000200154905080600983815481106129c1576129c161366f565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806129f9576129f9613640565b6001900381819060005260206000200160009055905550505050565b6000612a2083611115565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612af957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061075957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610759565b610a58838383611ced565b612b5e8383612df3565b612b6b6000848484612bf7565b610a58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612deb576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612c6e903390899088908890600401613401565b602060405180830381600087803b158015612c8857600080fd5b505af1925050508015612cd6575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612cd3918101906132e1565b60015b612da0573d808015612d04576040519150601f19603f3d011682016040523d82523d6000602084013e612d09565b606091505b508051612d98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612051565b506001612051565b73ffffffffffffffffffffffffffffffffffffffff8216612e70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089e565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612efc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089e565b612f0860008383612b49565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290612f3e90849061349b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612fcd90613547565b90600052602060002090601f016020900481019282612fef5760008555613035565b82601f1061300857805160ff1916838001178555613035565b82800160010185558215613035579182015b8281111561303557825182559160200191906001019061301a565b50613041929150613045565b5090565b5b808211156130415760008155600101613046565b600067ffffffffffffffff808411156130755761307561369e565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156130bb576130bb61369e565b816040528093508581528686860111156130d457600080fd5b858560208301376000602087830101525050509392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461311257600080fd5b919050565b60006020828403121561312957600080fd5b613132826130ee565b9392505050565b6000806040838503121561314c57600080fd5b613155836130ee565b9150613163602084016130ee565b90509250929050565b60008060006060848603121561318157600080fd5b61318a846130ee565b9250613198602085016130ee565b9150604084013590509250925092565b600080600080608085870312156131be57600080fd5b6131c7856130ee565b93506131d5602086016130ee565b925060408501359150606085013567ffffffffffffffff8111156131f857600080fd5b8501601f8101871361320957600080fd5b6132188782356020840161305a565b91505092959194509250565b6000806040838503121561323757600080fd5b613240836130ee565b91506020830135613250816136cd565b809150509250929050565b6000806040838503121561326e57600080fd5b613277836130ee565b946020939093013593505050565b60006020828403121561329757600080fd5b8151613132816136cd565b600080604083850312156132b557600080fd5b50508035926020909101359150565b6000602082840312156132d657600080fd5b8135613132816136db565b6000602082840312156132f357600080fd5b8151613132816136db565b60006020828403121561331057600080fd5b813567ffffffffffffffff81111561332757600080fd5b8201601f8101841361333857600080fd5b6120518482356020840161305a565b60006020828403121561335957600080fd5b5035919050565b6000815180845261337881602086016020860161351b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600083516133bc81846020880161351b565b8351908301906133d081836020880161351b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526134406080830184613360565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff8416815282602082015260606040820152600061347f6060830184613360565b95945050505050565b6020815260006131326020830184613360565b600082198211156134ae576134ae6135e2565b500190565b6000826134c2576134c2613611565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156134ff576134ff6135e2565b500290565b600082821015613516576135166135e2565b500390565b60005b8381101561353657818101518382015260200161351e565b83811115611a5f5750506000910152565b600181811c9082168061355b57607f821691505b60208210811415611b1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135c7576135c76135e2565b5060010190565b6000826135dd576135dd613611565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114610dbf57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610dbf57600080fdfe32393734663630336262313037313839613331323639346239326339383830643430636339326633633837393664363734343364653137623163663330363866697066733a2f2f516d5076424a62787a486d5a38666a7266613154344d6575547a6d663965376e6552445656784673366270634159a164736f6c6343000807000a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000129f2771c5244b41dd7abb4c024060b088ac1c1200000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000002710

-----Decoded View---------------
Arg [0] : payout (address): 0x129f2771C5244B41dD7AbB4C024060B088AC1c12
Arg [1] : _revealAmount (uint256): 5000
Arg [2] : _maxSupply (uint256): 10000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000129f2771c5244b41dd7abb4c024060b088ac1c12
Arg [1] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.