ETH Price: $3,382.59 (+1.05%)

Contract

0x0fdE4CeDe2d131F5eFb6670E79c2721e82688CEa
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...188985062023-12-30 13:04:11359 days ago1703941451IN
0x0fdE4CeD...e82688CEa
0 ETH0.0007620816.31660681
Safe Transfer Fr...167423752023-03-02 17:32:59662 days ago1677778379IN
0x0fdE4CeD...e82688CEa
0 ETH0.0027173340.35727621
Set Approval For...162704392022-12-26 17:32:23728 days ago1672075943IN
0x0fdE4CeD...e82688CEa
0 ETH0.0006823714.61001177
Transfer From162000172022-12-16 21:43:59738 days ago1671227039IN
0x0fdE4CeD...e82688CEa
0 ETH0.0008379214.26592894
Set Approval For...156637982022-10-02 23:38:11813 days ago1664753891IN
0x0fdE4CeD...e82688CEa
0 ETH0.000223378.35545714
Set Approval For...156637972022-10-02 23:37:59813 days ago1664753879IN
0x0fdE4CeD...e82688CEa
0 ETH0.000414478.88780136
Set Approval For...153058982022-08-09 4:31:58867 days ago1660019518IN
0x0fdE4CeD...e82688CEa
0 ETH0.0006382113.68566373
Transfer From152512592022-07-31 16:14:22876 days ago1659284062IN
0x0fdE4CeD...e82688CEa
0 ETH0.0009145715.57102684
Set Approval For...151589902022-07-17 8:03:23890 days ago1658045003IN
0x0fdE4CeD...e82688CEa
0 ETH0.0002769711.16555574
Set Approval For...151230242022-07-11 18:42:25896 days ago1657564945IN
0x0fdE4CeD...e82688CEa
0 ETH0.0012597426.96495637
Set Approval For...150783682022-07-04 21:01:08903 days ago1656968468IN
0x0fdE4CeD...e82688CEa
0 ETH0.0008753918.77156165
Set Approval For...150560872022-07-01 10:28:29906 days ago1656671309IN
0x0fdE4CeD...e82688CEa
0 ETH0.0005762912.35780817
Set Approval For...150438172022-06-29 7:04:47908 days ago1656486287IN
0x0fdE4CeD...e82688CEa
0 ETH0.0016560935.44876315
Set Base Uri150406672022-06-28 16:56:32909 days ago1656435392IN
0x0fdE4CeD...e82688CEa
0 ETH0.0026586166.89174188
Add Uri150406592022-06-28 16:54:38909 days ago1656435278IN
0x0fdE4CeD...e82688CEa
0 ETH0.0085481677.44239701
Withdraw150252212022-06-25 19:35:19912 days ago1656185719IN
0x0fdE4CeD...e82688CEa
0 ETH0.0035978238.67293854
Set Approval For...149853962022-06-18 14:07:51919 days ago1655561271IN
0x0fdE4CeD...e82688CEa
0 ETH0.0009791120.9957291
Set Base Uri149826792022-06-18 2:52:52920 days ago1655520772IN
0x0fdE4CeD...e82688CEa
0 ETH0.0007292518.34826037
Add Uri149826782022-06-18 2:52:37920 days ago1655520757IN
0x0fdE4CeD...e82688CEa
0 ETH0.0020510718.58181091
Set Base Uri149826492022-06-18 2:45:28920 days ago1655520328IN
0x0fdE4CeD...e82688CEa
0 ETH0.0010452926.29994775
Add Uri149826472022-06-18 2:44:44920 days ago1655520284IN
0x0fdE4CeD...e82688CEa
0 ETH0.0025717123.29853156
Set Approval For...149463512022-06-11 20:50:14926 days ago1654980614IN
0x0fdE4CeD...e82688CEa
0 ETH0.0008476518.14414662
Set Base Uri149409452022-06-10 22:43:14927 days ago1654900994IN
0x0fdE4CeD...e82688CEa
0 ETH0.0012701931.9586794
Add Uri149409432022-06-10 22:42:59927 days ago1654900979IN
0x0fdE4CeD...e82688CEa
0 ETH0.0035843832.47287423
Set Approval For...149222662022-06-07 18:17:29930 days ago1654625849IN
0x0fdE4CeD...e82688CEa
0 ETH0.0021984788.66971686
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
150252212022-06-25 19:35:19912 days ago1656185719
0x0fdE4CeD...e82688CEa
0.48 ETH
150252212022-06-25 19:35:19912 days ago1656185719
0x0fdE4CeD...e82688CEa
0.36 ETH
150252212022-06-25 19:35:19912 days ago1656185719
0x0fdE4CeD...e82688CEa
0.24 ETH
150252212022-06-25 19:35:19912 days ago1656185719
0x0fdE4CeD...e82688CEa
0.12 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PetRock

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : PetRock.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

