ETH Price: $2,912.86 (-10.12%)
Gas: 24 Gwei

Contract

0x762Bc5880F128DCAc29cffdDe1Cf7DdF4cFC39Ee
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Change Name202291792024-07-03 23:10:2328 hrs ago1720048223IN
0x762Bc588...F4cFC39Ee
0 ETH0.00049424.2370427
Change Name202291532024-07-03 23:05:1128 hrs ago1720047911IN
0x762Bc588...F4cFC39Ee
0 ETH0.000519444.45339344
Set Approval For...202238532024-07-03 5:19:5946 hrs ago1719983999IN
0x762Bc588...F4cFC39Ee
0 ETH0.000117742.51523678
Set Approval For...202205132024-07-02 18:07:112 days ago1719943631IN
0x762Bc588...F4cFC39Ee
0 ETH0.000209094.46666603
Change Name202186682024-07-02 11:55:112 days ago1719921311IN
0x762Bc588...F4cFC39Ee
0 ETH0.000825426.72765865
Safe Transfer Fr...201924072024-06-28 19:54:476 days ago1719604487IN
0x762Bc588...F4cFC39Ee
0 ETH0.000184542.83267194
Change Name201923432024-06-28 19:41:596 days ago1719603719IN
0x762Bc588...F4cFC39Ee
0 ETH0.00071775.34153531
Set Approval For...201712362024-06-25 20:59:119 days ago1719349151IN
0x762Bc588...F4cFC39Ee
0 ETH0.000187784.01144058
Set Approval For...201498282024-06-22 21:08:5912 days ago1719090539IN
0x762Bc588...F4cFC39Ee
0 ETH0.00004861.95205758
Set Approval For...201465582024-06-22 10:09:5912 days ago1719050999IN
0x762Bc588...F4cFC39Ee
0 ETH0.000216614.62725597
Set Approval For...201248422024-06-19 9:18:2315 days ago1718788703IN
0x762Bc588...F4cFC39Ee
0 ETH0.000162823.47822407
Set Approval For...201100272024-06-17 7:29:5917 days ago1718609399IN
0x762Bc588...F4cFC39Ee
0 ETH0.00014133.01848374
Change Descripti...200944742024-06-15 3:18:3520 days ago1718421515IN
0x762Bc588...F4cFC39Ee
0 ETH0.000876556.32395947
Change Name200944662024-06-15 3:16:5920 days ago1718421419IN
0x762Bc588...F4cFC39Ee
0 ETH0.000737356.31219465
Change Descripti...200944092024-06-15 3:05:2320 days ago1718420723IN
0x762Bc588...F4cFC39Ee
0 ETH0.000679065.61995014
Change Name200944022024-06-15 3:03:5920 days ago1718420639IN
0x762Bc588...F4cFC39Ee
0 ETH0.00063775.57483604
Set Approval For...200813412024-06-13 7:13:4721 days ago1718262827IN
0x762Bc588...F4cFC39Ee
0 ETH0.0005944512.69846629
Transfer From200726872024-06-12 2:12:5923 days ago1718158379IN
0x762Bc588...F4cFC39Ee
0 ETH0.0005098211.26642106
Set Approval For...200553042024-06-09 15:56:5925 days ago1717948619IN
0x762Bc588...F4cFC39Ee
0 ETH0.0005258711.23348152
Change Name200342672024-06-06 17:26:4728 days ago1717694807IN
0x762Bc588...F4cFC39Ee
0 ETH0.0028376329.86987335
Safe Transfer Fr...200318522024-06-06 9:20:2328 days ago1717665623IN
0x762Bc588...F4cFC39Ee
0 ETH0.0011681224.31814983
Set Approval For...200289842024-06-05 23:42:5929 days ago1717630979IN
0x762Bc588...F4cFC39Ee
0 ETH0.0008244317.64291479
Set Approval For...200276692024-06-05 19:18:3529 days ago1717615115IN
0x762Bc588...F4cFC39Ee
0 ETH0.0009521338.23668314
Set Approval For...200260892024-06-05 14:00:5929 days ago1717596059IN
0x762Bc588...F4cFC39Ee
0 ETH0.0012791827.32531944
Set Approval For...200152092024-06-04 1:35:2331 days ago1717464923IN
0x762Bc588...F4cFC39Ee
0 ETH0.000442059.44294339
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TroversePlanets

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : TroversePlanets.sol
// SPDX-License-Identifier: MIT

// ████████╗██████╗  ██████╗ ██╗   ██╗███████╗██████╗ ███████╗███████╗    
// ╚══██╔══╝██╔══██╗██╔═══██╗██║   ██║██╔════╝██╔══██╗██╔════╝██╔════╝    
//    ██║   ██████╔╝██║   ██║██║   ██║█████╗  ██████╔╝███████╗█████╗      
//    ██║   ██╔══██╗██║   ██║╚██╗ ██╔╝██╔══╝  ██╔══██╗╚════██║██╔══╝      
//    ██║   ██║  ██║╚██████╔╝ ╚████╔╝ ███████╗██║  ██║███████║███████╗    
//    ╚═╝   ╚═╝  ╚═╝ ╚═════╝   ╚═══╝  ╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝    

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "./ERC721A.sol";


interface IYieldToken {
    function burn(address _from, uint256 _amount) external;
}


contract TroversePlanets is Ownable, ERC721A {

    using EnumerableSet for EnumerableSet.AddressSet;

    uint256 public constant TOTAL_PLANETS = 10000;

    string private _baseTokenURI;

    IYieldToken public yieldToken;

    mapping (uint256 => string) private _planetName;
    mapping (string => bool) private _nameReserved;
    mapping (uint256 => string) private _planetDescription;

    uint256 public nameChangePrice = 100 ether;
    uint256 public descriptionChangePrice = 100 ether;

    event NameChanged(uint256 planetId, string planetName);
    event NameCleared(uint256 planetId);
    event DescriptionChanged(uint256 planetId, string planetDescription);
    event DescriptionCleared(uint256 planetId);

    address public minter;
    bool public isMinterLocked = false;
    

    constructor() ERC721A("Troverse Planets", "PLANET") { }

    modifier callerIsMinter() {
        require(msg.sender == minter, "The caller is not the minter");
        _;
    }

    /**
    * Changes the minter address
    */
    function updateMinter(address _minter) external onlyOwner {
        require(isMinterLocked == false, "Minter ownership renounced");
        minter = _minter;
    }

    /**
    * Locks the minter
    */
    function lockMinter() external onlyOwner  {
        isMinterLocked = true;
    }

    /**
    * Sets the YieldToken address to be burnt for changing name or description
    */
    function setYieldToken(address yieldTokenAddress) external onlyOwner {
        yieldToken = IYieldToken(yieldTokenAddress);
    }
    
    /**
    * Updates the price for changing the planet's name
    */
    function updateNameChangePrice(uint256 price) external onlyOwner {
        nameChangePrice = price;
    }

    /**
    * Updates the price for changing the planet's description
    */
    function updateDescriptionChangePrice(uint256 price) external onlyOwner {
        descriptionChangePrice = price;
    }

    /**
    * @notice Changes the name of a planet. Make sure to use appropriate names only
    */
    function changeName(uint256 planetId, string memory newName) external {
        require(_msgSender() == ownerOf(planetId), "Caller is not the owner");
        require(validateName(newName) == true, "Not a valid new name");
        require(sha256(bytes(newName)) != sha256(bytes(_planetName[planetId])), "New name is same as the current one");
        require(isNameReserved(newName) == false, "Name already reserved");

        if (bytes(_planetName[planetId]).length > 0) {
            toggleReserveName(_planetName[planetId], false);
        }
        toggleReserveName(newName, true);

        if (nameChangePrice > 0) {
            yieldToken.burn(msg.sender, nameChangePrice);
        }

        _planetName[planetId] = newName;

        emit NameChanged(planetId, newName);
    }

    /**
    * @notice Clears the name of a planet, in case an inappropriate name has set
    */
    function clearName(uint256 planetId) external onlyOwner {
        delete _planetName[planetId];
        emit NameCleared(planetId);
    }

    /**
    * @notice Changes the description of a planet. Make sure to use appropriate descriptions only
    */
    function changeDescription(uint256 planetId, string memory newDescription) external {
        require(_msgSender() == ownerOf(planetId), "Caller is not the owner");

        if (descriptionChangePrice > 0) {
            yieldToken.burn(msg.sender, descriptionChangePrice);
        }
        
        _planetDescription[planetId] = newDescription;

        emit DescriptionChanged(planetId, newDescription);
    }

    /**
    * @notice Clears the description of a planet, in case an inappropriate description has set
    */
    function clearDescription(uint256 planetId) external onlyOwner {
        delete _planetDescription[planetId];
        emit DescriptionCleared(planetId);
    }

    /**
    * Changes a name reserve state
    */
    function toggleReserveName(string memory name, bool isReserve) internal {
        _nameReserved[toLower(name)] = isReserve;
    }

    /**
    * Returns the name of the planet at index
    */
    function planetNameByIndex(uint256 index) public view returns (string memory) {
        return _planetName[index];
    }

    /**
    * Returns the description of the planet at index
    */
    function planetDescriptionByIndex(uint256 index) public view returns (string memory) {
        return _planetDescription[index];
    }

    /**
    * Returns true if the name has been reserved
    */
    function isNameReserved(string memory nameString) public view returns (bool) {
        return _nameReserved[toLower(nameString)];
    }

    /**
    * Validates a name string
    */
    function validateName(string memory newName) public pure returns (bool) {
        bytes memory b = bytes(newName);
        if (b.length < 1) return false;
        if (b.length > 25) return false; // Cannot be longer than 25 characters
        if (b[0] == 0x20) return false; // Leading space
        if (b[b.length - 1] == 0x20) return false; // Trailing space

        bytes1 lastChar = b[0];

        for(uint256 i; i < b.length; i++){
            bytes1 char = b[i];

            if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

            if(
                !(char >= 0x30 && char <= 0x39) && //9-0
                !(char >= 0x41 && char <= 0x5A) && //A-Z
                !(char >= 0x61 && char <= 0x7A) && //a-z
                !(char == 0x20) //space
            )
            return false;

            lastChar = char;
        }

        return true;
    }

    /**
    * Converts a string to lowercase
    */
    function toLower(string memory str) internal pure returns (string memory) {
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint256 i = 0; i < bStr.length; i++) {
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }
    

    /**
    * Tries to mint NFTs for an address called by the minter contract
    */
    function Mint(address to, uint256 quantity) external payable callerIsMinter {
        _safeMint(to, quantity);
    }


    /**
     * See {ERC721A-_baseURI}.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    /**
     * Sets the base URI of the metadata
     */
    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    /**
     * See {ERC721A-_setOwnersExplicit}.
     */
    function setOwnersExplicit(uint256 quantity) external onlyOwner {
        _setOwnersExplicit(quantity);
    }

    /**
     * Gets the total mints by an address
     */
    function numberMinted(address owner) external view returns (uint256) {
        return _numberMinted(owner);
    }

    /**
     * Gets the ownership info of a planet
     */
    function getOwnershipData(uint256 tokenId) external view returns (address) {
        return ownershipOf(tokenId);
    }
    
    /**
     * Returns the total supply for the minter contract
     */
    function totalSupplyExternal() external view returns (uint256) {
        return currentIndex;
    }
}

File 2 of 13 : 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);
    }
}

File 3 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 4 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 *
 * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 internal currentIndex;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => address) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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;

    uint256 public nextOwnerToExplicitlySet;



    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        require(index < totalSupply(), 'ERC721A: global index out of bounds');
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        require(index < balanceOf(owner), 'ERC721A: owner index out of bounds');
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                address ownership = _ownerships[i];
                if (ownership != address(0)) {
                    currOwnershipAddr = ownership;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        revert('ERC721A: unable to get token of owner by index');
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), 'ERC721A: number minted query for the zero address');
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (address) {
        require(_exists(tokenId), 'ERC721A: owner query for nonexistent token');

        unchecked {
            for (uint256 curr = tokenId;; curr--) {
                address ownership = _ownerships[curr];
                if (ownership != address(0)) {
                    return ownership;
                }
            }
        }

        revert('ERC721A: unable to determine the owner of token');
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId);
    }

    /**
     * @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 override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, 'ERC721A: approval to current owner');

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            'ERC721A: 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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), 'ERC721A: mint to the zero address');
        require(quantity != 0, 'ERC721A: quantity must be greater than 0');

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);

            _ownerships[startTokenId] = to;

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe) {
                    require(
                        _checkOnERC721Received(address(0), to, updatedIndex, _data),
                        'ERC721A: transfer to non ERC721Receiver implementer'
                    );
                }

                updatedIndex++;
            }

            currentIndex = updatedIndex;
        }

        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        address prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership, _msgSender()));

        require(isApprovedOrOwner, 'ERC721A: transfer caller is not owner nor approved');

        require(prevOwnership == from, 'ERC721A: transfer from incorrect owner');
        require(to != address(0), 'ERC721A: transfer to the zero address');

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId] = to;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId] == address(0)) {
                if (_exists(nextTokenId)) {
                    _ownerships[nextTokenId] = prevOwnership;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

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

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
    * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
    */
    function _setOwnersExplicit(uint256 quantity) internal {
        require(quantity != 0, 'quantity must be nonzero');
        require(currentIndex != 0, 'no tokens minted yet');
        uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet;
        require(_nextOwnerToExplicitlySet < currentIndex, 'all ownerships have been set');

        // Index underflow is impossible.
        // Counter or index overflow is incredibly unrealistic.
        unchecked {
            uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1;
            
            // Set the end index to be the last token index
            if (endIndex + 1 > currentIndex) {
                endIndex = currentIndex - 1;
            }
            
            for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) {
                if (_ownerships[i] == address(0)) {
                    _ownerships[i] = ownershipOf(i);
                }
            }
            
            nextOwnerToExplicitlySet = endIndex + 1;
        }
    }
}