// Relevant Libraries
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract PetRock is ERC721, Ownable {
    // Wallets
    address payable public devWallet =
        payable(0xf21df340812629D44264474d478be0215Ea60eb6);
    address payable public founderWallet =
        payable(0xe657861C0FcE19231D34328e699ffB972E048773);
    address payable public communityWallet =
        payable(0x0b4aCc4AbcC2974Ef6500FD2A7c4890c2f51Ac0D);
    address payable public artistWallet =
        payable(0xE6c55F0FB3fD257aB367c9d9Df0F84C00a7Ae4f0);

    // Utils Used
    using Strings for uint256;
    using SafeMath for uint8;
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    // Properties
    bool public publicSale;
    uint256 public mintPrice;
    uint16 public maxAmount;
    uint256 public mintLimit;
    string _chosenUri;
    string[] public uriList;
    bool uriSwitch;
    bytes32 public immutable root =
        0x4699f37b384f7a213e23d6cc5f786edd77db11a90c5307dcc20d218ee6dbc473;

    // Mappings
    mapping(uint256 => string) tokenChoice;
    mapping(address => bool) whitelistClaimed;

    //Modifiers

    // Modifies free mint function to add specific parameters
    modifier mintConfig() {
        _;
        //Makes sure value sent is
        // 1. under the amount needed for 4 rocks
        // 2. that at least one rock can be purchased
        require(
            publicSale == true &&
                msg.value < 0.07 ether &&
                msg.value % 0.02 ether <= 0.02 ether
        );
    }

    // Modifies whitelist free mint function to incorporate MerkleProof
    modifier whitelistConfig(bytes32[] calldata _proof) {
        _;
        // Takes MerkleProof from frontend call
        // Finds leaf by hashing sender address
        // Verifies using the MerkleProof Util
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(_proof, root, leaf),
            "Account is not whitelisted."
        );
    }

    constructor() ERC721("Pet Rock", "ROCK") {
        // Instantiates properties
        mintPrice = 0.02 ether;
        maxAmount = 1600;
        publicSale = false;
        uriSwitch = false;
    }

    Counters.Counter private _tokenIdTracker;

    // Whitelist Free Mint Function
    function freeRock(bytes32[] calldata _proof)
        public
        whitelistConfig(_proof)
    {
        // Checks whitelist has not already been claimed
        require(
            whitelistClaimed[msg.sender] == false,
            "Whitelist has already been claimed."
        );

        // Records claiming for every wallet
        whitelistClaimed[msg.sender] = true;

        // Checks that the number of free rocks is not exceeded
        require(
            (_tokenIdTracker.current().add(2)) < 800,
            "Current Free Mint limit reached."
        );

        for (uint8 counter = 0; counter < 2; counter++) {
            // 1.Mints the NFT to the current tokenID
            // 2. Maps the current tokenChoice to the current URI
            // 3. Adds one to tokenIDtracker
            super._mint(msg.sender, _tokenIdTracker.current());
            tokenChoice[_tokenIdTracker.current()] = _chosenUri;
            _tokenIdTracker.increment();
        }
    }

    // Public Mint Function
    function rock() public payable mintConfig {
        uint256 _amount = 0;
        uint256 _balance = msg.value;

        // Uses the balance sent to generate set number of NFTs
        while (_balance >= 0.02 ether) {
            _balance = _balance.sub(0.02 ether);
            _amount = _amount.add(1);
        }

        // Limits the TokenID
        require(
            (_tokenIdTracker.current().add(_amount)) <= maxAmount,
            "Current Mint Limit Reached. Try minting less."
        );

        // Runs a for loop to continue minting for the set amount asked.
        for (uint8 counter = 0; counter < _amount; counter++) {
            // 1.Mints the NFT to the current tokenID
            // 2. Maps the current tokenChoice to the current URI
            // 3. Adds one to tokenIDtracker
            super._mint(msg.sender, _tokenIdTracker.current());
            tokenChoice[_tokenIdTracker.current()] = _chosenUri;
            _tokenIdTracker.increment();
        }
    }

    // Switches sale to public
    function switchToPublic() public onlyOwner {
        bool current = publicSale;
        publicSale = !current;
    }

    // Allows for PetRock Owner to set mintPrice in ETH
    function setMintPrice(uint256 _price) public onlyOwner {
        mintPrice = _price;
    }

    // Set BaseURI Method
    function setBaseUri(uint256 x) public onlyOwner {
        _chosenUri = uriList[x];
    }

    // 1. Allows for Owner to add a  new URI to URI list
    // 2. Updates URI to the newest URI
    function addUri(string memory _newUri) public onlyOwner {
        uriList.push(_newUri);
        _chosenUri = _newUri;
    }

    // Toggles Uri Switch to allow for art switching
    function toggleUriSwitch() public onlyOwner {
        bool current = uriSwitch;
        uriSwitch = !current;
    }

    // Overrides current BaseUri to show chosenURI
    // Keep in mind chosenURI can be modified using the addUri & setBaseUri methods
    function _baseURI() internal view virtual override returns (string memory) {
        return _chosenUri;
    }

    // Returns the token URI
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        // Checks whether Owner has enabled URI Switching
        if (uriSwitch) {
            // URI Switching enabled by allowing for URI mapped to token to be enabled
            return
                string(
                    abi.encodePacked(
                        tokenChoice[tokenId],
                        Strings.toString(tokenId),
                        ".json"
                    )
                );
        } else {
            return
                // TokenURI returns URI using _chosenURI set by Owner
                string(
                    abi.encodePacked(
                        _chosenUri,
                        Strings.toString(tokenId),
                        ".json"
                    )
                );
        }
    }

    //Allows token owner's to update metadata
    function updateTokenArt(uint256 x, uint256 _tokenId) public {
        require(uriSwitch, "Art switching is not yet available.");
        require(msg.sender == ownerOf(_tokenId));
        tokenChoice[_tokenId] = uriList[x];
    }

    // For withdrawal of balance and distributes it
    function withdraw() public onlyOwner {
        // Requires that the balance is more than 0ETH
        uint256 _balance = address(this).balance;
        require(_balance > 0, "Balance is 0 ETH");
        uint256 _balancePortion = _balance.div(10);

        // Divides the money accordingly
        devWallet.transfer(_balancePortion);
        founderWallet.transfer(_balancePortion.mul(2));
        communityWallet.transfer(_balancePortion.mul(3));

        // Rest of money (OR 40%) is sent to artist wallet
        uint256 _newBalance = address(this).balance;
        artistWallet.transfer(_newBalance);
    }
}