File 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 13 : 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 11 of 13 : 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 12 of 13 : 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 13 of 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"planetId","type":"uint256"},{"indexed":false,"internalType":"string","name":"planetDescription","type":"string"}],"name":"DescriptionChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"planetId","type":"uint256"}],"name":"DescriptionCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"planetId","type":"uint256"},{"indexed":false,"internalType":"string","name":"planetName","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"planetId","type":"uint256"}],"name":"NameCleared","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"TOTAL_PLANETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetId","type":"uint256"},{"internalType":"string","name":"newDescription","type":"string"}],"name":"changeDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetId","type":"uint256"}],"name":"clearDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"planetId","type":"uint256"}],"name":"clearName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"descriptionChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","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":"isMinterLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"planetDescriptionByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"planetNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"yieldTokenAddress","type":"address"}],"name":"setYieldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyExternal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateDescriptionChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"updateMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateNameChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"contract IYieldToken","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405268056bc75e2d63100000600e5568056bc75e2d63100000600f556000601060146101000a81548160ff0219169083151502179055503480156200004657600080fd5b506040518060400160405280601081526020017f54726f766572736520506c616e657473000000000000000000000000000000008152506040518060400160405280600681526020017f504c414e45540000000000000000000000000000000000000000000000000000815250620000d3620000c76200010d60201b60201c565b6200011560201b60201c565b8160029080519060200190620000eb929190620001d9565b50806003908051906020019062000104929190620001d9565b505050620002ee565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001e79062000289565b90600052602060002090601f0160209004810192826200020b576000855562000257565b82601f106200022657805160ff191683800117855562000257565b8280016001018555821562000257579182015b828111156200025657825182559160200191906001019062000239565b5b5090506200026691906200026a565b5090565b5b80821115620002855760008160009055506001016200026b565b5090565b60006002820490506001821680620002a257607f821691505b60208210811415620002b957620002b8620002bf565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61591880620002fe6000396000f3fe6080604052600436106102725760003560e01c806370a082311161014f578063b88d4fde116100c1578063de6a06ed1161007a578063de6a06ed1461098b578063e13e08f8146109b4578063e985e9c5146109dd578063e9f7225d14610a1a578063ead61b6a14610a57578063f2fde38b14610a8257610272565b8063b88d4fde1461086b578063c39cbef114610894578063c87b56dd146108bd578063d7224ba0146108fa578063d9237bb214610925578063dc33e6811461094e57610272565b80637b73be21116101135780637b73be21146107495780638da5cb5b146107725780639231ab2a1461079d57806395d89b41146107da5780639ffdb65a14610805578063a22cb4651461084257610272565b806370a0823114610688578063715018a6146106c557806373f78fd9146106dc57806376d5de851461070757806376daebe11461073257610272565b806323ffce85116101e8578063498afa5c116101ac578063498afa5c146105685780634eb03f6e146105935780634f6ccce7146105bc57806355f804b3146105f95780636352211e146106225780636e7ced0f1461065f57610272565b806323ffce85146104855780632d20fb60146104ae5780632f745c59146104d757806342842e0e1461051457806345ca77381461053d57610272565b80630a1480f31161023a5780630a1480f3146103705780630f6798a5146103ad57806315b56d10146103c957806318160ddd146104065780631e688e101461043157806323b872dd1461045c57610272565b806301ffc9a71461027757806306fdde03146102b457806307546172146102df578063081812fc1461030a578063095ea7b314610347575b600080fd5b34801561028357600080fd5b5061029e6004803603810190610299919061408b565b610aab565b6040516102ab9190614860565b60405180910390f35b3480156102c057600080fd5b506102c9610bf5565b6040516102d69190614896565b60405180910390f35b3480156102eb57600080fd5b506102f4610c87565b60405161030191906147d0565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c919061417b565b610cad565b60405161033e91906147d0565b60405180910390f35b34801561035357600080fd5b5061036e6004803603810190610369919061401e565b610d32565b005b34801561037c57600080fd5b506103976004803603810190610392919061417b565b610e4b565b6040516103a49190614896565b60405180910390f35b6103c760048036038101906103c2919061401e565b610ef0565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190614132565b610f8e565b6040516103fd9190614860565b60405180910390f35b34801561041257600080fd5b5061041b610fcb565b6040516104289190614c38565b60405180910390f35b34801561043d57600080fd5b50610446610fd5565b6040516104539190614860565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190613f08565b610fe8565b005b34801561049157600080fd5b506104ac60048036038101906104a79190613e9b565b610ff8565b005b3480156104ba57600080fd5b506104d560048036038101906104d0919061417b565b6110b8565b005b3480156104e357600080fd5b506104fe60048036038101906104f9919061401e565b611140565b60405161050b9190614c38565b60405180910390f35b34801561052057600080fd5b5061053b60048036038101906105369190613f08565b6112b8565b005b34801561054957600080fd5b506105526112d8565b60405161055f9190614c38565b60405180910390f35b34801561057457600080fd5b5061057d6112de565b60405161058a9190614c38565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613e9b565b6112e4565b005b3480156105c857600080fd5b506105e360048036038101906105de919061417b565b6113fa565b6040516105f09190614c38565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b91906140e5565b61144d565b005b34801561062e57600080fd5b506106496004803603810190610644919061417b565b6114df565b60405161065691906147d0565b60405180910390f35b34801561066b57600080fd5b506106866004803603810190610681919061417b565b6114f1565b005b34801561069457600080fd5b506106af60048036038101906106aa9190613e9b565b6115c6565b6040516106bc9190614c38565b60405180910390f35b3480156106d157600080fd5b506106da6116af565b005b3480156106e857600080fd5b506106f1611737565b6040516106fe9190614c38565b60405180910390f35b34801561071357600080fd5b5061071c61173d565b604051610729919061487b565b60405180910390f35b34801561073e57600080fd5b50610747611763565b005b34801561075557600080fd5b50610770600480360381019061076b919061417b565b6117fc565b005b34801561077e57600080fd5b50610787611882565b60405161079491906147d0565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf919061417b565b6118ab565b6040516107d191906147d0565b60405180910390f35b3480156107e657600080fd5b506107ef6118bd565b6040516107fc9190614896565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190614132565b61194f565b6040516108399190614860565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613fde565b611c81565b005b34801561087757600080fd5b50610892600480360381019061088d9190613f5b565b611e02565b005b3480156108a057600080fd5b506108bb60048036038101906108b691906141a8565b611e5e565b005b3480156108c957600080fd5b506108e460048036038101906108df919061417b565b612248565b6040516108f19190614896565b60405180910390f35b34801561090657600080fd5b5061090f6122f0565b60405161091c9190614c38565b60405180910390f35b34801561093157600080fd5b5061094c6004803603810190610947919061417b565b6122f6565b005b34801561095a57600080fd5b5061097560048036038101906109709190613e9b565b6123cb565b6040516109829190614c38565b60405180910390f35b34801561099757600080fd5b506109b260048036038101906109ad91906141a8565b6123dd565b005b3480156109c057600080fd5b506109db60048036038101906109d6919061417b565b61255c565b005b3480156109e957600080fd5b50610a0460048036038101906109ff9190613ec8565b6125e2565b604051610a119190614860565b60405180910390f35b348015610a2657600080fd5b50610a416004803603810190610a3c919061417b565b612676565b604051610a4e9190614896565b60405180910390f35b348015610a6357600080fd5b50610a6c61271b565b604051610a799190614c38565b60405180910390f35b348015610a8e57600080fd5b50610aa96004803603810190610aa49190613e9b565b612725565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b7657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bde57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bee5750610bed8261281d565b5b9050919050565b606060028054610c0490614f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3090614f50565b8015610c7d5780601f10610c5257610100808354040283529160200191610c7d565b820191906000526020600020905b815481529060010190602001808311610c6057829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cb882612887565b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90614c18565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d3d826114df565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614b58565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dcd612895565b73ffffffffffffffffffffffffffffffffffffffff161480610dfc5750610dfb81610df6612895565b6125e2565b5b610e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e32906149f8565b60405180910390fd5b610e4683838361289d565b505050565b6060600d60008381526020019081526020016000208054610e6b90614f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9790614f50565b8015610ee45780601f10610eb957610100808354040283529160200191610ee4565b820191906000526020600020905b815481529060010190602001808311610ec757829003601f168201915b50505050509050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f77906148f8565b60405180910390fd5b610f8a828261294f565b5050565b6000600c610f9b8361296d565b604051610fa89190614795565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600154905090565b601060149054906101000a900460ff1681565b610ff3838383612b25565b505050565b611000612895565b73ffffffffffffffffffffffffffffffffffffffff1661101e611882565b73ffffffffffffffffffffffffffffffffffffffff1614611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106b90614a98565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110c0612895565b73ffffffffffffffffffffffffffffffffffffffff166110de611882565b73ffffffffffffffffffffffffffffffffffffffff1614611134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112b90614a98565b60405180910390fd5b61113d81612fca565b50565b600061114b836115c6565b821061118c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611183906148b8565b60405180910390fd5b6000611196610fcb565b905060008060005b838110156112765760006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611216578092505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611268578684141561125f5781955050505050506112b2565b83806001019450505b50808060010191505061119e565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614bd8565b60405180910390fd5b92915050565b6112d383838360405180602001604052806000815250611e02565b505050565b600e5481565b600f5481565b6112ec612895565b73ffffffffffffffffffffffffffffffffffffffff1661130a611882565b73ffffffffffffffffffffffffffffffffffffffff1614611360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135790614a98565b60405180910390fd5b60001515601060149054906101000a900460ff161515146113b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ad90614b18565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000611404610fcb565b8210611445576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143c90614978565b60405180910390fd5b819050919050565b611455612895565b73ffffffffffffffffffffffffffffffffffffffff16611473611882565b73ffffffffffffffffffffffffffffffffffffffff16146114c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c090614a98565b60405180910390fd5b8181600991906114da929190613b7e565b505050565b60006114ea826131ab565b9050919050565b6114f9612895565b73ffffffffffffffffffffffffffffffffffffffff16611517611882565b73ffffffffffffffffffffffffffffffffffffffff161461156d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156490614a98565b60405180910390fd5b600b6000828152602001908152602001600020600061158c9190613c04565b7f1f54aca8d5b951dcb1d276cc1f1bcaae0c125020f823fc799298f21d8307167f816040516115bb9190614c38565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614a38565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116b7612895565b73ffffffffffffffffffffffffffffffffffffffff166116d5611882565b73ffffffffffffffffffffffffffffffffffffffff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290614a98565b60405180910390fd5b6117356000613285565b565b61271081565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61176b612895565b73ffffffffffffffffffffffffffffffffffffffff16611789611882565b73ffffffffffffffffffffffffffffffffffffffff16146117df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d690614a98565b60405180910390fd5b6001601060146101000a81548160ff021916908315150217905550565b611804612895565b73ffffffffffffffffffffffffffffffffffffffff16611822611882565b73ffffffffffffffffffffffffffffffffffffffff1614611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f90614a98565b60405180910390fd5b80600e8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006118b6826131ab565b9050919050565b6060600380546118cc90614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546118f890614f50565b80156119455780601f1061191a57610100808354040283529160200191611945565b820191906000526020600020905b81548152906001019060200180831161192857829003601f168201915b5050505050905090565b600080829050600181511015611969576000915050611c7c565b60198151111561197d576000915050611c7c565b602060f81b81600081518110611996576119956150ba565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156119d3576000915050611c7c565b602060f81b81600183516119e79190614e2b565b815181106119f8576119f76150ba565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611a35576000915050611c7c565b600081600081518110611a4b57611a4a6150ba565b5b602001015160f81c60f81b905060005b8251811015611c74576000838281518110611a7957611a786150ba565b5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015611ae05750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15611af2576000945050505050611c7c565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611b4e5750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611bb45750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611bb25750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611c195750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c175750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611c4b5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611c5d576000945050505050611c7c565b809250508080611c6c90614fb3565b915050611a5b565b506001925050505b919050565b611c89612895565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cee90614ad8565b60405180910390fd5b8060076000611d04612895565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611db1612895565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611df69190614860565b60405180910390a35050565b611e0d848484612b25565b611e1984848484613349565b611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614b78565b60405180910390fd5b50505050565b611e67826114df565b73ffffffffffffffffffffffffffffffffffffffff16611e85612895565b73ffffffffffffffffffffffffffffffffffffffff1614611edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed2906148d8565b60405180910390fd5b60011515611ee88261194f565b151514611f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2190614bf8565b60405180910390fd5b6002600b6000848152602001908152602001600020604051611f4c919061477e565b602060405180830381855afa158015611f69573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611f8c919061405e565b600282604051611f9c9190614767565b602060405180830381855afa158015611fb9573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611fdc919061405e565b141561201d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201490614b38565b60405180910390fd5b6000151561202a82610f8e565b15151461206c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206390614a58565b60405180910390fd5b6000600b6000848152602001908152602001600020805461208c90614f50565b9050111561213b5761213a600b600084815260200190815260200160002080546120b590614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546120e190614f50565b801561212e5780601f106121035761010080835404028352916020019161212e565b820191906000526020600020905b81548152906001019060200180831161211157829003601f168201915b505050505060006134e0565b5b6121468160016134e0565b6000600e5411156121e357600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33600e546040518363ffffffff1660e01b81526004016121b0929190614837565b600060405180830381600087803b1580156121ca57600080fd5b505af11580156121de573d6000803e3d6000fd5b505050505b80600b6000848152602001908152602001600020908051906020019061220a929190613c44565b507f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b828260405161223c929190614c53565b60405180910390a15050565b606061225382612887565b612292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228990614ab8565b60405180910390fd5b600061229c613522565b90506000815114156122bd57604051806020016040528060008152506122e8565b806122c7846135b4565b6040516020016122d89291906147ac565b6040516020818303038152906040525b915050919050565b60085481565b6122fe612895565b73ffffffffffffffffffffffffffffffffffffffff1661231c611882565b73ffffffffffffffffffffffffffffffffffffffff1614612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236990614a98565b60405180910390fd5b600d600082815260200190815260200160002060006123919190613c04565b7f10fa05bf84877f739813bed176379895f9359eac4059ecb6cfddacb4aa0c36b3816040516123c09190614c38565b60405180910390a150565b60006123d682613715565b9050919050565b6123e6826114df565b73ffffffffffffffffffffffffffffffffffffffff16612404612895565b73ffffffffffffffffffffffffffffffffffffffff161461245a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612451906148d8565b60405180910390fd5b6000600f5411156124f757600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33600f546040518363ffffffff1660e01b81526004016124c4929190614837565b600060405180830381600087803b1580156124de57600080fd5b505af11580156124f2573d6000803e3d6000fd5b505050505b80600d6000848152602001908152602001600020908051906020019061251e929190613c44565b507ff2da8d33c1b28dc862c3260e93659ab53e6453f33919b9c86c39070dee2389ca8282604051612550929190614c53565b60405180910390a15050565b612564612895565b73ffffffffffffffffffffffffffffffffffffffff16612582611882565b73ffffffffffffffffffffffffffffffffffffffff16146125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90614a98565b60405180910390fd5b80600f8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600b6000838152602001908152602001600020805461269690614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546126c290614f50565b801561270f5780601f106126e45761010080835404028352916020019161270f565b820191906000526020600020905b8154815290600101906020018083116126f257829003601f168201915b50505050509050919050565b6000600154905090565b61272d612895565b73ffffffffffffffffffffffffffffffffffffffff1661274b611882565b73ffffffffffffffffffffffffffffffffffffffff16146127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614a98565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280890614918565b60405180910390fd5b61281a81613285565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6129698282604051806020016040528060008152506137fe565b5050565b606060008290506000815167ffffffffffffffff811115612991576129906150e9565b5b6040519080825280601f01601f1916602001820160405280156129c35781602001600182028036833780820191505090505b50905060005b8251811015612b1a5760418382815181106129e7576129e66150ba565b5b602001015160f81c60f81b60f81c60ff1610158015612a2a5750605a838281518110612a1657612a156150ba565b5b602001015160f81c60f81b60f81c60ff1611155b15612aa6576020838281518110612a4457612a436150ba565b5b602001015160f81c60f81b60f81c612a5c9190614dc3565b60f81b828281518110612a7257612a716150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b07565b828181518110612ab957612ab86150ba565b5b602001015160f81c60f81b828281518110612ad757612ad66150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8080612b1290614fb3565b9150506129c9565b508092505050919050565b6000612b30826131ab565b905060008173ffffffffffffffffffffffffffffffffffffffff16612b53612895565b73ffffffffffffffffffffffffffffffffffffffff161480612baf5750612b78612895565b73ffffffffffffffffffffffffffffffffffffffff16612b9784610cad565b73ffffffffffffffffffffffffffffffffffffffff16145b80612bc75750612bc682612bc1612895565b6125e2565b5b905080612c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0090614af8565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6e90614a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde90614998565b60405180910390fd5b612cf48585856001613810565b612d006000848461289d565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612f5a57612f0181612887565b15612f5957826004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fc38585856001613816565b5050505050565b600081141561300e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300590614a18565b60405180910390fd5b60006001541415613054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304b90614958565b60405180910390fd5b60006008549050600154811061309f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613096906149d8565b60405180910390fd5b600060018383010390506001546001820111156130be57600180540390505b60008290505b81811161319b57600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561318e5761313c816131ab565b6004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b80806001019150506130c4565b5060018101600881905550505050565b60006131b682612887565b6131f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ec90614938565b60405180910390fd5b60008290505b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613271578092505050613280565b508080600190039150506131fb565b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061336a8473ffffffffffffffffffffffffffffffffffffffff1661381c565b156134d3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613393612895565b8786866040518563ffffffff1660e01b81526004016133b594939291906147eb565b602060405180830381600087803b1580156133cf57600080fd5b505af192505050801561340057506040513d601f19601f820116820180604052508101906133fd91906140b8565b60015b613483573d8060008114613430576040519150601f19603f3d011682016040523d82523d6000602084013e613435565b606091505b5060008151141561347b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347290614b78565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134d8565b600190505b949350505050565b80600c6134ec8461296d565b6040516134f99190614795565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b60606009805461353190614f50565b80601f016020809104026020016040519081016040528092919081815260200182805461355d90614f50565b80156135aa5780601f1061357f576101008083540402835291602001916135aa565b820191906000526020600020905b81548152906001019060200180831161358d57829003601f168201915b5050505050905090565b606060008214156135fc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613710565b600082905060005b6000821461362e57808061361790614fb3565b915050600a826136279190614dfa565b9150613604565b60008167ffffffffffffffff81111561364a576136496150e9565b5b6040519080825280601f01601f19166020018201604052801561367c5781602001600182028036833780820191505090505b5090505b60008514613709576001826136959190614e2b565b9150600a856136a49190614ffc565b60306136b09190614d6d565b60f81b8183815181106136c6576136c56150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137029190614dfa565b9450613680565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d906149b8565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61380b838383600161383f565b505050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156138b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ad90614b98565b60405180910390fd5b60008414156138fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f190614bb8565b60405180910390fd5b6139076000868387613810565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600081905060005b85811015613b6157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613b4c57613b0c6000888488613349565b613b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4290614b78565b60405180910390fd5b5b81806001019250508080600101915050613a95565b508060018190555050613b776000868387613816565b5050505050565b828054613b8a90614f50565b90600052602060002090601f016020900481019282613bac5760008555613bf3565b82601f10613bc557803560ff1916838001178555613bf3565b82800160010185558215613bf3579182015b82811115613bf2578235825591602001919060010190613bd7565b5b509050613c009190613cca565b5090565b508054613c1090614f50565b6000825580601f10613c225750613c41565b601f016020900490600052602060002090810190613c409190613cca565b5b50565b828054613c5090614f50565b90600052602060002090601f016020900481019282613c725760008555613cb9565b82601f10613c8b57805160ff1916838001178555613cb9565b82800160010185558215613cb9579182015b82811115613cb8578251825591602001919060010190613c9d565b5b509050613cc69190613cca565b5090565b5b80821115613ce3576000816000905550600101613ccb565b5090565b6000613cfa613cf584614ca8565b614c83565b905082815260208101848484011115613d1657613d15615127565b5b613d21848285614f0e565b509392505050565b6000613d3c613d3784614cd9565b614c83565b905082815260208101848484011115613d5857613d57615127565b5b613d63848285614f0e565b509392505050565b600081359050613d7a8161586f565b92915050565b600081359050613d8f81615886565b92915050565b600081519050613da48161589d565b92915050565b600081359050613db9816158b4565b92915050565b600081519050613dce816158b4565b92915050565b600082601f830112613de957613de861511d565b5b8135613df9848260208601613ce7565b91505092915050565b60008083601f840112613e1857613e1761511d565b5b8235905067ffffffffffffffff811115613e3557613e34615118565b5b602083019150836001820283011115613e5157613e50615122565b5b9250929050565b600082601f830112613e6d57613e6c61511d565b5b8135613e7d848260208601613d29565b91505092915050565b600081359050613e95816158cb565b92915050565b600060208284031215613eb157613eb0615131565b5b6000613ebf84828501613d6b565b91505092915050565b60008060408385031215613edf57613ede615131565b5b6000613eed85828601613d6b565b9250506020613efe85828601613d6b565b9150509250929050565b600080600060608486031215613f2157613f20615131565b5b6000613f2f86828701613d6b565b9350506020613f4086828701613d6b565b9250506040613f5186828701613e86565b9150509250925092565b60008060008060808587031215613f7557613f74615131565b5b6000613f8387828801613d6b565b9450506020613f9487828801613d6b565b9350506040613fa587828801613e86565b925050606085013567ffffffffffffffff811115613fc657613fc561512c565b5b613fd287828801613dd4565b91505092959194509250565b60008060408385031215613ff557613ff4615131565b5b600061400385828601613d6b565b925050602061401485828601613d80565b9150509250929050565b6000806040838503121561403557614034615131565b5b600061404385828601613d6b565b925050602061405485828601613e86565b9150509250929050565b60006020828403121561407457614073615131565b5b600061408284828501613d95565b91505092915050565b6000602082840312156140a1576140a0615131565b5b60006140af84828501613daa565b91505092915050565b6000602082840312156140ce576140cd615131565b5b60006140dc84828501613dbf565b91505092915050565b600080602083850312156140fc576140fb615131565b5b600083013567ffffffffffffffff81111561411a5761411961512c565b5b61412685828601613e02565b92509250509250929050565b60006020828403121561414857614147615131565b5b600082013567ffffffffffffffff8111156141665761416561512c565b5b61417284828501613e58565b91505092915050565b60006020828403121561419157614190615131565b5b600061419f84828501613e86565b91505092915050565b600080604083850312156141bf576141be615131565b5b60006141cd85828601613e86565b925050602083013567ffffffffffffffff8111156141ee576141ed61512c565b5b6141fa85828601613e58565b9150509250929050565b61420d81614e5f565b82525050565b61421c81614e71565b82525050565b600061422d82614d1f565b6142378185614d35565b9350614247818560208601614f1d565b61425081615136565b840191505092915050565b600061426682614d1f565b6142708185614d46565b9350614280818560208601614f1d565b80840191505092915050565b6000815461429981614f50565b6142a38186614d46565b945060018216600081146142be57600181146142cf57614302565b60ff19831686528186019350614302565b6142d885614d0a565b60005b838110156142fa578154818901526001820191506020810190506142db565b838801955050505b50505092915050565b61431481614eea565b82525050565b600061432582614d2a565b61432f8185614d51565b935061433f818560208601614f1d565b61434881615136565b840191505092915050565b600061435e82614d2a565b6143688185614d62565b9350614378818560208601614f1d565b80840191505092915050565b6000614391602283614d51565b915061439c82615147565b604082019050919050565b60006143b4601783614d51565b91506143bf82615196565b602082019050919050565b60006143d7601c83614d51565b91506143e2826151bf565b602082019050919050565b60006143fa602683614d51565b9150614405826151e8565b604082019050919050565b600061441d602a83614d51565b915061442882615237565b604082019050919050565b6000614440601483614d51565b915061444b82615286565b602082019050919050565b6000614463602383614d51565b915061446e826152af565b604082019050919050565b6000614486602583614d51565b9150614491826152fe565b604082019050919050565b60006144a9603183614d51565b91506144b48261534d565b604082019050919050565b60006144cc601c83614d51565b91506144d78261539c565b602082019050919050565b60006144ef603983614d51565b91506144fa826153c5565b604082019050919050565b6000614512601883614d51565b915061451d82615414565b602082019050919050565b6000614535602b83614d51565b91506145408261543d565b604082019050919050565b6000614558601583614d51565b91506145638261548c565b602082019050919050565b600061457b602683614d51565b9150614586826154b5565b604082019050919050565b600061459e602083614d51565b91506145a982615504565b602082019050919050565b60006145c1602f83614d51565b91506145cc8261552d565b604082019050919050565b60006145e4601a83614d51565b91506145ef8261557c565b602082019050919050565b6000614607603283614d51565b9150614612826155a5565b604082019050919050565b600061462a601a83614d51565b9150614635826155f4565b602082019050919050565b600061464d602383614d51565b91506146588261561d565b604082019050919050565b6000614670602283614d51565b915061467b8261566c565b604082019050919050565b6000614693603383614d51565b915061469e826156bb565b604082019050919050565b60006146b6602183614d51565b91506146c18261570a565b604082019050919050565b60006146d9602883614d51565b91506146e482615759565b604082019050919050565b60006146fc602e83614d51565b9150614707826157a8565b604082019050919050565b600061471f601483614d51565b915061472a826157f7565b602082019050919050565b6000614742602d83614d51565b915061474d82615820565b604082019050919050565b61476181614ed3565b82525050565b6000614773828461425b565b915081905092915050565b600061478a828461428c565b915081905092915050565b60006147a18284614353565b915081905092915050565b60006147b88285614353565b91506147c48284614353565b91508190509392505050565b60006020820190506147e56000830184614204565b92915050565b60006080820190506148006000830187614204565b61480d6020830186614204565b61481a6040830185614758565b818103606083015261482c8184614222565b905095945050505050565b600060408201905061484c6000830185614204565b6148596020830184614758565b9392505050565b60006020820190506148756000830184614213565b92915050565b6000602082019050614890600083018461430b565b92915050565b600060208201905081810360008301526148b0818461431a565b905092915050565b600060208201905081810360008301526148d181614384565b9050919050565b600060208201905081810360008301526148f1816143a7565b9050919050565b60006020820190508181036000830152614911816143ca565b9050919050565b60006020820190508181036000830152614931816143ed565b9050919050565b6000602082019050818103600083015261495181614410565b9050919050565b6000602082019050818103600083015261497181614433565b9050919050565b6000602082019050818103600083015261499181614456565b9050919050565b600060208201905081810360008301526149b181614479565b9050919050565b600060208201905081810360008301526149d18161449c565b9050919050565b600060208201905081810360008301526149f1816144bf565b9050919050565b60006020820190508181036000830152614a11816144e2565b9050919050565b60006020820190508181036000830152614a3181614505565b9050919050565b60006020820190508181036000830152614a5181614528565b9050919050565b60006020820190508181036000830152614a718161454b565b9050919050565b60006020820190508181036000830152614a918161456e565b9050919050565b60006020820190508181036000830152614ab181614591565b9050919050565b60006020820190508181036000830152614ad1816145b4565b9050919050565b60006020820190508181036000830152614af1816145d7565b9050919050565b60006020820190508181036000830152614b11816145fa565b9050919050565b60006020820190508181036000830152614b318161461d565b9050919050565b60006020820190508181036000830152614b5181614640565b9050919050565b60006020820190508181036000830152614b7181614663565b9050919050565b60006020820190508181036000830152614b9181614686565b9050919050565b60006020820190508181036000830152614bb1816146a9565b9050919050565b60006020820190508181036000830152614bd1816146cc565b9050919050565b60006020820190508181036000830152614bf1816146ef565b9050919050565b60006020820190508181036000830152614c1181614712565b9050919050565b60006020820190508181036000830152614c3181614735565b9050919050565b6000602082019050614c4d6000830184614758565b92915050565b6000604082019050614c686000830185614758565b8181036020830152614c7a818461431a565b90509392505050565b6000614c8d614c9e565b9050614c998282614f82565b919050565b6000604051905090565b600067ffffffffffffffff821115614cc357614cc26150e9565b5b614ccc82615136565b9050602081019050919050565b600067ffffffffffffffff821115614cf457614cf36150e9565b5b614cfd82615136565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7882614ed3565b9150614d8383614ed3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614db857614db761502d565b5b828201905092915050565b6000614dce82614edd565b9150614dd983614edd565b92508260ff03821115614def57614dee61502d565b5b828201905092915050565b6000614e0582614ed3565b9150614e1083614ed3565b925082614e2057614e1f61505c565b5b828204905092915050565b6000614e3682614ed3565b9150614e4183614ed3565b925082821015614e5457614e5361502d565b5b828203905092915050565b6000614e6a82614eb3565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614ef582614efc565b9050919050565b6000614f0782614eb3565b9050919050565b82818337600083830152505050565b60005b83811015614f3b578082015181840152602081019050614f20565b83811115614f4a576000848401525b50505050565b60006002820490506001821680614f6857607f821691505b60208210811415614f7c57614f7b61508b565b5b50919050565b614f8b82615136565b810181811067ffffffffffffffff82111715614faa57614fa96150e9565b5b80604052505050565b6000614fbe82614ed3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ff157614ff061502d565b5b600182019050919050565b600061500782614ed3565b915061501283614ed3565b9250826150225761502161505c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000600082015250565b7f5468652063616c6c6572206973206e6f7420746865206d696e74657200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f6e6f20746f6b656e73206d696e74656420796574000000000000000000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b7f616c6c206f776e657273686970732068617665206265656e2073657400000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000600082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4e616d6520616c72656164792072657365727665640000000000000000000000600082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4d696e746572206f776e6572736869702072656e6f756e636564000000000000600082015250565b7f4e6577206e616d652069732073616d65206173207468652063757272656e742060008201527f6f6e650000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000600082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b61587881614e5f565b811461588357600080fd5b50565b61588f81614e71565b811461589a57600080fd5b50565b6158a681614e7d565b81146158b157600080fd5b50565b6158bd81614e87565b81146158c857600080fd5b50565b6158d481614ed3565b81146158df57600080fd5b5056fea264697066735822122089921a07ff36c853b3dbf7b36c28bd011cfb94cea3234b098745c90e7a620dc964736f6c63430008060033

Deployed Bytecode

0x6080604052600436106102725760003560e01c806370a082311161014f578063b88d4fde116100c1578063de6a06ed1161007a578063de6a06ed1461098b578063e13e08f8146109b4578063e985e9c5146109dd578063e9f7225d14610a1a578063ead61b6a14610a57578063f2fde38b14610a8257610272565b8063b88d4fde1461086b578063c39cbef114610894578063c87b56dd146108bd578063d7224ba0146108fa578063d9237bb214610925578063dc33e6811461094e57610272565b80637b73be21116101135780637b73be21146107495780638da5cb5b146107725780639231ab2a1461079d57806395d89b41146107da5780639ffdb65a14610805578063a22cb4651461084257610272565b806370a0823114610688578063715018a6146106c557806373f78fd9146106dc57806376d5de851461070757806376daebe11461073257610272565b806323ffce85116101e8578063498afa5c116101ac578063498afa5c146105685780634eb03f6e146105935780634f6ccce7146105bc57806355f804b3146105f95780636352211e146106225780636e7ced0f1461065f57610272565b806323ffce85146104855780632d20fb60146104ae5780632f745c59146104d757806342842e0e1461051457806345ca77381461053d57610272565b80630a1480f31161023a5780630a1480f3146103705780630f6798a5146103ad57806315b56d10146103c957806318160ddd146104065780631e688e101461043157806323b872dd1461045c57610272565b806301ffc9a71461027757806306fdde03146102b457806307546172146102df578063081812fc1461030a578063095ea7b314610347575b600080fd5b34801561028357600080fd5b5061029e6004803603810190610299919061408b565b610aab565b6040516102ab9190614860565b60405180910390f35b3480156102c057600080fd5b506102c9610bf5565b6040516102d69190614896565b60405180910390f35b3480156102eb57600080fd5b506102f4610c87565b60405161030191906147d0565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c919061417b565b610cad565b60405161033e91906147d0565b60405180910390f35b34801561035357600080fd5b5061036e6004803603810190610369919061401e565b610d32565b005b34801561037c57600080fd5b506103976004803603810190610392919061417b565b610e4b565b6040516103a49190614896565b60405180910390f35b6103c760048036038101906103c2919061401e565b610ef0565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190614132565b610f8e565b6040516103fd9190614860565b60405180910390f35b34801561041257600080fd5b5061041b610fcb565b6040516104289190614c38565b60405180910390f35b34801561043d57600080fd5b50610446610fd5565b6040516104539190614860565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190613f08565b610fe8565b005b34801561049157600080fd5b506104ac60048036038101906104a79190613e9b565b610ff8565b005b3480156104ba57600080fd5b506104d560048036038101906104d0919061417b565b6110b8565b005b3480156104e357600080fd5b506104fe60048036038101906104f9919061401e565b611140565b60405161050b9190614c38565b60405180910390f35b34801561052057600080fd5b5061053b60048036038101906105369190613f08565b6112b8565b005b34801561054957600080fd5b506105526112d8565b60405161055f9190614c38565b60405180910390f35b34801561057457600080fd5b5061057d6112de565b60405161058a9190614c38565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613e9b565b6112e4565b005b3480156105c857600080fd5b506105e360048036038101906105de919061417b565b6113fa565b6040516105f09190614c38565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b91906140e5565b61144d565b005b34801561062e57600080fd5b506106496004803603810190610644919061417b565b6114df565b60405161065691906147d0565b60405180910390f35b34801561066b57600080fd5b506106866004803603810190610681919061417b565b6114f1565b005b34801561069457600080fd5b506106af60048036038101906106aa9190613e9b565b6115c6565b6040516106bc9190614c38565b60405180910390f35b3480156106d157600080fd5b506106da6116af565b005b3480156106e857600080fd5b506106f1611737565b6040516106fe9190614c38565b60405180910390f35b34801561071357600080fd5b5061071c61173d565b604051610729919061487b565b60405180910390f35b34801561073e57600080fd5b50610747611763565b005b34801561075557600080fd5b50610770600480360381019061076b919061417b565b6117fc565b005b34801561077e57600080fd5b50610787611882565b60405161079491906147d0565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf919061417b565b6118ab565b6040516107d191906147d0565b60405180910390f35b3480156107e657600080fd5b506107ef6118bd565b6040516107fc9190614896565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190614132565b61194f565b6040516108399190614860565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613fde565b611c81565b005b34801561087757600080fd5b50610892600480360381019061088d9190613f5b565b611e02565b005b3480156108a057600080fd5b506108bb60048036038101906108b691906141a8565b611e5e565b005b3480156108c957600080fd5b506108e460048036038101906108df919061417b565b612248565b6040516108f19190614896565b60405180910390f35b34801561090657600080fd5b5061090f6122f0565b60405161091c9190614c38565b60405180910390f35b34801561093157600080fd5b5061094c6004803603810190610947919061417b565b6122f6565b005b34801561095a57600080fd5b5061097560048036038101906109709190613e9b565b6123cb565b6040516109829190614c38565b60405180910390f35b34801561099757600080fd5b506109b260048036038101906109ad91906141a8565b6123dd565b005b3480156109c057600080fd5b506109db60048036038101906109d6919061417b565b61255c565b005b3480156109e957600080fd5b50610a0460048036038101906109ff9190613ec8565b6125e2565b604051610a119190614860565b60405180910390f35b348015610a2657600080fd5b50610a416004803603810190610a3c919061417b565b612676565b604051610a4e9190614896565b60405180910390f35b348015610a6357600080fd5b50610a6c61271b565b604051610a799190614c38565b60405180910390f35b348015610a8e57600080fd5b50610aa96004803603810190610aa49190613e9b565b612725565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b7657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bde57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bee5750610bed8261281d565b5b9050919050565b606060028054610c0490614f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3090614f50565b8015610c7d5780601f10610c5257610100808354040283529160200191610c7d565b820191906000526020600020905b815481529060010190602001808311610c6057829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610cb882612887565b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90614c18565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d3d826114df565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614b58565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dcd612895565b73ffffffffffffffffffffffffffffffffffffffff161480610dfc5750610dfb81610df6612895565b6125e2565b5b610e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e32906149f8565b60405180910390fd5b610e4683838361289d565b505050565b6060600d60008381526020019081526020016000208054610e6b90614f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9790614f50565b8015610ee45780601f10610eb957610100808354040283529160200191610ee4565b820191906000526020600020905b815481529060010190602001808311610ec757829003601f168201915b50505050509050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f77906148f8565b60405180910390fd5b610f8a828261294f565b5050565b6000600c610f9b8361296d565b604051610fa89190614795565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600154905090565b601060149054906101000a900460ff1681565b610ff3838383612b25565b505050565b611000612895565b73ffffffffffffffffffffffffffffffffffffffff1661101e611882565b73ffffffffffffffffffffffffffffffffffffffff1614611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106b90614a98565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110c0612895565b73ffffffffffffffffffffffffffffffffffffffff166110de611882565b73ffffffffffffffffffffffffffffffffffffffff1614611134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112b90614a98565b60405180910390fd5b61113d81612fca565b50565b600061114b836115c6565b821061118c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611183906148b8565b60405180910390fd5b6000611196610fcb565b905060008060005b838110156112765760006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611216578092505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611268578684141561125f5781955050505050506112b2565b83806001019450505b50808060010191505061119e565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614bd8565b60405180910390fd5b92915050565b6112d383838360405180602001604052806000815250611e02565b505050565b600e5481565b600f5481565b6112ec612895565b73ffffffffffffffffffffffffffffffffffffffff1661130a611882565b73ffffffffffffffffffffffffffffffffffffffff1614611360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135790614a98565b60405180910390fd5b60001515601060149054906101000a900460ff161515146113b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ad90614b18565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000611404610fcb565b8210611445576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143c90614978565b60405180910390fd5b819050919050565b611455612895565b73ffffffffffffffffffffffffffffffffffffffff16611473611882565b73ffffffffffffffffffffffffffffffffffffffff16146114c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c090614a98565b60405180910390fd5b8181600991906114da929190613b7e565b505050565b60006114ea826131ab565b9050919050565b6114f9612895565b73ffffffffffffffffffffffffffffffffffffffff16611517611882565b73ffffffffffffffffffffffffffffffffffffffff161461156d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156490614a98565b60405180910390fd5b600b6000828152602001908152602001600020600061158c9190613c04565b7f1f54aca8d5b951dcb1d276cc1f1bcaae0c125020f823fc799298f21d8307167f816040516115bb9190614c38565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614a38565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116b7612895565b73ffffffffffffffffffffffffffffffffffffffff166116d5611882565b73ffffffffffffffffffffffffffffffffffffffff161461172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290614a98565b60405180910390fd5b6117356000613285565b565b61271081565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61176b612895565b73ffffffffffffffffffffffffffffffffffffffff16611789611882565b73ffffffffffffffffffffffffffffffffffffffff16146117df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d690614a98565b60405180910390fd5b6001601060146101000a81548160ff021916908315150217905550565b611804612895565b73ffffffffffffffffffffffffffffffffffffffff16611822611882565b73ffffffffffffffffffffffffffffffffffffffff1614611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f90614a98565b60405180910390fd5b80600e8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006118b6826131ab565b9050919050565b6060600380546118cc90614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546118f890614f50565b80156119455780601f1061191a57610100808354040283529160200191611945565b820191906000526020600020905b81548152906001019060200180831161192857829003601f168201915b5050505050905090565b600080829050600181511015611969576000915050611c7c565b60198151111561197d576000915050611c7c565b602060f81b81600081518110611996576119956150ba565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156119d3576000915050611c7c565b602060f81b81600183516119e79190614e2b565b815181106119f8576119f76150ba565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611a35576000915050611c7c565b600081600081518110611a4b57611a4a6150ba565b5b602001015160f81c60f81b905060005b8251811015611c74576000838281518110611a7957611a786150ba565b5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015611ae05750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15611af2576000945050505050611c7c565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611b4e5750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015611bb45750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611bb25750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611c195750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611c175750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015611c4b5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611c5d576000945050505050611c7c565b809250508080611c6c90614fb3565b915050611a5b565b506001925050505b919050565b611c89612895565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cee90614ad8565b60405180910390fd5b8060076000611d04612895565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611db1612895565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611df69190614860565b60405180910390a35050565b611e0d848484612b25565b611e1984848484613349565b611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614b78565b60405180910390fd5b50505050565b611e67826114df565b73ffffffffffffffffffffffffffffffffffffffff16611e85612895565b73ffffffffffffffffffffffffffffffffffffffff1614611edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed2906148d8565b60405180910390fd5b60011515611ee88261194f565b151514611f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2190614bf8565b60405180910390fd5b6002600b6000848152602001908152602001600020604051611f4c919061477e565b602060405180830381855afa158015611f69573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611f8c919061405e565b600282604051611f9c9190614767565b602060405180830381855afa158015611fb9573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611fdc919061405e565b141561201d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201490614b38565b60405180910390fd5b6000151561202a82610f8e565b15151461206c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206390614a58565b60405180910390fd5b6000600b6000848152602001908152602001600020805461208c90614f50565b9050111561213b5761213a600b600084815260200190815260200160002080546120b590614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546120e190614f50565b801561212e5780601f106121035761010080835404028352916020019161212e565b820191906000526020600020905b81548152906001019060200180831161211157829003601f168201915b505050505060006134e0565b5b6121468160016134e0565b6000600e5411156121e357600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33600e546040518363ffffffff1660e01b81526004016121b0929190614837565b600060405180830381600087803b1580156121ca57600080fd5b505af11580156121de573d6000803e3d6000fd5b505050505b80600b6000848152602001908152602001600020908051906020019061220a929190613c44565b507f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b828260405161223c929190614c53565b60405180910390a15050565b606061225382612887565b612292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228990614ab8565b60405180910390fd5b600061229c613522565b90506000815114156122bd57604051806020016040528060008152506122e8565b806122c7846135b4565b6040516020016122d89291906147ac565b6040516020818303038152906040525b915050919050565b60085481565b6122fe612895565b73ffffffffffffffffffffffffffffffffffffffff1661231c611882565b73ffffffffffffffffffffffffffffffffffffffff1614612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236990614a98565b60405180910390fd5b600d600082815260200190815260200160002060006123919190613c04565b7f10fa05bf84877f739813bed176379895f9359eac4059ecb6cfddacb4aa0c36b3816040516123c09190614c38565b60405180910390a150565b60006123d682613715565b9050919050565b6123e6826114df565b73ffffffffffffffffffffffffffffffffffffffff16612404612895565b73ffffffffffffffffffffffffffffffffffffffff161461245a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612451906148d8565b60405180910390fd5b6000600f5411156124f757600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33600f546040518363ffffffff1660e01b81526004016124c4929190614837565b600060405180830381600087803b1580156124de57600080fd5b505af11580156124f2573d6000803e3d6000fd5b505050505b80600d6000848152602001908152602001600020908051906020019061251e929190613c44565b507ff2da8d33c1b28dc862c3260e93659ab53e6453f33919b9c86c39070dee2389ca8282604051612550929190614c53565b60405180910390a15050565b612564612895565b73ffffffffffffffffffffffffffffffffffffffff16612582611882565b73ffffffffffffffffffffffffffffffffffffffff16146125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90614a98565b60405180910390fd5b80600f8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600b6000838152602001908152602001600020805461269690614f50565b80601f01602080910402602001604051908101604052809291908181526020018280546126c290614f50565b801561270f5780601f106126e45761010080835404028352916020019161270f565b820191906000526020600020905b8154815290600101906020018083116126f257829003601f168201915b50505050509050919050565b6000600154905090565b61272d612895565b73ffffffffffffffffffffffffffffffffffffffff1661274b611882565b73ffffffffffffffffffffffffffffffffffffffff16146127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614a98565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280890614918565b60405180910390fd5b61281a81613285565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6129698282604051806020016040528060008152506137fe565b5050565b606060008290506000815167ffffffffffffffff811115612991576129906150e9565b5b6040519080825280601f01601f1916602001820160405280156129c35781602001600182028036833780820191505090505b50905060005b8251811015612b1a5760418382815181106129e7576129e66150ba565b5b602001015160f81c60f81b60f81c60ff1610158015612a2a5750605a838281518110612a1657612a156150ba565b5b602001015160f81c60f81b60f81c60ff1611155b15612aa6576020838281518110612a4457612a436150ba565b5b602001015160f81c60f81b60f81c612a5c9190614dc3565b60f81b828281518110612a7257612a716150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b07565b828181518110612ab957612ab86150ba565b5b602001015160f81c60f81b828281518110612ad757612ad66150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8080612b1290614fb3565b9150506129c9565b508092505050919050565b6000612b30826131ab565b905060008173ffffffffffffffffffffffffffffffffffffffff16612b53612895565b73ffffffffffffffffffffffffffffffffffffffff161480612baf5750612b78612895565b73ffffffffffffffffffffffffffffffffffffffff16612b9784610cad565b73ffffffffffffffffffffffffffffffffffffffff16145b80612bc75750612bc682612bc1612895565b6125e2565b5b905080612c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0090614af8565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6e90614a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde90614998565b60405180910390fd5b612cf48585856001613810565b612d006000848461289d565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612f5a57612f0181612887565b15612f5957826004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fc38585856001613816565b5050505050565b600081141561300e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300590614a18565b60405180910390fd5b60006001541415613054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304b90614958565b60405180910390fd5b60006008549050600154811061309f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613096906149d8565b60405180910390fd5b600060018383010390506001546001820111156130be57600180540390505b60008290505b81811161319b57600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561318e5761313c816131ab565b6004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b80806001019150506130c4565b5060018101600881905550505050565b60006131b682612887565b6131f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ec90614938565b60405180910390fd5b60008290505b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613271578092505050613280565b508080600190039150506131fb565b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061336a8473ffffffffffffffffffffffffffffffffffffffff1661381c565b156134d3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613393612895565b8786866040518563ffffffff1660e01b81526004016133b594939291906147eb565b602060405180830381600087803b1580156133cf57600080fd5b505af192505050801561340057506040513d601f19601f820116820180604052508101906133fd91906140b8565b60015b613483573d8060008114613430576040519150601f19603f3d011682016040523d82523d6000602084013e613435565b606091505b5060008151141561347b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347290614b78565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134d8565b600190505b949350505050565b80600c6134ec8461296d565b6040516134f99190614795565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b60606009805461353190614f50565b80601f016020809104026020016040519081016040528092919081815260200182805461355d90614f50565b80156135aa5780601f1061357f576101008083540402835291602001916135aa565b820191906000526020600020905b81548152906001019060200180831161358d57829003601f168201915b5050505050905090565b606060008214156135fc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613710565b600082905060005b6000821461362e57808061361790614fb3565b915050600a826136279190614dfa565b9150613604565b60008167ffffffffffffffff81111561364a576136496150e9565b5b6040519080825280601f01601f19166020018201604052801561367c5781602001600182028036833780820191505090505b5090505b60008514613709576001826136959190614e2b565b9150600a856136a49190614ffc565b60306136b09190614d6d565b60f81b8183815181106136c6576136c56150ba565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137029190614dfa565b9450613680565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d906149b8565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61380b838383600161383f565b505050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156138b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ad90614b98565b60405180910390fd5b60008414156138fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f190614bb8565b60405180910390fd5b6139076000868387613810565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600081905060005b85811015613b6157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613b4c57613b0c6000888488613349565b613b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4290614b78565b60405180910390fd5b5b81806001019250508080600101915050613a95565b508060018190555050613b776000868387613816565b5050505050565b828054613b8a90614f50565b90600052602060002090601f016020900481019282613bac5760008555613bf3565b82601f10613bc557803560ff1916838001178555613bf3565b82800160010185558215613bf3579182015b82811115613bf2578235825591602001919060010190613bd7565b5b509050613c009190613cca565b5090565b508054613c1090614f50565b6000825580601f10613c225750613c41565b601f016020900490600052602060002090810190613c409190613cca565b5b50565b828054613c5090614f50565b90600052602060002090601f016020900481019282613c725760008555613cb9565b82601f10613c8b57805160ff1916838001178555613cb9565b82800160010185558215613cb9579182015b82811115613cb8578251825591602001919060010190613c9d565b5b509050613cc69190613cca565b5090565b5b80821115613ce3576000816000905550600101613ccb565b5090565b6000613cfa613cf584614ca8565b614c83565b905082815260208101848484011115613d1657613d15615127565b5b613d21848285614f0e565b509392505050565b6000613d3c613d3784614cd9565b614c83565b905082815260208101848484011115613d5857613d57615127565b5b613d63848285614f0e565b509392505050565b600081359050613d7a8161586f565b92915050565b600081359050613d8f81615886565b92915050565b600081519050613da48161589d565b92915050565b600081359050613db9816158b4565b92915050565b600081519050613dce816158b4565b92915050565b600082601f830112613de957613de861511d565b5b8135613df9848260208601613ce7565b91505092915050565b60008083601f840112613e1857613e1761511d565b5b8235905067ffffffffffffffff811115613e3557613e34615118565b5b602083019150836001820283011115613e5157613e50615122565b5b9250929050565b600082601f830112613e6d57613e6c61511d565b5b8135613e7d848260208601613d29565b91505092915050565b600081359050613e95816158cb565b92915050565b600060208284031215613eb157613eb0615131565b5b6000613ebf84828501613d6b565b91505092915050565b60008060408385031215613edf57613ede615131565b5b6000613eed85828601613d6b565b9250506020613efe85828601613d6b565b9150509250929050565b600080600060608486031215613f2157613f20615131565b5b6000613f2f86828701613d6b565b9350506020613f4086828701613d6b565b9250506040613f5186828701613e86565b9150509250925092565b60008060008060808587031215613f7557613f74615131565b5b6000613f8387828801613d6b565b9450506020613f9487828801613d6b565b9350506040613fa587828801613e86565b925050606085013567ffffffffffffffff811115613fc657613fc561512c565b5b613fd287828801613dd4565b91505092959194509250565b60008060408385031215613ff557613ff4615131565b5b600061400385828601613d6b565b925050602061401485828601613d80565b9150509250929050565b6000806040838503121561403557614034615131565b5b600061404385828601613d6b565b925050602061405485828601613e86565b9150509250929050565b60006020828403121561407457614073615131565b5b600061408284828501613d95565b91505092915050565b6000602082840312156140a1576140a0615131565b5b60006140af84828501613daa565b91505092915050565b6000602082840312156140ce576140cd615131565b5b60006140dc84828501613dbf565b91505092915050565b600080602083850312156140fc576140fb615131565b5b600083013567ffffffffffffffff81111561411a5761411961512c565b5b61412685828601613e02565b92509250509250929050565b60006020828403121561414857614147615131565b5b600082013567ffffffffffffffff8111156141665761416561512c565b5b61417284828501613e58565b91505092915050565b60006020828403121561419157614190615131565b5b600061419f84828501613e86565b91505092915050565b600080604083850312156141bf576141be615131565b5b60006141cd85828601613e86565b925050602083013567ffffffffffffffff8111156141ee576141ed61512c565b5b6141fa85828601613e58565b9150509250929050565b61420d81614e5f565b82525050565b61421c81614e71565b82525050565b600061422d82614d1f565b6142378185614d35565b9350614247818560208601614f1d565b61425081615136565b840191505092915050565b600061426682614d1f565b6142708185614d46565b9350614280818560208601614f1d565b80840191505092915050565b6000815461429981614f50565b6142a38186614d46565b945060018216600081146142be57600181146142cf57614302565b60ff19831686528186019350614302565b6142d885614d0a565b60005b838110156142fa578154818901526001820191506020810190506142db565b838801955050505b50505092915050565b61431481614eea565b82525050565b600061432582614d2a565b61432f8185614d51565b935061433f818560208601614f1d565b61434881615136565b840191505092915050565b600061435e82614d2a565b6143688185614d62565b9350614378818560208601614f1d565b80840191505092915050565b6000614391602283614d51565b915061439c82615147565b604082019050919050565b60006143b4601783614d51565b91506143bf82615196565b602082019050919050565b60006143d7601c83614d51565b91506143e2826151bf565b602082019050919050565b60006143fa602683614d51565b9150614405826151e8565b604082019050919050565b600061441d602a83614d51565b915061442882615237565b604082019050919050565b6000614440601483614d51565b915061444b82615286565b602082019050919050565b6000614463602383614d51565b915061446e826152af565b604082019050919050565b6000614486602583614d51565b9150614491826152fe565b604082019050919050565b60006144a9603183614d51565b91506144b48261534d565b604082019050919050565b60006144cc601c83614d51565b91506144d78261539c565b602082019050919050565b60006144ef603983614d51565b91506144fa826153c5565b604082019050919050565b6000614512601883614d51565b915061451d82615414565b602082019050919050565b6000614535602b83614d51565b91506145408261543d565b604082019050919050565b6000614558601583614d51565b91506145638261548c565b602082019050919050565b600061457b602683614d51565b9150614586826154b5565b604082019050919050565b600061459e602083614d51565b91506145a982615504565b602082019050919050565b60006145c1602f83614d51565b91506145cc8261552d565b604082019050919050565b60006145e4601a83614d51565b91506145ef8261557c565b602082019050919050565b6000614607603283614d51565b9150614612826155a5565b604082019050919050565b600061462a601a83614d51565b9150614635826155f4565b602082019050919050565b600061464d602383614d51565b91506146588261561d565b604082019050919050565b6000614670602283614d51565b915061467b8261566c565b604082019050919050565b6000614693603383614d51565b915061469e826156bb565b604082019050919050565b60006146b6602183614d51565b91506146c18261570a565b604082019050919050565b60006146d9602883614d51565b91506146e482615759565b604082019050919050565b60006146fc602e83614d51565b9150614707826157a8565b604082019050919050565b600061471f601483614d51565b915061472a826157f7565b602082019050919050565b6000614742602d83614d51565b915061474d82615820565b604082019050919050565b61476181614ed3565b82525050565b6000614773828461425b565b915081905092915050565b600061478a828461428c565b915081905092915050565b60006147a18284614353565b915081905092915050565b60006147b88285614353565b91506147c48284614353565b91508190509392505050565b60006020820190506147e56000830184614204565b92915050565b60006080820190506148006000830187614204565b61480d6020830186614204565b61481a6040830185614758565b818103606083015261482c8184614222565b905095945050505050565b600060408201905061484c6000830185614204565b6148596020830184614758565b9392505050565b60006020820190506148756000830184614213565b92915050565b6000602082019050614890600083018461430b565b92915050565b600060208201905081810360008301526148b0818461431a565b905092915050565b600060208201905081810360008301526148d181614384565b9050919050565b600060208201905081810360008301526148f1816143a7565b9050919050565b60006020820190508181036000830152614911816143ca565b9050919050565b60006020820190508181036000830152614931816143ed565b9050919050565b6000602082019050818103600083015261495181614410565b9050919050565b6000602082019050818103600083015261497181614433565b9050919050565b6000602082019050818103600083015261499181614456565b9050919050565b600060208201905081810360008301526149b181614479565b9050919050565b600060208201905081810360008301526149d18161449c565b9050919050565b600060208201905081810360008301526149f1816144bf565b9050919050565b60006020820190508181036000830152614a11816144e2565b9050919050565b60006020820190508181036000830152614a3181614505565b9050919050565b60006020820190508181036000830152614a5181614528565b9050919050565b60006020820190508181036000830152614a718161454b565b9050919050565b60006020820190508181036000830152614a918161456e565b9050919050565b60006020820190508181036000830152614ab181614591565b9050919050565b60006020820190508181036000830152614ad1816145b4565b9050919050565b60006020820190508181036000830152614af1816145d7565b9050919050565b60006020820190508181036000830152614b11816145fa565b9050919050565b60006020820190508181036000830152614b318161461d565b9050919050565b60006020820190508181036000830152614b5181614640565b9050919050565b60006020820190508181036000830152614b7181614663565b9050919050565b60006020820190508181036000830152614b9181614686565b9050919050565b60006020820190508181036000830152614bb1816146a9565b9050919050565b60006020820190508181036000830152614bd1816146cc565b9050919050565b60006020820190508181036000830152614bf1816146ef565b9050919050565b60006020820190508181036000830152614c1181614712565b9050919050565b60006020820190508181036000830152614c3181614735565b9050919050565b6000602082019050614c4d6000830184614758565b92915050565b6000604082019050614c686000830185614758565b8181036020830152614c7a818461431a565b90509392505050565b6000614c8d614c9e565b9050614c998282614f82565b919050565b6000604051905090565b600067ffffffffffffffff821115614cc357614cc26150e9565b5b614ccc82615136565b9050602081019050919050565b600067ffffffffffffffff821115614cf457614cf36150e9565b5b614cfd82615136565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7882614ed3565b9150614d8383614ed3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614db857614db761502d565b5b828201905092915050565b6000614dce82614edd565b9150614dd983614edd565b92508260ff03821115614def57614dee61502d565b5b828201905092915050565b6000614e0582614ed3565b9150614e1083614ed3565b925082614e2057614e1f61505c565b5b828204905092915050565b6000614e3682614ed3565b9150614e4183614ed3565b925082821015614e5457614e5361502d565b5b828203905092915050565b6000614e6a82614eb3565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000614ef582614efc565b9050919050565b6000614f0782614eb3565b9050919050565b82818337600083830152505050565b60005b83811015614f3b578082015181840152602081019050614f20565b83811115614f4a576000848401525b50505050565b60006002820490506001821680614f6857607f821691505b60208210811415614f7c57614f7b61508b565b5b50919050565b614f8b82615136565b810181811067ffffffffffffffff82111715614faa57614fa96150e9565b5b80604052505050565b6000614fbe82614ed3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ff157614ff061502d565b5b600182019050919050565b600061500782614ed3565b915061501283614ed3565b9250826150225761502161505c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000600082015250565b7f5468652063616c6c6572206973206e6f7420746865206d696e74657200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f6e6f20746f6b656e73206d696e74656420796574000000000000000000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b7f616c6c206f776e657273686970732068617665206265656e2073657400000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000600082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4e616d6520616c72656164792072657365727665640000000000000000000000600082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4d696e746572206f776e6572736869702072656e6f756e636564000000000000600082015250565b7f4e6577206e616d652069732073616d65206173207468652063757272656e742060008201527f6f6e650000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000600082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b61587881614e5f565b811461588357600080fd5b50565b61588f81614e71565b811461589a57600080fd5b50565b6158a681614e7d565b81146158b157600080fd5b50565b6158bd81614e87565b81146158c857600080fd5b50565b6158d481614ed3565b81146158df57600080fd5b5056fea264697066735822122089921a07ff36c853b3dbf7b36c28bd011cfb94cea3234b098745c90e7a620dc964736f6c63430008060033

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  ]

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.