File 2 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 4 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 5 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 7 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 11 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 12 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

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 13 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

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 {
        _setApprovalForAll(_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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"_newUri","type":"string"}],"name":"addUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"founderWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"freeRock","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":"maxAmount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","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":"switchToPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleUriSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"updateTokenArt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uriList","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405273f21df340812629d44264474d478be0215ea60eb6600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073e657861c0fce19231d34328e699ffb972e048773600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550730b4acc4abcc2974ef6500fd2a7c4890c2f51ac0d600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073e6c55f0fb3fd257ab367c9d9df0f84c00a7ae4f0600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f4699f37b384f7a213e23d6cc5f786edd77db11a90c5307dcc20d218ee6dbc47360001b6080908152503480156200018f57600080fd5b506040518060400160405280600881526020017f50657420526f636b0000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f524f434b0000000000000000000000000000000000000000000000000000000081525081600090805190602001906200021492919062000387565b5080600190805190602001906200022d92919062000387565b5050506200025062000244620002b960201b60201c565b620002c160201b60201c565b66470de4df820000600b81905550610640600c60006101000a81548161ffff021916908361ffff1602179055506000600a60146101000a81548160ff0219169083151502179055506000601060006101000a81548160ff0219169083151502179055506200049c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003959062000466565b90600052602060002090601f016020900481019282620003b9576000855562000405565b82601f10620003d457805160ff191683800117855562000405565b8280016001018555821562000405579182015b8281111562000404578251825591602001919060010190620003e7565b5b50905062000414919062000418565b5090565b5b808211156200043357600081600090555060010162000419565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200047f57607f821691505b6020821081141562000496576200049562000437565b5b50919050565b6080516144d0620004bf60003960008181610af80152611af801526144d06000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063b88d4fde116100a0578063e985e9c51161006f578063e985e9c5146106fe578063ebf0c7171461073b578063f2fde38b14610766578063f4a0a5281461078f578063fe3138e6146107b857610204565b8063b88d4fde14610656578063c75748391461067f578063c87b56dd146106aa578063e0ba0de5146106e757610204565b8063996517cf116100e7578063996517cf146105835780639d45d827146105ae578063a22cb465146105d7578063a23d3c3514610600578063a3342fba1461062b57610204565b80638da5cb5b146104eb5780638ea5220f146105165780638fd0aeb21461054157806395d89b411461055857610204565b8063369b95f71161019b5780636352211e1161016a5780636352211e146104255780636817c76c146104625780636da6bad01461048d57806370a0823114610497578063715018a6146104d457610204565b8063369b95f71461037d5780633ccfd60b146103ba57806342842e0e146103d15780635f48f393146103fa57610204565b8063095ea7b3116101d7578063095ea7b3146102d757806323411bf01461030057806323b872dd1461032957806333bc1c5c1461035257610204565b806301ffc9a71461020957806302aeb4ff1461024657806306fdde031461026f578063081812fc1461029a575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612c8f565b6107e1565b60405161023d9190612cd7565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190612d57565b6108c3565b005b34801561027b57600080fd5b50610284610b63565b6040516102919190612e3d565b60405180910390f35b3480156102a657600080fd5b506102c160048036038101906102bc9190612e95565b610bf5565b6040516102ce9190612f03565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190612f4a565b610c7a565b005b34801561030c57600080fd5b5061032760048036038101906103229190612f8a565b610d92565b005b34801561033557600080fd5b50610350600480360381019061034b9190612fca565b610e6e565b005b34801561035e57600080fd5b50610367610ece565b6040516103749190612cd7565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190612e95565b610ee1565b6040516103b19190612e3d565b60405180910390f35b3480156103c657600080fd5b506103cf610f8d565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190612fca565b61123d565b005b34801561040657600080fd5b5061040f61125d565b60405161041c919061303a565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612e95565b611271565b6040516104599190612f03565b60405180910390f35b34801561046e57600080fd5b50610477611323565b6040516104849190613064565b60405180910390f35b610495611329565b005b3480156104a357600080fd5b506104be60048036038101906104b9919061307f565b6114b0565b6040516104cb9190613064565b60405180910390f35b3480156104e057600080fd5b506104e9611568565b005b3480156104f757600080fd5b506105006115f0565b60405161050d9190612f03565b60405180910390f35b34801561052257600080fd5b5061052b61161a565b60405161053891906130cd565b60405180910390f35b34801561054d57600080fd5b50610556611640565b005b34801561056457600080fd5b5061056d6116ee565b60405161057a9190612e3d565b60405180910390f35b34801561058f57600080fd5b50610598611780565b6040516105a59190613064565b60405180910390f35b3480156105ba57600080fd5b506105d560048036038101906105d09190612e95565b611786565b005b3480156105e357600080fd5b506105fe60048036038101906105f99190613114565b61183d565b005b34801561060c57600080fd5b50610615611853565b60405161062291906130cd565b60405180910390f35b34801561063757600080fd5b50610640611879565b60405161064d91906130cd565b60405180910390f35b34801561066257600080fd5b5061067d60048036038101906106789190613284565b61189f565b005b34801561068b57600080fd5b50610694611901565b6040516106a191906130cd565b60405180910390f35b3480156106b657600080fd5b506106d160048036038101906106cc9190612e95565b611927565b6040516106de9190612e3d565b60405180910390f35b3480156106f357600080fd5b506106fc6119b4565b005b34801561070a57600080fd5b5061072560048036038101906107209190613307565b611a62565b6040516107329190612cd7565b60405180910390f35b34801561074757600080fd5b50610750611af6565b60405161075d9190613360565b60405180910390f35b34801561077257600080fd5b5061078d6004803603810190610788919061307f565b611b1a565b005b34801561079b57600080fd5b506107b660048036038101906107b19190612e95565b611c12565b005b3480156107c457600080fd5b506107df60048036038101906107da919061341c565b611c98565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bc57506108bb82611d6a565b5b9050919050565b818160001515601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906134d7565b60405180910390fd5b6001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506103206109d060026109c26013611dd4565b611de290919063ffffffff16565b10610a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0790613543565b60405180910390fd5b60005b60028160ff161015610a8557610a3233610a2d6013611dd4565b611df8565b600e60116000610a426013611dd4565b8152602001908152602001600020908054610a5c90613592565b610a67929190612af3565b50610a726013611fd2565b8080610a7d90613600565b915050610a13565b50600033604051602001610a999190613672565b604051602081830303815290604052805190602001209050610b1d838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f000000000000000000000000000000000000000000000000000000000000000083611fe8565b610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b53906136d9565b60405180910390fd5b5050505050565b606060008054610b7290613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9e90613592565b8015610beb5780601f10610bc057610100808354040283529160200191610beb565b820191906000526020600020905b815481529060010190602001808311610bce57829003601f168201915b5050505050905090565b6000610c0082611fff565b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c369061376b565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8582611271565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906137fd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d1561206b565b73ffffffffffffffffffffffffffffffffffffffff161480610d445750610d4381610d3e61206b565b611a62565b5b610d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7a9061388f565b60405180910390fd5b610d8d8383612073565b505050565b601060009054906101000a900460ff16610de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd890613921565b60405180910390fd5b610dea81611271565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e2157600080fd5b600f8281548110610e3557610e34613941565b5b9060005260206000200160116000838152602001908152602001600020908054610e5e90613592565b610e69929190612af3565b505050565b610e7f610e7961206b565b8261212c565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906139e2565b60405180910390fd5b610ec983838361220a565b505050565b600a60149054906101000a900460ff1681565b600f8181548110610ef157600080fd5b906000526020600020016000915090508054610f0c90613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3890613592565b8015610f855780601f10610f5a57610100808354040283529160200191610f85565b820191906000526020600020905b815481529060010190602001808311610f6857829003601f168201915b505050505081565b610f9561206b565b73ffffffffffffffffffffffffffffffffffffffff16610fb36115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611009576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100090613a4e565b60405180910390fd5b600047905060008111611051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104890613aba565b60405180910390fd5b6000611067600a8361247190919063ffffffff16565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110d1573d6000803e3d6000fd5b50600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61112260028461248790919063ffffffff16565b9081150290604051600060405180830381858888f1935050505015801561114d573d6000803e3d6000fd5b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61119e60038461248790919063ffffffff16565b9081150290604051600060405180830381858888f193505050501580156111c9573d6000803e3d6000fd5b506000479050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611237573d6000803e3d6000fd5b50505050565b6112588383836040518060200160405280600081525061189f565b505050565b600c60009054906101000a900461ffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561131a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131190613b4c565b60405180910390fd5b80915050919050565b600b5481565b6000803490505b66470de4df82000081106113755761135866470de4df8200008261249d90919063ffffffff16565b905061136e600183611de290919063ffffffff16565b9150611330565b600c60009054906101000a900461ffff1661ffff166113a6836113986013611dd4565b611de290919063ffffffff16565b11156113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de90613bde565b60405180910390fd5b60005b828160ff16101561145b57611408336114036013611dd4565b611df8565b600e601160006114186013611dd4565b815260200190815260200160002090805461143290613592565b61143d929190612af3565b506114486013611fd2565b808061145390613600565b9150506113ea565b50505060011515600a60149054906101000a900460ff161515148015611487575066f8b0a10e47000034105b80156114a5575066470de4df82000080346114a29190613c2d565b11155b6114ae57600080fd5b565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151890613cd0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61157061206b565b73ffffffffffffffffffffffffffffffffffffffff1661158e6115f0565b73ffffffffffffffffffffffffffffffffffffffff16146115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115db90613a4e565b60405180910390fd5b6115ee60006124b3565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61164861206b565b73ffffffffffffffffffffffffffffffffffffffff166116666115f0565b73ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b390613a4e565b60405180910390fd5b6000600a60149054906101000a900460ff1690508015600a60146101000a81548160ff02191690831515021790555050565b6060600180546116fd90613592565b80601f016020809104026020016040519081016040528092919081815260200182805461172990613592565b80156117765780601f1061174b57610100808354040283529160200191611776565b820191906000526020600020905b81548152906001019060200180831161175957829003601f168201915b5050505050905090565b600d5481565b61178e61206b565b73ffffffffffffffffffffffffffffffffffffffff166117ac6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990613a4e565b60405180910390fd5b600f818154811061181657611815613941565b5b90600052602060002001600e90805461182e90613592565b611839929190612af3565b5050565b61184f61184861206b565b8383612579565b5050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118b06118aa61206b565b8361212c565b6118ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e6906139e2565b60405180910390fd5b6118fb848484846126e6565b50505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060601060009054906101000a900460ff1615611981576011600083815260200190815260200160002061195a83612742565b60405160200161196b929190613e0c565b60405160208183030381529060405290506119af565b600e61198c83612742565b60405160200161199d929190613e0c565b60405160208183030381529060405290505b919050565b6119bc61206b565b73ffffffffffffffffffffffffffffffffffffffff166119da6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2790613a4e565b60405180910390fd5b6000601060009054906101000a900460ff1690508015601060006101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611b2261206b565b73ffffffffffffffffffffffffffffffffffffffff16611b406115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611b96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8d90613a4e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfd90613ead565b60405180910390fd5b611c0f816124b3565b50565b611c1a61206b565b73ffffffffffffffffffffffffffffffffffffffff16611c386115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8590613a4e565b60405180910390fd5b80600b8190555050565b611ca061206b565b73ffffffffffffffffffffffffffffffffffffffff16611cbe6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0b90613a4e565b60405180910390fd5b600f81908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611d4f929190612b80565b5080600e9080519060200190611d66929190612b80565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b60008183611df09190613ecd565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f90613f6f565b60405180910390fd5b611e7181611fff565b15611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890613fdb565b60405180910390fd5b611ebd600083836128a3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f0d9190613ecd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fce600083836128a8565b5050565b6001816000016000828254019250508190555050565b600082611ff585846128ad565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166120e683611271565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061213782611fff565b612176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216d9061406d565b60405180910390fd5b600061218183611271565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121f057508373ffffffffffffffffffffffffffffffffffffffff166121d884610bf5565b73ffffffffffffffffffffffffffffffffffffffff16145b8061220157506122008185611a62565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661222a82611271565b73ffffffffffffffffffffffffffffffffffffffff1614612280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612277906140ff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e790614191565b60405180910390fd5b6122fb8383836128a3565b612306600082612073565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461235691906141b1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123ad9190613ecd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461246c8383836128a8565b505050565b6000818361247f91906141e5565b905092915050565b600081836124959190614216565b905092915050565b600081836124ab91906141b1565b905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125df906142bc565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516126d99190612cd7565b60405180910390a3505050565b6126f184848461220a565b6126fd84848484612922565b61273c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127339061434e565b60405180910390fd5b50505050565b6060600082141561278a576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061289e565b600082905060005b600082146127bc5780806127a59061436e565b915050600a826127b591906141e5565b9150612792565b60008167ffffffffffffffff8111156127d8576127d7613159565b5b6040519080825280601f01601f19166020018201604052801561280a5781602001600182028036833780820191505090505b5090505b600085146128975760018261282391906141b1565b9150600a856128329190613c2d565b603061283e9190613ecd565b60f81b81838151811061285457612853613941565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561289091906141e5565b945061280e565b8093505050505b919050565b505050565b505050565b60008082905060005b84518110156129175760008582815181106128d4576128d3613941565b5b602002602001015190508083116128f6576128ef8382612ab9565b9250612903565b6129008184612ab9565b92505b50808061290f9061436e565b9150506128b6565b508091505092915050565b60006129438473ffffffffffffffffffffffffffffffffffffffff16612ad0565b15612aac578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261296c61206b565b8786866040518563ffffffff1660e01b815260040161298e949392919061440c565b602060405180830381600087803b1580156129a857600080fd5b505af19250505080156129d957506040513d601f19601f820116820180604052508101906129d6919061446d565b60015b612a5c573d8060008114612a09576040519150601f19603f3d011682016040523d82523d6000602084013e612a0e565b606091505b50600081511415612a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4b9061434e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ab1565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612aff90613592565b90600052602060002090601f016020900481019282612b215760008555612b6f565b82601f10612b325780548555612b6f565b82800160010185558215612b6f57600052602060002091601f016020900482015b82811115612b6e578254825591600101919060010190612b53565b5b509050612b7c9190612c06565b5090565b828054612b8c90613592565b90600052602060002090601f016020900481019282612bae5760008555612bf5565b82601f10612bc757805160ff1916838001178555612bf5565b82800160010185558215612bf5579182015b82811115612bf4578251825591602001919060010190612bd9565b5b509050612c029190612c06565b5090565b5b80821115612c1f576000816000905550600101612c07565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c6c81612c37565b8114612c7757600080fd5b50565b600081359050612c8981612c63565b92915050565b600060208284031215612ca557612ca4612c2d565b5b6000612cb384828501612c7a565b91505092915050565b60008115159050919050565b612cd181612cbc565b82525050565b6000602082019050612cec6000830184612cc8565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612d1757612d16612cf2565b5b8235905067ffffffffffffffff811115612d3457612d33612cf7565b5b602083019150836020820283011115612d5057612d4f612cfc565b5b9250929050565b60008060208385031215612d6e57612d6d612c2d565b5b600083013567ffffffffffffffff811115612d8c57612d8b612c32565b5b612d9885828601612d01565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dde578082015181840152602081019050612dc3565b83811115612ded576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e0f82612da4565b612e198185612daf565b9350612e29818560208601612dc0565b612e3281612df3565b840191505092915050565b60006020820190508181036000830152612e578184612e04565b905092915050565b6000819050919050565b612e7281612e5f565b8114612e7d57600080fd5b50565b600081359050612e8f81612e69565b92915050565b600060208284031215612eab57612eaa612c2d565b5b6000612eb984828501612e80565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612eed82612ec2565b9050919050565b612efd81612ee2565b82525050565b6000602082019050612f186000830184612ef4565b92915050565b612f2781612ee2565b8114612f3257600080fd5b50565b600081359050612f4481612f1e565b92915050565b60008060408385031215612f6157612f60612c2d565b5b6000612f6f85828601612f35565b9250506020612f8085828601612e80565b9150509250929050565b60008060408385031215612fa157612fa0612c2d565b5b6000612faf85828601612e80565b9250506020612fc085828601612e80565b9150509250929050565b600080600060608486031215612fe357612fe2612c2d565b5b6000612ff186828701612f35565b935050602061300286828701612f35565b925050604061301386828701612e80565b9150509250925092565b600061ffff82169050919050565b6130348161301d565b82525050565b600060208201905061304f600083018461302b565b92915050565b61305e81612e5f565b82525050565b60006020820190506130796000830184613055565b92915050565b60006020828403121561309557613094612c2d565b5b60006130a384828501612f35565b91505092915050565b60006130b782612ec2565b9050919050565b6130c7816130ac565b82525050565b60006020820190506130e260008301846130be565b92915050565b6130f181612cbc565b81146130fc57600080fd5b50565b60008135905061310e816130e8565b92915050565b6000806040838503121561312b5761312a612c2d565b5b600061313985828601612f35565b925050602061314a858286016130ff565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61319182612df3565b810181811067ffffffffffffffff821117156131b0576131af613159565b5b80604052505050565b60006131c3612c23565b90506131cf8282613188565b919050565b600067ffffffffffffffff8211156131ef576131ee613159565b5b6131f882612df3565b9050602081019050919050565b82818337600083830152505050565b6000613227613222846131d4565b6131b9565b90508281526020810184848401111561324357613242613154565b5b61324e848285613205565b509392505050565b600082601f83011261326b5761326a612cf2565b5b813561327b848260208601613214565b91505092915050565b6000806000806080858703121561329e5761329d612c2d565b5b60006132ac87828801612f35565b94505060206132bd87828801612f35565b93505060406132ce87828801612e80565b925050606085013567ffffffffffffffff8111156132ef576132ee612c32565b5b6132fb87828801613256565b91505092959194509250565b6000806040838503121561331e5761331d612c2d565b5b600061332c85828601612f35565b925050602061333d85828601612f35565b9150509250929050565b6000819050919050565b61335a81613347565b82525050565b60006020820190506133756000830184613351565b92915050565b600067ffffffffffffffff82111561339657613395613159565b5b61339f82612df3565b9050602081019050919050565b60006133bf6133ba8461337b565b6131b9565b9050828152602081018484840111156133db576133da613154565b5b6133e6848285613205565b509392505050565b600082601f83011261340357613402612cf2565b5b81356134138482602086016133ac565b91505092915050565b60006020828403121561343257613431612c2d565b5b600082013567ffffffffffffffff8111156134505761344f612c32565b5b61345c848285016133ee565b91505092915050565b7f57686974656c6973742068617320616c7265616479206265656e20636c61696d60008201527f65642e0000000000000000000000000000000000000000000000000000000000602082015250565b60006134c1602383612daf565b91506134cc82613465565b604082019050919050565b600060208201905081810360008301526134f0816134b4565b9050919050565b7f43757272656e742046726565204d696e74206c696d697420726561636865642e600082015250565b600061352d602083612daf565b9150613538826134f7565b602082019050919050565b6000602082019050818103600083015261355c81613520565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806135aa57607f821691505b602082108114156135be576135bd613563565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060ff82169050919050565b600061360b826135f3565b915060ff82141561361f5761361e6135c4565b5b600182019050919050565b60008160601b9050919050565b60006136428261362a565b9050919050565b600061365482613637565b9050919050565b61366c61366782612ee2565b613649565b82525050565b600061367e828461365b565b60148201915081905092915050565b7f4163636f756e74206973206e6f742077686974656c69737465642e0000000000600082015250565b60006136c3601b83612daf565b91506136ce8261368d565b602082019050919050565b600060208201905081810360008301526136f2816136b6565b9050919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613755602c83612daf565b9150613760826136f9565b604082019050919050565b6000602082019050818103600083015261378481613748565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006137e7602183612daf565b91506137f28261378b565b604082019050919050565b60006020820190508181036000830152613816816137da565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613879603883612daf565b91506138848261381d565b604082019050919050565b600060208201905081810360008301526138a88161386c565b9050919050565b7f41727420737769746368696e67206973206e6f742079657420617661696c616260008201527f6c652e0000000000000000000000000000000000000000000000000000000000602082015250565b600061390b602383612daf565b9150613916826138af565b604082019050919050565b6000602082019050818103600083015261393a816138fe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139cc603183612daf565b91506139d782613970565b604082019050919050565b600060208201905081810360008301526139fb816139bf565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a38602083612daf565b9150613a4382613a02565b602082019050919050565b60006020820190508181036000830152613a6781613a2b565b9050919050565b7f42616c616e636520697320302045544800000000000000000000000000000000600082015250565b6000613aa4601083612daf565b9150613aaf82613a6e565b602082019050919050565b60006020820190508181036000830152613ad381613a97565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613b36602983612daf565b9150613b4182613ada565b604082019050919050565b60006020820190508181036000830152613b6581613b29565b9050919050565b7f43757272656e74204d696e74204c696d697420526561636865642e205472792060008201527f6d696e74696e67206c6573732e00000000000000000000000000000000000000602082015250565b6000613bc8602d83612daf565b9150613bd382613b6c565b604082019050919050565b60006020820190508181036000830152613bf781613bbb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c3882612e5f565b9150613c4383612e5f565b925082613c5357613c52613bfe565b5b828206905092915050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613cba602a83612daf565b9150613cc582613c5e565b604082019050919050565b60006020820190508181036000830152613ce981613cad565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613d1d81613592565b613d278186613cf0565b94506001821660008114613d425760018114613d5357613d86565b60ff19831686528186019350613d86565b613d5c85613cfb565b60005b83811015613d7e57815481890152600182019150602081019050613d5f565b838801955050505b50505092915050565b6000613d9a82612da4565b613da48185613cf0565b9350613db4818560208601612dc0565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613df6600583613cf0565b9150613e0182613dc0565b600582019050919050565b6000613e188285613d10565b9150613e248284613d8f565b9150613e2f82613de9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e97602683612daf565b9150613ea282613e3b565b604082019050919050565b60006020820190508181036000830152613ec681613e8a565b9050919050565b6000613ed882612e5f565b9150613ee383612e5f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f1857613f176135c4565b5b828201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613f59602083612daf565b9150613f6482613f23565b602082019050919050565b60006020820190508181036000830152613f8881613f4c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613fc5601c83612daf565b9150613fd082613f8f565b602082019050919050565b60006020820190508181036000830152613ff481613fb8565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614057602c83612daf565b915061406282613ffb565b604082019050919050565b600060208201905081810360008301526140868161404a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006140e9602583612daf565b91506140f48261408d565b604082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061417b602483612daf565b91506141868261411f565b604082019050919050565b600060208201905081810360008301526141aa8161416e565b9050919050565b60006141bc82612e5f565b91506141c783612e5f565b9250828210156141da576141d96135c4565b5b828203905092915050565b60006141f082612e5f565b91506141fb83612e5f565b92508261420b5761420a613bfe565b5b828204905092915050565b600061422182612e5f565b915061422c83612e5f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614265576142646135c4565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006142a6601983612daf565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614338603283612daf565b9150614343826142dc565b604082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b600061437982612e5f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143ac576143ab6135c4565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006143de826143b7565b6143e881856143c2565b93506143f8818560208601612dc0565b61440181612df3565b840191505092915050565b60006080820190506144216000830187612ef4565b61442e6020830186612ef4565b61443b6040830185613055565b818103606083015261444d81846143d3565b905095945050505050565b60008151905061446781612c63565b92915050565b60006020828403121561448357614482612c2d565b5b600061449184828501614458565b9150509291505056fea26469706673582212202fa6a8c36382cc42e67829f6d3c2d890c99574ec3d3983b2143d4a60b47ea55f64736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102045760003560e01c80638da5cb5b11610118578063b88d4fde116100a0578063e985e9c51161006f578063e985e9c5146106fe578063ebf0c7171461073b578063f2fde38b14610766578063f4a0a5281461078f578063fe3138e6146107b857610204565b8063b88d4fde14610656578063c75748391461067f578063c87b56dd146106aa578063e0ba0de5146106e757610204565b8063996517cf116100e7578063996517cf146105835780639d45d827146105ae578063a22cb465146105d7578063a23d3c3514610600578063a3342fba1461062b57610204565b80638da5cb5b146104eb5780638ea5220f146105165780638fd0aeb21461054157806395d89b411461055857610204565b8063369b95f71161019b5780636352211e1161016a5780636352211e146104255780636817c76c146104625780636da6bad01461048d57806370a0823114610497578063715018a6146104d457610204565b8063369b95f71461037d5780633ccfd60b146103ba57806342842e0e146103d15780635f48f393146103fa57610204565b8063095ea7b3116101d7578063095ea7b3146102d757806323411bf01461030057806323b872dd1461032957806333bc1c5c1461035257610204565b806301ffc9a71461020957806302aeb4ff1461024657806306fdde031461026f578063081812fc1461029a575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612c8f565b6107e1565b60405161023d9190612cd7565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190612d57565b6108c3565b005b34801561027b57600080fd5b50610284610b63565b6040516102919190612e3d565b60405180910390f35b3480156102a657600080fd5b506102c160048036038101906102bc9190612e95565b610bf5565b6040516102ce9190612f03565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190612f4a565b610c7a565b005b34801561030c57600080fd5b5061032760048036038101906103229190612f8a565b610d92565b005b34801561033557600080fd5b50610350600480360381019061034b9190612fca565b610e6e565b005b34801561035e57600080fd5b50610367610ece565b6040516103749190612cd7565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190612e95565b610ee1565b6040516103b19190612e3d565b60405180910390f35b3480156103c657600080fd5b506103cf610f8d565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190612fca565b61123d565b005b34801561040657600080fd5b5061040f61125d565b60405161041c919061303a565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612e95565b611271565b6040516104599190612f03565b60405180910390f35b34801561046e57600080fd5b50610477611323565b6040516104849190613064565b60405180910390f35b610495611329565b005b3480156104a357600080fd5b506104be60048036038101906104b9919061307f565b6114b0565b6040516104cb9190613064565b60405180910390f35b3480156104e057600080fd5b506104e9611568565b005b3480156104f757600080fd5b506105006115f0565b60405161050d9190612f03565b60405180910390f35b34801561052257600080fd5b5061052b61161a565b60405161053891906130cd565b60405180910390f35b34801561054d57600080fd5b50610556611640565b005b34801561056457600080fd5b5061056d6116ee565b60405161057a9190612e3d565b60405180910390f35b34801561058f57600080fd5b50610598611780565b6040516105a59190613064565b60405180910390f35b3480156105ba57600080fd5b506105d560048036038101906105d09190612e95565b611786565b005b3480156105e357600080fd5b506105fe60048036038101906105f99190613114565b61183d565b005b34801561060c57600080fd5b50610615611853565b60405161062291906130cd565b60405180910390f35b34801561063757600080fd5b50610640611879565b60405161064d91906130cd565b60405180910390f35b34801561066257600080fd5b5061067d60048036038101906106789190613284565b61189f565b005b34801561068b57600080fd5b50610694611901565b6040516106a191906130cd565b60405180910390f35b3480156106b657600080fd5b506106d160048036038101906106cc9190612e95565b611927565b6040516106de9190612e3d565b60405180910390f35b3480156106f357600080fd5b506106fc6119b4565b005b34801561070a57600080fd5b5061072560048036038101906107209190613307565b611a62565b6040516107329190612cd7565b60405180910390f35b34801561074757600080fd5b50610750611af6565b60405161075d9190613360565b60405180910390f35b34801561077257600080fd5b5061078d6004803603810190610788919061307f565b611b1a565b005b34801561079b57600080fd5b506107b660048036038101906107b19190612e95565b611c12565b005b3480156107c457600080fd5b506107df60048036038101906107da919061341c565b611c98565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bc57506108bb82611d6a565b5b9050919050565b818160001515601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906134d7565b60405180910390fd5b6001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506103206109d060026109c26013611dd4565b611de290919063ffffffff16565b10610a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0790613543565b60405180910390fd5b60005b60028160ff161015610a8557610a3233610a2d6013611dd4565b611df8565b600e60116000610a426013611dd4565b8152602001908152602001600020908054610a5c90613592565b610a67929190612af3565b50610a726013611fd2565b8080610a7d90613600565b915050610a13565b50600033604051602001610a999190613672565b604051602081830303815290604052805190602001209050610b1d838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f4699f37b384f7a213e23d6cc5f786edd77db11a90c5307dcc20d218ee6dbc47383611fe8565b610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b53906136d9565b60405180910390fd5b5050505050565b606060008054610b7290613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9e90613592565b8015610beb5780601f10610bc057610100808354040283529160200191610beb565b820191906000526020600020905b815481529060010190602001808311610bce57829003601f168201915b5050505050905090565b6000610c0082611fff565b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c369061376b565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8582611271565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906137fd565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d1561206b565b73ffffffffffffffffffffffffffffffffffffffff161480610d445750610d4381610d3e61206b565b611a62565b5b610d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7a9061388f565b60405180910390fd5b610d8d8383612073565b505050565b601060009054906101000a900460ff16610de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd890613921565b60405180910390fd5b610dea81611271565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e2157600080fd5b600f8281548110610e3557610e34613941565b5b9060005260206000200160116000838152602001908152602001600020908054610e5e90613592565b610e69929190612af3565b505050565b610e7f610e7961206b565b8261212c565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906139e2565b60405180910390fd5b610ec983838361220a565b505050565b600a60149054906101000a900460ff1681565b600f8181548110610ef157600080fd5b906000526020600020016000915090508054610f0c90613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3890613592565b8015610f855780601f10610f5a57610100808354040283529160200191610f85565b820191906000526020600020905b815481529060010190602001808311610f6857829003601f168201915b505050505081565b610f9561206b565b73ffffffffffffffffffffffffffffffffffffffff16610fb36115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611009576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100090613a4e565b60405180910390fd5b600047905060008111611051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104890613aba565b60405180910390fd5b6000611067600a8361247190919063ffffffff16565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110d1573d6000803e3d6000fd5b50600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61112260028461248790919063ffffffff16565b9081150290604051600060405180830381858888f1935050505015801561114d573d6000803e3d6000fd5b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61119e60038461248790919063ffffffff16565b9081150290604051600060405180830381858888f193505050501580156111c9573d6000803e3d6000fd5b506000479050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611237573d6000803e3d6000fd5b50505050565b6112588383836040518060200160405280600081525061189f565b505050565b600c60009054906101000a900461ffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561131a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131190613b4c565b60405180910390fd5b80915050919050565b600b5481565b6000803490505b66470de4df82000081106113755761135866470de4df8200008261249d90919063ffffffff16565b905061136e600183611de290919063ffffffff16565b9150611330565b600c60009054906101000a900461ffff1661ffff166113a6836113986013611dd4565b611de290919063ffffffff16565b11156113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de90613bde565b60405180910390fd5b60005b828160ff16101561145b57611408336114036013611dd4565b611df8565b600e601160006114186013611dd4565b815260200190815260200160002090805461143290613592565b61143d929190612af3565b506114486013611fd2565b808061145390613600565b9150506113ea565b50505060011515600a60149054906101000a900460ff161515148015611487575066f8b0a10e47000034105b80156114a5575066470de4df82000080346114a29190613c2d565b11155b6114ae57600080fd5b565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611521576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151890613cd0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61157061206b565b73ffffffffffffffffffffffffffffffffffffffff1661158e6115f0565b73ffffffffffffffffffffffffffffffffffffffff16146115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115db90613a4e565b60405180910390fd5b6115ee60006124b3565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61164861206b565b73ffffffffffffffffffffffffffffffffffffffff166116666115f0565b73ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b390613a4e565b60405180910390fd5b6000600a60149054906101000a900460ff1690508015600a60146101000a81548160ff02191690831515021790555050565b6060600180546116fd90613592565b80601f016020809104026020016040519081016040528092919081815260200182805461172990613592565b80156117765780601f1061174b57610100808354040283529160200191611776565b820191906000526020600020905b81548152906001019060200180831161175957829003601f168201915b5050505050905090565b600d5481565b61178e61206b565b73ffffffffffffffffffffffffffffffffffffffff166117ac6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990613a4e565b60405180910390fd5b600f818154811061181657611815613941565b5b90600052602060002001600e90805461182e90613592565b611839929190612af3565b5050565b61184f61184861206b565b8383612579565b5050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118b06118aa61206b565b8361212c565b6118ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e6906139e2565b60405180910390fd5b6118fb848484846126e6565b50505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060601060009054906101000a900460ff1615611981576011600083815260200190815260200160002061195a83612742565b60405160200161196b929190613e0c565b60405160208183030381529060405290506119af565b600e61198c83612742565b60405160200161199d929190613e0c565b60405160208183030381529060405290505b919050565b6119bc61206b565b73ffffffffffffffffffffffffffffffffffffffff166119da6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2790613a4e565b60405180910390fd5b6000601060009054906101000a900460ff1690508015601060006101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f4699f37b384f7a213e23d6cc5f786edd77db11a90c5307dcc20d218ee6dbc47381565b611b2261206b565b73ffffffffffffffffffffffffffffffffffffffff16611b406115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611b96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8d90613a4e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfd90613ead565b60405180910390fd5b611c0f816124b3565b50565b611c1a61206b565b73ffffffffffffffffffffffffffffffffffffffff16611c386115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8590613a4e565b60405180910390fd5b80600b8190555050565b611ca061206b565b73ffffffffffffffffffffffffffffffffffffffff16611cbe6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614611d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0b90613a4e565b60405180910390fd5b600f81908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611d4f929190612b80565b5080600e9080519060200190611d66929190612b80565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b60008183611df09190613ecd565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f90613f6f565b60405180910390fd5b611e7181611fff565b15611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890613fdb565b60405180910390fd5b611ebd600083836128a3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f0d9190613ecd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fce600083836128a8565b5050565b6001816000016000828254019250508190555050565b600082611ff585846128ad565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166120e683611271565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061213782611fff565b612176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216d9061406d565b60405180910390fd5b600061218183611271565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121f057508373ffffffffffffffffffffffffffffffffffffffff166121d884610bf5565b73ffffffffffffffffffffffffffffffffffffffff16145b8061220157506122008185611a62565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661222a82611271565b73ffffffffffffffffffffffffffffffffffffffff1614612280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612277906140ff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e790614191565b60405180910390fd5b6122fb8383836128a3565b612306600082612073565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461235691906141b1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123ad9190613ecd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461246c8383836128a8565b505050565b6000818361247f91906141e5565b905092915050565b600081836124959190614216565b905092915050565b600081836124ab91906141b1565b905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125df906142bc565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516126d99190612cd7565b60405180910390a3505050565b6126f184848461220a565b6126fd84848484612922565b61273c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127339061434e565b60405180910390fd5b50505050565b6060600082141561278a576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061289e565b600082905060005b600082146127bc5780806127a59061436e565b915050600a826127b591906141e5565b9150612792565b60008167ffffffffffffffff8111156127d8576127d7613159565b5b6040519080825280601f01601f19166020018201604052801561280a5781602001600182028036833780820191505090505b5090505b600085146128975760018261282391906141b1565b9150600a856128329190613c2d565b603061283e9190613ecd565b60f81b81838151811061285457612853613941565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561289091906141e5565b945061280e565b8093505050505b919050565b505050565b505050565b60008082905060005b84518110156129175760008582815181106128d4576128d3613941565b5b602002602001015190508083116128f6576128ef8382612ab9565b9250612903565b6129008184612ab9565b92505b50808061290f9061436e565b9150506128b6565b508091505092915050565b60006129438473ffffffffffffffffffffffffffffffffffffffff16612ad0565b15612aac578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261296c61206b565b8786866040518563ffffffff1660e01b815260040161298e949392919061440c565b602060405180830381600087803b1580156129a857600080fd5b505af19250505080156129d957506040513d601f19601f820116820180604052508101906129d6919061446d565b60015b612a5c573d8060008114612a09576040519150601f19603f3d011682016040523d82523d6000602084013e612a0e565b606091505b50600081511415612a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4b9061434e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ab1565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612aff90613592565b90600052602060002090601f016020900481019282612b215760008555612b6f565b82601f10612b325780548555612b6f565b82800160010185558215612b6f57600052602060002091601f016020900482015b82811115612b6e578254825591600101919060010190612b53565b5b509050612b7c9190612c06565b5090565b828054612b8c90613592565b90600052602060002090601f016020900481019282612bae5760008555612bf5565b82601f10612bc757805160ff1916838001178555612bf5565b82800160010185558215612bf5579182015b82811115612bf4578251825591602001919060010190612bd9565b5b509050612c029190612c06565b5090565b5b80821115612c1f576000816000905550600101612c07565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c6c81612c37565b8114612c7757600080fd5b50565b600081359050612c8981612c63565b92915050565b600060208284031215612ca557612ca4612c2d565b5b6000612cb384828501612c7a565b91505092915050565b60008115159050919050565b612cd181612cbc565b82525050565b6000602082019050612cec6000830184612cc8565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612d1757612d16612cf2565b5b8235905067ffffffffffffffff811115612d3457612d33612cf7565b5b602083019150836020820283011115612d5057612d4f612cfc565b5b9250929050565b60008060208385031215612d6e57612d6d612c2d565b5b600083013567ffffffffffffffff811115612d8c57612d8b612c32565b5b612d9885828601612d01565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dde578082015181840152602081019050612dc3565b83811115612ded576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e0f82612da4565b612e198185612daf565b9350612e29818560208601612dc0565b612e3281612df3565b840191505092915050565b60006020820190508181036000830152612e578184612e04565b905092915050565b6000819050919050565b612e7281612e5f565b8114612e7d57600080fd5b50565b600081359050612e8f81612e69565b92915050565b600060208284031215612eab57612eaa612c2d565b5b6000612eb984828501612e80565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612eed82612ec2565b9050919050565b612efd81612ee2565b82525050565b6000602082019050612f186000830184612ef4565b92915050565b612f2781612ee2565b8114612f3257600080fd5b50565b600081359050612f4481612f1e565b92915050565b60008060408385031215612f6157612f60612c2d565b5b6000612f6f85828601612f35565b9250506020612f8085828601612e80565b9150509250929050565b60008060408385031215612fa157612fa0612c2d565b5b6000612faf85828601612e80565b9250506020612fc085828601612e80565b9150509250929050565b600080600060608486031215612fe357612fe2612c2d565b5b6000612ff186828701612f35565b935050602061300286828701612f35565b925050604061301386828701612e80565b9150509250925092565b600061ffff82169050919050565b6130348161301d565b82525050565b600060208201905061304f600083018461302b565b92915050565b61305e81612e5f565b82525050565b60006020820190506130796000830184613055565b92915050565b60006020828403121561309557613094612c2d565b5b60006130a384828501612f35565b91505092915050565b60006130b782612ec2565b9050919050565b6130c7816130ac565b82525050565b60006020820190506130e260008301846130be565b92915050565b6130f181612cbc565b81146130fc57600080fd5b50565b60008135905061310e816130e8565b92915050565b6000806040838503121561312b5761312a612c2d565b5b600061313985828601612f35565b925050602061314a858286016130ff565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61319182612df3565b810181811067ffffffffffffffff821117156131b0576131af613159565b5b80604052505050565b60006131c3612c23565b90506131cf8282613188565b919050565b600067ffffffffffffffff8211156131ef576131ee613159565b5b6131f882612df3565b9050602081019050919050565b82818337600083830152505050565b6000613227613222846131d4565b6131b9565b90508281526020810184848401111561324357613242613154565b5b61324e848285613205565b509392505050565b600082601f83011261326b5761326a612cf2565b5b813561327b848260208601613214565b91505092915050565b6000806000806080858703121561329e5761329d612c2d565b5b60006132ac87828801612f35565b94505060206132bd87828801612f35565b93505060406132ce87828801612e80565b925050606085013567ffffffffffffffff8111156132ef576132ee612c32565b5b6132fb87828801613256565b91505092959194509250565b6000806040838503121561331e5761331d612c2d565b5b600061332c85828601612f35565b925050602061333d85828601612f35565b9150509250929050565b6000819050919050565b61335a81613347565b82525050565b60006020820190506133756000830184613351565b92915050565b600067ffffffffffffffff82111561339657613395613159565b5b61339f82612df3565b9050602081019050919050565b60006133bf6133ba8461337b565b6131b9565b9050828152602081018484840111156133db576133da613154565b5b6133e6848285613205565b509392505050565b600082601f83011261340357613402612cf2565b5b81356134138482602086016133ac565b91505092915050565b60006020828403121561343257613431612c2d565b5b600082013567ffffffffffffffff8111156134505761344f612c32565b5b61345c848285016133ee565b91505092915050565b7f57686974656c6973742068617320616c7265616479206265656e20636c61696d60008201527f65642e0000000000000000000000000000000000000000000000000000000000602082015250565b60006134c1602383612daf565b91506134cc82613465565b604082019050919050565b600060208201905081810360008301526134f0816134b4565b9050919050565b7f43757272656e742046726565204d696e74206c696d697420726561636865642e600082015250565b600061352d602083612daf565b9150613538826134f7565b602082019050919050565b6000602082019050818103600083015261355c81613520565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806135aa57607f821691505b602082108114156135be576135bd613563565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060ff82169050919050565b600061360b826135f3565b915060ff82141561361f5761361e6135c4565b5b600182019050919050565b60008160601b9050919050565b60006136428261362a565b9050919050565b600061365482613637565b9050919050565b61366c61366782612ee2565b613649565b82525050565b600061367e828461365b565b60148201915081905092915050565b7f4163636f756e74206973206e6f742077686974656c69737465642e0000000000600082015250565b60006136c3601b83612daf565b91506136ce8261368d565b602082019050919050565b600060208201905081810360008301526136f2816136b6565b9050919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613755602c83612daf565b9150613760826136f9565b604082019050919050565b6000602082019050818103600083015261378481613748565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006137e7602183612daf565b91506137f28261378b565b604082019050919050565b60006020820190508181036000830152613816816137da565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613879603883612daf565b91506138848261381d565b604082019050919050565b600060208201905081810360008301526138a88161386c565b9050919050565b7f41727420737769746368696e67206973206e6f742079657420617661696c616260008201527f6c652e0000000000000000000000000000000000000000000000000000000000602082015250565b600061390b602383612daf565b9150613916826138af565b604082019050919050565b6000602082019050818103600083015261393a816138fe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139cc603183612daf565b91506139d782613970565b604082019050919050565b600060208201905081810360008301526139fb816139bf565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a38602083612daf565b9150613a4382613a02565b602082019050919050565b60006020820190508181036000830152613a6781613a2b565b9050919050565b7f42616c616e636520697320302045544800000000000000000000000000000000600082015250565b6000613aa4601083612daf565b9150613aaf82613a6e565b602082019050919050565b60006020820190508181036000830152613ad381613a97565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613b36602983612daf565b9150613b4182613ada565b604082019050919050565b60006020820190508181036000830152613b6581613b29565b9050919050565b7f43757272656e74204d696e74204c696d697420526561636865642e205472792060008201527f6d696e74696e67206c6573732e00000000000000000000000000000000000000602082015250565b6000613bc8602d83612daf565b9150613bd382613b6c565b604082019050919050565b60006020820190508181036000830152613bf781613bbb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c3882612e5f565b9150613c4383612e5f565b925082613c5357613c52613bfe565b5b828206905092915050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613cba602a83612daf565b9150613cc582613c5e565b604082019050919050565b60006020820190508181036000830152613ce981613cad565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613d1d81613592565b613d278186613cf0565b94506001821660008114613d425760018114613d5357613d86565b60ff19831686528186019350613d86565b613d5c85613cfb565b60005b83811015613d7e57815481890152600182019150602081019050613d5f565b838801955050505b50505092915050565b6000613d9a82612da4565b613da48185613cf0565b9350613db4818560208601612dc0565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613df6600583613cf0565b9150613e0182613dc0565b600582019050919050565b6000613e188285613d10565b9150613e248284613d8f565b9150613e2f82613de9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e97602683612daf565b9150613ea282613e3b565b604082019050919050565b60006020820190508181036000830152613ec681613e8a565b9050919050565b6000613ed882612e5f565b9150613ee383612e5f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f1857613f176135c4565b5b828201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613f59602083612daf565b9150613f6482613f23565b602082019050919050565b60006020820190508181036000830152613f8881613f4c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613fc5601c83612daf565b9150613fd082613f8f565b602082019050919050565b60006020820190508181036000830152613ff481613fb8565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614057602c83612daf565b915061406282613ffb565b604082019050919050565b600060208201905081810360008301526140868161404a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006140e9602583612daf565b91506140f48261408d565b604082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061417b602483612daf565b91506141868261411f565b604082019050919050565b600060208201905081810360008301526141aa8161416e565b9050919050565b60006141bc82612e5f565b91506141c783612e5f565b9250828210156141da576141d96135c4565b5b828203905092915050565b60006141f082612e5f565b91506141fb83612e5f565b92508261420b5761420a613bfe565b5b828204905092915050565b600061422182612e5f565b915061422c83612e5f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614265576142646135c4565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006142a6601983612daf565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614338603283612daf565b9150614343826142dc565b604082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b600061437982612e5f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143ac576143ab6135c4565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006143de826143b7565b6143e881856143c2565b93506143f8818560208601612dc0565b61440181612df3565b840191505092915050565b60006080820190506144216000830187612ef4565b61442e6020830186612ef4565b61443b6040830185613055565b818103606083015261444d81846143d3565b905095945050505050565b60008151905061446781612c63565b92915050565b60006020828403121561448357614482612c2d565b5b600061449184828501614458565b9150509291505056fea26469706673582212202fa6a8c36382cc42e67829f6d3c2d890c99574ec3d3983b2143d4a60b47ea55f64736f6c63430008090033

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.