ETH Price: $3,073.93 (-1.36%)
Gas: 4 Gwei

Contract

0x2dD3773401485fCfF077A99e2F6A40c22Ee6966e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...198908122024-05-17 16:14:232 days ago1715962463IN
Meta Mansions: MM Token
0 ETH0.0002514510.13233178
Set Approval For...198847032024-05-16 19:44:113 days ago1715888651IN
Meta Mansions: MM Token
0 ETH0.000246075.26607951
Set Approval For...198335092024-05-09 15:53:3510 days ago1715270015IN
Meta Mansions: MM Token
0 ETH0.000347177.41808527
Set Approval For...197923362024-05-03 21:41:4716 days ago1714772507IN
Meta Mansions: MM Token
0 ETH0.000292216.25335825
Safe Transfer Fr...197911682024-05-03 17:46:3516 days ago1714758395IN
Meta Mansions: MM Token
0 ETH0.000243097.22074592
Safe Transfer Fr...197911682024-05-03 17:46:3516 days ago1714758395IN
Meta Mansions: MM Token
0 ETH0.00039527.22074592
Safe Transfer Fr...197911682024-05-03 17:46:3516 days ago1714758395IN
Meta Mansions: MM Token
0 ETH0.00039527.22074592
Safe Transfer Fr...197911682024-05-03 17:46:3516 days ago1714758395IN
Meta Mansions: MM Token
0 ETH0.00039527.22074592
Safe Transfer Fr...197911682024-05-03 17:46:3516 days ago1714758395IN
Meta Mansions: MM Token
0 ETH0.00039527.22074592
Safe Transfer Fr...197895932024-05-03 12:29:1116 days ago1714739351IN
Meta Mansions: MM Token
0 ETH0.000323345.90774364
Safe Transfer Fr...197835142024-05-02 16:04:5917 days ago1714665899IN
Meta Mansions: MM Token
0 ETH0.0012195221.87486369
Set Approval For...197807142024-05-02 6:41:1118 days ago1714632071IN
Meta Mansions: MM Token
0 ETH0.00035417.57788292
Set Approval For...197802252024-05-02 5:02:3518 days ago1714626155IN
Meta Mansions: MM Token
0 ETH0.000197784.22495262
Set Approval For...197802212024-05-02 5:01:4718 days ago1714626107IN
Meta Mansions: MM Token
0 ETH0.000200674.29440909
Transfer From197801452024-05-02 4:46:3518 days ago1714625195IN
Meta Mansions: MM Token
0 ETH0.000376465.05617407
Set Approval For...197659002024-04-30 5:00:5920 days ago1714453259IN
Meta Mansions: MM Token
0 ETH0.000359517.69355714
Transfer From197494402024-04-27 21:46:4722 days ago1714254407IN
Meta Mansions: MM Token
0 ETH0.000300624.3571041
Set Approval For...197443512024-04-27 4:40:2323 days ago1714192823IN
Meta Mansions: MM Token
0 ETH0.000117284.72602338
Set Approval For...197443202024-04-27 4:34:1123 days ago1714192451IN
Meta Mansions: MM Token
0 ETH0.00022814.88151419
Safe Transfer Fr...197355702024-04-25 23:09:1124 days ago1714086551IN
Meta Mansions: MM Token
0 ETH0.00047487.07651471
Set Approval For...197292462024-04-25 1:56:5925 days ago1714010219IN
Meta Mansions: MM Token
0 ETH0.000380868.13585404
Safe Transfer Fr...196688562024-04-16 15:12:1133 days ago1713280331IN
Meta Mansions: MM Token
0 ETH0.0007729515.46029832
Safe Transfer Fr...196688422024-04-16 15:09:2333 days ago1713280163IN
Meta Mansions: MM Token
0 ETH0.0008765515.99673349
Set Approval For...196620252024-04-15 16:12:4734 days ago1713197567IN
Meta Mansions: MM Token
0 ETH0.0008176517.49791026
Set Approval For...196608512024-04-15 12:16:3534 days ago1713183395IN
Meta Mansions: MM Token
0 ETH0.0003053912.30585963
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
144382982022-03-22 20:36:40789 days ago1647981400
Meta Mansions: MM Token
3,515.69 ETH
144137552022-03-19 0:56:08793 days ago1647651368
Meta Mansions: MM Token
0.01 ETH
144135732022-03-19 0:17:52793 days ago1647649072
Meta Mansions: MM Token
0.01 ETH
144135112022-03-19 0:04:48793 days ago1647648288
Meta Mansions: MM Token
0.01 ETH
144134852022-03-18 23:59:00793 days ago1647647940
Meta Mansions: MM Token
0.01 ETH
144134292022-03-18 23:45:35793 days ago1647647135
Meta Mansions: MM Token
0.01 ETH
144134022022-03-18 23:39:19793 days ago1647646759
Meta Mansions: MM Token
0.01 ETH
144133112022-03-18 23:19:52793 days ago1647645592
Meta Mansions: MM Token
0.01 ETH
144132422022-03-18 23:02:47793 days ago1647644567
Meta Mansions: MM Token
0.01 ETH
144132422022-03-18 23:02:47793 days ago1647644567
Meta Mansions: MM Token
0.01 ETH
144132182022-03-18 22:57:24793 days ago1647644244
Meta Mansions: MM Token
0.01 ETH
144132002022-03-18 22:53:18793 days ago1647643998
Meta Mansions: MM Token
0.01 ETH
144131712022-03-18 22:44:45793 days ago1647643485
Meta Mansions: MM Token
0.01 ETH
144131652022-03-18 22:43:44793 days ago1647643424
Meta Mansions: MM Token
0.01 ETH
144131362022-03-18 22:36:37793 days ago1647642997
Meta Mansions: MM Token
0.01 ETH
144131332022-03-18 22:35:52793 days ago1647642952
Meta Mansions: MM Token
0.01 ETH
144131302022-03-18 22:35:22793 days ago1647642922
Meta Mansions: MM Token
0.01 ETH
144131262022-03-18 22:35:09793 days ago1647642909
Meta Mansions: MM Token
0.01 ETH
144131132022-03-18 22:32:27793 days ago1647642747
Meta Mansions: MM Token
0.01 ETH
144131012022-03-18 22:29:49793 days ago1647642589
Meta Mansions: MM Token
0.01 ETH
144130612022-03-18 22:18:48793 days ago1647641928
Meta Mansions: MM Token
0.01 ETH
144129912022-03-18 22:03:44793 days ago1647641024
Meta Mansions: MM Token
0.01 ETH
144129752022-03-18 22:00:15793 days ago1647640815
Meta Mansions: MM Token
0.01 ETH
144129582022-03-18 21:55:24793 days ago1647640524
Meta Mansions: MM Token
0.01 ETH
144129452022-03-18 21:52:31793 days ago1647640351
Meta Mansions: MM Token
0.01 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaMansions

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : MetaMansions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import "./ERC721A.sol";
import "./SafeMath.sol";

interface IKeys {
    function purchaseTokenForAddress(address receiver) external payable;
}

/*
    Welcome to Meta Mansions, a collection of 8,888 unique digital mansions 
    built on Ethereum as the core residency of the KEYS Metaverse. 

    Meta Mansions is more than an NFT; it’s part of your identity. 

    Utilities include customization of interior spaces, active & passive income streams, 
    a powerful community, and priority access for special events in real life and 
    inside the KEYS Metaverse. 

    World-renown architects, builders, game designers, businesses, brands, 
    musicians, athletes, and web3 enthusiasts connect to create a decentralized future.

    Let’s re-imagine the way we live, work, play, earn, and learn by 
    creating the next wave of real estate and the KEYS Metaverse experience.

    Join our community 
    Discord: https://discord.gg/keystoken
    Instagram: https://www.instagram.com/metamansions.nft
    Twitter: https://www.twitter.com/metamansionsnft 
*/

contract MetaMansions is ERC721A, Ownable {
    using SafeMath for uint256;

    // Merkle Root for Mamba (Tier 1) Whitelist (18 mints)
    bytes32 public mambaRoot;

    // Merkle Root for Whale (Tier 2) Whitelist (8 mints)
    bytes32 public whaleRoot;

    // Merkle Root for Stacker (Tier 3) Whitelist (2 mints)
    bytes32 public stackerRoot;

    // Mamba Whitelist Active
    bool public isMambaActive;

    // Whale Whitelist Active
    bool public isWhaleActive;

    // Stacker Whitelist Active
    bool public isStackerActive;

    // Public Sale Active
    bool public isPublicSaleActive;

    // Reveal 
    bool public revealed;

    // Price
    uint256 public constant price = 0.88 ether;

    // Max Amount
    uint256 public constant maxAmount = 8888;

    // Base URI
    string private baseURI;

    // Tracks redeem count for public sale
    mapping(address => uint256) private saleRedeemedCount;

    // Max per wallet for Mamba Whitelist
    uint256 private constant mambaMaxPerWallet = 18;

    // Max per wallet for Whale Whitelist
    uint256 private constant whaleMaxPerWallet = 8;

    // Max per wallet for Stacker Whitelist
    uint256 private constant stackerMaxPerWallet = 2;

    // Max mints per wallet for public sale
    uint256 private constant publicSaleMaxPerWallet = 88;

    // KEYS Contract
    address private constant KEYS = 0xe0a189C975e4928222978A74517442239a0b86ff;

    // Locked KEYS Contract
    address private constant LOCKED_KEYS = 0x08DC692FE528fFEcF675Ab3f76981553e060Fd8A;

    // 100 KEYS needed for minting
    uint256 public keysNeededForMinting = 97 * 10**9;

    /////////////////////////////////////////////////////////////////
    /////////////////////  CONSTRUCTOR  /////////////////////////////
    /////////////////////////////////////////////////////////////////

    constructor()
    ERC721A("MetaMansions", "MM", 18) {}

    // Receive function in case someone wants to donate some ETH to the contract
    receive() external payable {}

    /////////////////////////////////////////////////////////////////
    /////////////////////  MINT FUNCTIONALITY  //////////////////////
    /////////////////////////////////////////////////////////////////

    function mint(uint32 quantity, bytes32[] calldata proof, uint32 tier) external payable {
        require(tier == 0 || tier == 1 || tier == 2, "11");
        
        // extra eth needed to buy keys if applicable
        uint256 additional = hasKeys(_msgSender()) ? 0 : 0.01 ether;

        // Check if the price is enough
        require(msg.value >= ( price * quantity ) + additional, "9");

        if (tier == 0) {
            mambaValidation(quantity, proof);
        } else if (tier == 1) {
            whaleValidation(quantity, proof);
        } else if (tier == 2) {
            stackerValidation(quantity, proof);
        }
        
        if (!hasKeys(_msgSender())) {
            _purchaseKEYS(_msgSender());
        }

        // Mint tokens to sender
        _mintToken(_msgSender(), quantity);
    }

    function mint(uint256 quantity) external payable {
        require(isPublicSaleActive, "10");

        // extra eth needed to buy keys if applicable
        uint256 additional = hasKeys(_msgSender()) ? 0 : 0.01 ether;

        // Check if the price is enough
        require(msg.value >= ( price * quantity ) + additional, "9");

        // Add quantity minted to redeemed count
        saleRedeemedCount[_msgSender()] += quantity;

        // Check if the sender's redeem count does not exceed max per wallet 
        require(
            publicSaleMaxPerWallet > saleRedeemedCount[_msgSender()],
            "8"
        );

        if (!hasKeys(_msgSender())) {
            _purchaseKEYS(_msgSender());
        }
        
        // Mint tokens to sender
        _mintToken(_msgSender(), quantity);
    }

    function mint(address to, uint256 quantity) external onlyOwner {
        _mintToken(to, quantity);
    }

    function _mintToken(address to, uint256 quantity) internal {
        require(quantity + totalSupply() <= maxAmount, "3");
        require(quantity <= maxBatchSize, "4");
        _safeMint(to, quantity);
    }

    // Gives the tokenURI for a given tokenId
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "URI query for nonexistent token");

        string memory currentBaseURI = _baseURI();

        // If not revealed, show non-revealed image
        if (!revealed) {
            return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI)) : "";
        }
        // else, show revealed image
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, Strings.toString(tokenId), ".json"))
                : "";
    }

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

    function getTotalClaimed(address address_) external view returns (uint256) {
        return saleRedeemedCount[address_];
    }

    /////////////////////////////////////////////////////////////////
    /////////////////////  OWNER ONLY  //////////////////////////////
    /////////////////////////////////////////////////////////////////

    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    function setMambaRoot(bytes32 root) external onlyOwner {
        mambaRoot = root;
    }

    function setWhaleRoot(bytes32 root) external onlyOwner {
        whaleRoot = root;
    }

    function setStackerRoot(bytes32 root) external onlyOwner {
        stackerRoot = root;
    }

    function toggleReveal() external onlyOwner {
        revealed = !revealed;
    }

    function toggleMambaActive() external onlyOwner {
        isMambaActive = !isMambaActive;
    }

    function toggleWhaleActive() external onlyOwner {
        isWhaleActive = !isWhaleActive;
    }

    function toggleStackerActive() external onlyOwner {
        isStackerActive = !isStackerActive;
    }

    function togglePublicSaleActive() external onlyOwner {
        isPublicSaleActive = !isPublicSaleActive;
    }

    function withdraw() public onlyOwner {
        (bool success, ) = payable(msg.sender).call{ value: address(this).balance }("");
        require(success, "No withdraw");
    }

    /////////////////////////////////////////////////////////////////
    ////////////////////////  VALIDATIONS  //////////////////////////
    /////////////////////////////////////////////////////////////////

    function mambaValidation(uint32 quantity, bytes32[] calldata proof) internal {
         // Check if the mamba is active
        require(isMambaActive, "0");

        // Check if whitelist using Merkle Proof
        require(
            MerkleProof.verify(
                proof,
                mambaRoot,
                keccak256(abi.encodePacked(_msgSender()))
            ),
            "5"
        );

        // Add quantity to total redeemed count of sender
        saleRedeemedCount[_msgSender()] += quantity;

        // Check if Mamba WL already redeemed
        require(saleRedeemedCount[_msgSender()] <= mambaMaxPerWallet, "8");
    }

    function whaleValidation(uint32 quantity, bytes32[] calldata proof) internal {
        // Check if the whale is active
        require(isWhaleActive, "1");

        // Check if whitelist using Merkle Proof
        require(
            MerkleProof.verify(
                proof,
                whaleRoot,
                keccak256(abi.encodePacked(_msgSender()))
            ),
            "6"
        );

        // Add quantity to total redeemed count of sender
        saleRedeemedCount[_msgSender()] += quantity;

        // Check if Whale WL already minted
        require(saleRedeemedCount[_msgSender()] <= whaleMaxPerWallet, "8");
    }

    function stackerValidation(uint32 quantity, bytes32[] calldata proof) internal {
        // Check if the stacker is active
        require(isStackerActive, "2");


        // Check if whitelist using Merkle Proof
        require(
            MerkleProof.verify(
                proof,
                stackerRoot,
                keccak256(abi.encodePacked(_msgSender()))
            ),
            "7"
        );

        // Add quantity to total redeemed count of sender
        saleRedeemedCount[_msgSender()] += quantity;

        // Check if Stacker WL already minted
        require(saleRedeemedCount[_msgSender()] <= stackerMaxPerWallet, "8");
    }

    function hasKeys(address receiver) public view returns (bool) {
        uint256 amountOfKeysOwned = IERC20(KEYS).balanceOf(receiver);
        uint256 amountOfLockedKeysOwned = IERC20(LOCKED_KEYS).balanceOf(receiver);
        uint256 totalKeysOwned = amountOfKeysOwned.add(amountOfLockedKeysOwned);
        return totalKeysOwned >= keysNeededForMinting;
    }

    function _purchaseKEYS(address receiver) internal {
        IKeys(KEYS).purchaseTokenForAddress{value: 0.01 ether }(receiver);
    }
}

File 3 of 18 : SafeMath.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

File 4 of 18 : 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).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable maxBatchSize;

    // 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 => TokenOwnership) private _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;

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

    /**
     * @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 = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            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);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != 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).addr;
    }

    /**
     * @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 override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public 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 Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

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

        require(prevOwnership.addr == 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.addr);

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // 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].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp);
            }
        }

        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);
    }

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp);
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

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

File 5 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

File 8 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 9 of 18 : 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 18 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 19 of 18 : 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"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"getTotalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"hasKeys","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isMambaActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStackerActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keysNeededForMinting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mambaRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint32","name":"tier","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","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":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMambaRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setStackerRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setWhaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stackerRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[],"name":"toggleMambaActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleStackerActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052600080556000600755641695a68a00600f553480156200002357600080fd5b506040518060400160405280600c81526020017f4d6574614d616e73696f6e7300000000000000000000000000000000000000008152506040518060400160405280600281526020017f4d4d000000000000000000000000000000000000000000000000000000000000815250601260008111620000d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000cf90620002e0565b60405180910390fd5b8260019080519060200190620000f092919062000209565b5081600290805190602001906200010992919062000209565b50806080818152505050505062000135620001296200013b60201b60201c565b6200014360201b60201c565b620003c7565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002179062000313565b90600052602060002090601f0160209004810192826200023b576000855562000287565b82601f106200025657805160ff191683800117855562000287565b8280016001018555821562000287579182015b828111156200028657825182559160200191906001019062000269565b5b5090506200029691906200029a565b5090565b5b80821115620002b55760008160009055506001016200029b565b5090565b6000620002c860278362000302565b9150620002d58262000378565b604082019050919050565b60006020820190508181036000830152620002fb81620002b9565b9050919050565b600082825260208201905092915050565b600060028204905060018216806200032c57607f821691505b6020821081141562000343576200034262000349565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b608051615e5b620003f860003960008181612b3a01528181612bfd01528181612c260152613a460152615e5b6000f3fe6080604052600436106102815760003560e01c80635f48f3931161014f578063b741787b116100c1578063dc2dab031161007a578063dc2dab031461092f578063e4b170c414610946578063e67cd3c314610983578063e985e9c5146109ac578063e98d848d146109e9578063f2fde38b14610a1257610288565b8063b741787b14610840578063b88d4fde1461085c578063b9760dbe14610885578063c87b56dd146108b0578063d7224ba0146108ed578063db6e5d721461091857610288565b80638cff555f116101135780638cff555f1461074f5780638da5cb5b1461077a57806395d89b41146107a5578063a035b1fe146107d0578063a0712d68146107fb578063a22cb4651461081757610288565b80635f48f393146106685780636352211e1461069357806370a08231146106d0578063715018a61461070d578063738c29021461072457610288565b80632f745c59116101f35780634f6ccce7116101ac5780634f6ccce71461055a5780635183022714610597578063521e43a3146105c2578063522bf1d4146105eb57806355f804b3146106285780635b8ad4291461065157610288565b80632f745c59146104725780633ad396b6146104af5780633ccfd60b146104c657806340c10f19146104dd57806342842e0e14610506578063454e02db1461052f57610288565b806318160ddd1161024557806318160ddd146103725780631a950fb51461039d5780631e0a947a146103c85780631e84c413146103f357806323b872dd1461041e578063247af0cd1461044757610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630c894cfe1461035b57610288565b3661028857005b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190614385565b610a3b565b6040516102c19190614b95565b60405180910390f35b3480156102d657600080fd5b506102df610b85565b6040516102ec9190614bcb565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190614418565b610c17565b6040516103299190614b2e565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190614320565b610c9c565b005b34801561036757600080fd5b50610370610db5565b005b34801561037e57600080fd5b50610387610e5d565b604051610394919061502d565b60405180910390f35b3480156103a957600080fd5b506103b2610e66565b6040516103bf9190614b95565b60405180910390f35b3480156103d457600080fd5b506103dd610e79565b6040516103ea9190614bb0565b60405180910390f35b3480156103ff57600080fd5b50610408610e7f565b6040516104159190614b95565b60405180910390f35b34801561042a57600080fd5b506104456004803603810190610440919061421a565b610e92565b005b34801561045357600080fd5b5061045c610ea2565b6040516104699190614b95565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190614320565b610eb5565b6040516104a6919061502d565b60405180910390f35b3480156104bb57600080fd5b506104c46110b3565b005b3480156104d257600080fd5b506104db61115b565b005b3480156104e957600080fd5b5061050460048036038101906104ff9190614320565b611286565b005b34801561051257600080fd5b5061052d6004803603810190610528919061421a565b611310565b005b34801561053b57600080fd5b50610544611330565b6040516105519190614bb0565b60405180910390f35b34801561056657600080fd5b50610581600480360381019061057c9190614418565b611336565b60405161058e919061502d565b60405180910390f35b3480156105a357600080fd5b506105ac611389565b6040516105b99190614b95565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e4919061435c565b61139c565b005b3480156105f757600080fd5b50610612600480360381019061060d91906141b5565b611422565b60405161061f919061502d565b60405180910390f35b34801561063457600080fd5b5061064f600480360381019061064a91906143d7565b61146b565b005b34801561065d57600080fd5b50610666611501565b005b34801561067457600080fd5b5061067d6115a9565b60405161068a919061502d565b60405180910390f35b34801561069f57600080fd5b506106ba60048036038101906106b59190614418565b6115af565b6040516106c79190614b2e565b60405180910390f35b3480156106dc57600080fd5b506106f760048036038101906106f291906141b5565b6115c5565b604051610704919061502d565b60405180910390f35b34801561071957600080fd5b506107226116ae565b005b34801561073057600080fd5b50610739611736565b6040516107469190614bb0565b60405180910390f35b34801561075b57600080fd5b5061076461173c565b604051610771919061502d565b60405180910390f35b34801561078657600080fd5b5061078f611742565b60405161079c9190614b2e565b60405180910390f35b3480156107b157600080fd5b506107ba61176c565b6040516107c79190614bcb565b60405180910390f35b3480156107dc57600080fd5b506107e56117fe565b6040516107f2919061502d565b60405180910390f35b61081560048036038101906108109190614418565b61180a565b005b34801561082357600080fd5b5061083e600480360381019061083991906142e4565b611a0b565b005b61085a6004803603810190610855919061446a565b611b8c565b005b34801561086857600080fd5b50610883600480360381019061087e9190614269565b611d2d565b005b34801561089157600080fd5b5061089a611d89565b6040516108a79190614b95565b60405180910390f35b3480156108bc57600080fd5b506108d760048036038101906108d29190614418565b611d9c565b6040516108e49190614bcb565b60405180910390f35b3480156108f957600080fd5b50610902611e9f565b60405161090f919061502d565b60405180910390f35b34801561092457600080fd5b5061092d611ea5565b005b34801561093b57600080fd5b50610944611f4d565b005b34801561095257600080fd5b5061096d600480360381019061096891906141b5565b611ff5565b60405161097a9190614b95565b60405180910390f35b34801561098f57600080fd5b506109aa60048036038101906109a5919061435c565b61215f565b005b3480156109b857600080fd5b506109d360048036038101906109ce91906141de565b6121e5565b6040516109e09190614b95565b60405180910390f35b3480156109f557600080fd5b50610a106004803603810190610a0b919061435c565b612279565b005b348015610a1e57600080fd5b50610a396004803603810190610a3491906141b5565b6122ff565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7e5750610b7d826123f7565b5b9050919050565b606060018054610b94906153c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc0906153c2565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b5050505050905090565b6000610c2282612461565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5890614fed565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca7826115af565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90614e8d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d3761246e565b73ffffffffffffffffffffffffffffffffffffffff161480610d665750610d6581610d6061246e565b6121e5565b5b610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90614d6d565b60405180910390fd5b610db0838383612476565b505050565b610dbd61246e565b73ffffffffffffffffffffffffffffffffffffffff16610ddb611742565b73ffffffffffffffffffffffffffffffffffffffff1614610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890614ded565b60405180910390fd5b600c60039054906101000a900460ff1615600c60036101000a81548160ff021916908315150217905550565b60008054905090565b600c60029054906101000a900460ff1681565b60095481565b600c60039054906101000a900460ff1681565b610e9d838383612528565b505050565b600c60009054906101000a900460ff1681565b6000610ec0836115c5565b8210610f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef890614bed565b60405180910390fd5b6000610f0b610e5d565b905060008060005b83811015611071576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461100557806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561105d578684141561104e5781955050505050506110ad565b838061105990615425565b9450505b50808061106990615425565b915050610f13565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a490614f6d565b60405180910390fd5b92915050565b6110bb61246e565b73ffffffffffffffffffffffffffffffffffffffff166110d9611742565b73ffffffffffffffffffffffffffffffffffffffff161461112f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112690614ded565b60405180910390fd5b600c60019054906101000a900460ff1615600c60016101000a81548160ff021916908315150217905550565b61116361246e565b73ffffffffffffffffffffffffffffffffffffffff16611181611742565b73ffffffffffffffffffffffffffffffffffffffff16146111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce90614ded565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff16476040516111fd90614b19565b60006040518083038185875af1925050503d806000811461123a576040519150601f19603f3d011682016040523d82523d6000602084013e61123f565b606091505b5050905080611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a90614e4d565b60405180910390fd5b50565b61128e61246e565b73ffffffffffffffffffffffffffffffffffffffff166112ac611742565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990614ded565b60405180910390fd5b61130c8282612ae1565b5050565b61132b83838360405180602001604052806000815250611d2d565b505050565b600b5481565b6000611340610e5d565b8210611381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137890614d0d565b60405180910390fd5b819050919050565b600c60049054906101000a900460ff1681565b6113a461246e565b73ffffffffffffffffffffffffffffffffffffffff166113c2611742565b73ffffffffffffffffffffffffffffffffffffffff1614611418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140f90614ded565b60405180910390fd5b80600a8190555050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61147361246e565b73ffffffffffffffffffffffffffffffffffffffff16611491611742565b73ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614ded565b60405180910390fd5b80600d90805190602001906114fd929190613f16565b5050565b61150961246e565b73ffffffffffffffffffffffffffffffffffffffff16611527611742565b73ffffffffffffffffffffffffffffffffffffffff161461157d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157490614ded565b60405180910390fd5b600c60049054906101000a900460ff1615600c60046101000a81548160ff021916908315150217905550565b6122b881565b60006115ba82612ba9565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90614dad565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116b661246e565b73ffffffffffffffffffffffffffffffffffffffff166116d4611742565b73ffffffffffffffffffffffffffffffffffffffff161461172a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172190614ded565b60405180910390fd5b6117346000612dac565b565b600a5481565b600f5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461177b906153c2565b80601f01602080910402602001604051908101604052809291908181526020018280546117a7906153c2565b80156117f45780601f106117c9576101008083540402835291602001916117f4565b820191906000526020600020905b8154815290600101906020018083116117d757829003601f168201915b5050505050905090565b670c3663566a58000081565b600c60039054906101000a900460ff16611859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185090614c4d565b60405180910390fd5b600061186b61186661246e565b611ff5565b61187c57662386f26fc1000061187f565b60005b66ffffffffffffff1690508082670c3663566a58000061189f91906151ea565b6118a99190615163565b3410156118eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e290614f2d565b60405180910390fd5b81600e60006118f861246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119419190615163565b92505081905550600e600061195461246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546058116119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890614fad565b60405180910390fd5b6119e16119dc61246e565b611ff5565b6119f6576119f56119f061246e565b612e72565b5b611a07611a0161246e565b83612ae1565b5050565b611a1361246e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7890614e0d565b60405180910390fd5b8060066000611a8e61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b3b61246e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b809190614b95565b60405180910390a35050565b60008163ffffffff161480611ba7575060018163ffffffff16145b80611bb8575060028163ffffffff16145b611bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bee90614d8d565b60405180910390fd5b6000611c09611c0461246e565b611ff5565b611c1a57662386f26fc10000611c1d565b60005b66ffffffffffffff169050808563ffffffff16670c3663566a580000611c4391906151ea565b611c4d9190615163565b341015611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8690614f2d565b60405180910390fd5b60008263ffffffff161415611cae57611ca9858585612efc565b611cea565b60018263ffffffff161415611ccd57611cc88585856130f7565b611ce9565b60028263ffffffff161415611ce857611ce78585856132f2565b5b5b5b611cfa611cf561246e565b611ff5565b611d0f57611d0e611d0961246e565b612e72565b5b611d26611d1a61246e565b8663ffffffff16612ae1565b5050505050565b611d38848484612528565b611d44848484846134ed565b611d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7a90614ecd565b60405180910390fd5b50505050565b600c60019054906101000a900460ff1681565b6060611da782612461565b611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd90614c6d565b60405180910390fd5b6000611df0613684565b9050600c60049054906101000a900460ff16611e4d576000815111611e245760405180602001604052806000815250611e45565b80604051602001611e359190614ad3565b6040516020818303038152906040525b915050611e9a565b6000815111611e6b5760405180602001604052806000815250611e96565b80611e7584613716565b604051602001611e86929190614aea565b6040516020818303038152906040525b9150505b919050565b60075481565b611ead61246e565b73ffffffffffffffffffffffffffffffffffffffff16611ecb611742565b73ffffffffffffffffffffffffffffffffffffffff1614611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1890614ded565b60405180910390fd5b600c60029054906101000a900460ff1615600c60026101000a81548160ff021916908315150217905550565b611f5561246e565b73ffffffffffffffffffffffffffffffffffffffff16611f73611742565b73ffffffffffffffffffffffffffffffffffffffff1614611fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc090614ded565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b60008073e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016120459190614b2e565b60206040518083038186803b15801561205d57600080fd5b505afa158015612071573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120959190614441565b905060007308dc692fe528ffecf675ab3f76981553e060fd8a73ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016120e69190614b2e565b60206040518083038186803b1580156120fe57600080fd5b505afa158015612112573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121369190614441565b9050600061214d82846138c390919063ffffffff16565b9050600f548110159350505050919050565b61216761246e565b73ffffffffffffffffffffffffffffffffffffffff16612185611742565b73ffffffffffffffffffffffffffffffffffffffff16146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d290614ded565b60405180910390fd5b8060098190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61228161246e565b73ffffffffffffffffffffffffffffffffffffffff1661229f611742565b73ffffffffffffffffffffffffffffffffffffffff16146122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec90614ded565b60405180910390fd5b80600b8190555050565b61230761246e565b73ffffffffffffffffffffffffffffffffffffffff16612325611742565b73ffffffffffffffffffffffffffffffffffffffff161461237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290614ded565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e290614c8d565b60405180910390fd5b6123f481612dac565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061253382612ba9565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661255a61246e565b73ffffffffffffffffffffffffffffffffffffffff1614806125b6575061257f61246e565b73ffffffffffffffffffffffffffffffffffffffff1661259e84610c17565b73ffffffffffffffffffffffffffffffffffffffff16145b806125d257506125d182600001516125cc61246e565b6121e5565b5b905080612614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260b90614e2d565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267d90614dcd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156126f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ed90614d2d565b60405180910390fd5b6127038585856001613921565b6127136000848460000151612476565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127819190615244565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612825919061511d565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600060018461292b9190615163565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a71576129a181612461565b15612a70576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ad98686866001613927565b505050505050565b6122b8612aec610e5d565b82612af79190615163565b1115612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f90614ccd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290614c2d565b60405180910390fd5b612ba5828261392d565b5050565b612bb1613f9c565b612bba82612461565b612bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf090614cad565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310612c5d5760017f000000000000000000000000000000000000000000000000000000000000000084612c509190615278565b612c5a9190615163565b90505b60008390505b818110612d6b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d5757809350505050612da7565b508080612d6390615398565b915050612c63565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9e90614fcd565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b73e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff1663e3f241f8662386f26fc10000836040518363ffffffff1660e01b8152600401612ec79190614b2e565b6000604051808303818588803b158015612ee057600080fd5b505af1158015612ef4573d6000803e3d6000fd5b505050505050565b600c60009054906101000a900460ff16612f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4290614c0d565b60405180910390fd5b612fc6828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954612f9b61246e565b604051602001612fab9190614ab8565b6040516020818303038152906040528051906020012061394b565b613005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffc90614f0d565b60405180910390fd5b8263ffffffff16600e600061301861246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130619190615163565b925050819055506012600e600061307661246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e990614fad565b60405180910390fd5b505050565b600c60019054906101000a900460ff16613146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313d90614ead565b60405180910390fd5b6131c1828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5461319661246e565b6040516020016131a69190614ab8565b6040516020818303038152906040528051906020012061394b565b613200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f790614f8d565b60405180910390fd5b8263ffffffff16600e600061321361246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461325c9190615163565b925050819055506008600e600061327161246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156132ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132e490614fad565b60405180910390fd5b505050565b600c60029054906101000a900460ff16613341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333890614e6d565b60405180910390fd5b6133bc828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5461339161246e565b6040516020016133a19190614ab8565b6040516020818303038152906040528051906020012061394b565b6133fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133f290614d4d565b60405180910390fd5b8263ffffffff16600e600061340e61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134579190615163565b925050819055506002600e600061346c61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156134e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134df90614fad565b60405180910390fd5b505050565b600061350e8473ffffffffffffffffffffffffffffffffffffffff16613962565b15613677578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261353761246e565b8786866040518563ffffffff1660e01b81526004016135599493929190614b49565b602060405180830381600087803b15801561357357600080fd5b505af19250505080156135a457506040513d601f19601f820116820180604052508101906135a191906143ae565b60015b613627573d80600081146135d4576040519150601f19603f3d011682016040523d82523d6000602084013e6135d9565b606091505b5060008151141561361f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361690614ecd565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061367c565b600190505b949350505050565b6060600d8054613693906153c2565b80601f01602080910402602001604051908101604052809291908181526020018280546136bf906153c2565b801561370c5780601f106136e15761010080835404028352916020019161370c565b820191906000526020600020905b8154815290600101906020018083116136ef57829003601f168201915b5050505050905090565b6060600082141561375e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506138be565b600082905060005b6000821461379057808061377990615425565b915050600a8261378991906151b9565b9150613766565b60008167ffffffffffffffff8111156137d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156138045781602001600182028036833780820191505090505b5090505b600085146138b75760018261381d9190615278565b9150600a8561382c9190615492565b60306138389190615163565b60f81b818381518110613874577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138b091906151b9565b9450613808565b8093505050505b919050565b60008082846138d29190615163565b905083811015613917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390e90614ced565b60405180910390fd5b8091505092915050565b50505050565b50505050565b613947828260405180602001604052806000815250613985565b5050565b6000826139588584613e64565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156139fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f290614f4d565b60405180910390fd5b613a0481612461565b15613a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3b90614eed565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115613aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9e9061500d565b60405180910390fd5b613ab46000858386613921565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506040518060400160405280858360000151613bb1919061511d565b6fffffffffffffffffffffffffffffffff168152602001858360200151613bd8919061511d565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613e4757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613de760008884886134ed565b613e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e1d90614ecd565b60405180910390fd5b8180613e3190615425565b9250508080613e3f90615425565b915050613d76565b5080600081905550613e5c6000878588613927565b505050505050565b60008082905060005b8451811015613ef4576000858281518110613eb1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613ed357613ecc8382613eff565b9250613ee0565b613edd8184613eff565b92505b508080613eec90615425565b915050613e6d565b508091505092915050565b600082600052816020526040600020905092915050565b828054613f22906153c2565b90600052602060002090601f016020900481019282613f445760008555613f8b565b82601f10613f5d57805160ff1916838001178555613f8b565b82800160010185558215613f8b579182015b82811115613f8a578251825591602001919060010190613f6f565b5b509050613f989190613fd6565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613fef576000816000905550600101613fd7565b5090565b60006140066140018461506d565b615048565b90508281526020810184848401111561401e57600080fd5b614029848285615356565b509392505050565b600061404461403f8461509e565b615048565b90508281526020810184848401111561405c57600080fd5b614067848285615356565b509392505050565b60008135905061407e81615d9b565b92915050565b60008083601f84011261409657600080fd5b8235905067ffffffffffffffff8111156140af57600080fd5b6020830191508360208202830111156140c757600080fd5b9250929050565b6000813590506140dd81615db2565b92915050565b6000813590506140f281615dc9565b92915050565b60008135905061410781615de0565b92915050565b60008151905061411c81615de0565b92915050565b600082601f83011261413357600080fd5b8135614143848260208601613ff3565b91505092915050565b600082601f83011261415d57600080fd5b813561416d848260208601614031565b91505092915050565b60008135905061418581615df7565b92915050565b60008151905061419a81615df7565b92915050565b6000813590506141af81615e0e565b92915050565b6000602082840312156141c757600080fd5b60006141d58482850161406f565b91505092915050565b600080604083850312156141f157600080fd5b60006141ff8582860161406f565b92505060206142108582860161406f565b9150509250929050565b60008060006060848603121561422f57600080fd5b600061423d8682870161406f565b935050602061424e8682870161406f565b925050604061425f86828701614176565b9150509250925092565b6000806000806080858703121561427f57600080fd5b600061428d8782880161406f565b945050602061429e8782880161406f565b93505060406142af87828801614176565b925050606085013567ffffffffffffffff8111156142cc57600080fd5b6142d887828801614122565b91505092959194509250565b600080604083850312156142f757600080fd5b60006143058582860161406f565b9250506020614316858286016140ce565b9150509250929050565b6000806040838503121561433357600080fd5b60006143418582860161406f565b925050602061435285828601614176565b9150509250929050565b60006020828403121561436e57600080fd5b600061437c848285016140e3565b91505092915050565b60006020828403121561439757600080fd5b60006143a5848285016140f8565b91505092915050565b6000602082840312156143c057600080fd5b60006143ce8482850161410d565b91505092915050565b6000602082840312156143e957600080fd5b600082013567ffffffffffffffff81111561440357600080fd5b61440f8482850161414c565b91505092915050565b60006020828403121561442a57600080fd5b600061443884828501614176565b91505092915050565b60006020828403121561445357600080fd5b60006144618482850161418b565b91505092915050565b6000806000806060858703121561448057600080fd5b600061448e878288016141a0565b945050602085013567ffffffffffffffff8111156144ab57600080fd5b6144b787828801614084565b935093505060406144ca878288016141a0565b91505092959194509250565b6144df816152ac565b82525050565b6144f66144f1826152ac565b61546e565b82525050565b614505816152be565b82525050565b614514816152ca565b82525050565b6000614525826150cf565b61452f81856150e5565b935061453f818560208601615365565b6145488161557f565b840191505092915050565b600061455e826150da565b6145688185615101565b9350614578818560208601615365565b6145818161557f565b840191505092915050565b6000614597826150da565b6145a18185615112565b93506145b1818560208601615365565b80840191505092915050565b60006145ca602283615101565b91506145d58261559d565b604082019050919050565b60006145ed600183615101565b91506145f8826155ec565b602082019050919050565b6000614610600183615101565b915061461b82615615565b602082019050919050565b6000614633600283615101565b915061463e8261563e565b602082019050919050565b6000614656601f83615101565b915061466182615667565b602082019050919050565b6000614679602683615101565b915061468482615690565b604082019050919050565b600061469c602a83615101565b91506146a7826156df565b604082019050919050565b60006146bf600183615101565b91506146ca8261572e565b602082019050919050565b60006146e2601b83615101565b91506146ed82615757565b602082019050919050565b6000614705602383615101565b915061471082615780565b604082019050919050565b6000614728602583615101565b9150614733826157cf565b604082019050919050565b600061474b600183615101565b91506147568261581e565b602082019050919050565b600061476e603983615101565b915061477982615847565b604082019050919050565b6000614791600283615101565b915061479c82615896565b602082019050919050565b60006147b4602b83615101565b91506147bf826158bf565b604082019050919050565b60006147d7602683615101565b91506147e28261590e565b604082019050919050565b60006147fa600583615112565b91506148058261595d565b600582019050919050565b600061481d602083615101565b915061482882615986565b602082019050919050565b6000614840601a83615101565b915061484b826159af565b602082019050919050565b6000614863603283615101565b915061486e826159d8565b604082019050919050565b6000614886600b83615101565b915061489182615a27565b602082019050919050565b60006148a9600183615101565b91506148b482615a50565b602082019050919050565b60006148cc602283615101565b91506148d782615a79565b604082019050919050565b60006148ef6000836150f6565b91506148fa82615ac8565b600082019050919050565b6000614912600183615101565b915061491d82615acb565b602082019050919050565b6000614935603383615101565b915061494082615af4565b604082019050919050565b6000614958601d83615101565b915061496382615b43565b602082019050919050565b600061497b600183615101565b915061498682615b6c565b602082019050919050565b600061499e600183615101565b91506149a982615b95565b602082019050919050565b60006149c1602183615101565b91506149cc82615bbe565b604082019050919050565b60006149e4602e83615101565b91506149ef82615c0d565b604082019050919050565b6000614a07600183615101565b9150614a1282615c5c565b602082019050919050565b6000614a2a600183615101565b9150614a3582615c85565b602082019050919050565b6000614a4d602f83615101565b9150614a5882615cae565b604082019050919050565b6000614a70602d83615101565b9150614a7b82615cfd565b604082019050919050565b6000614a93602283615101565b9150614a9e82615d4c565b604082019050919050565b614ab28161533c565b82525050565b6000614ac482846144e5565b60148201915081905092915050565b6000614adf828461458c565b915081905092915050565b6000614af6828561458c565b9150614b02828461458c565b9150614b0d826147ed565b91508190509392505050565b6000614b24826148e2565b9150819050919050565b6000602082019050614b4360008301846144d6565b92915050565b6000608082019050614b5e60008301876144d6565b614b6b60208301866144d6565b614b786040830185614aa9565b8181036060830152614b8a818461451a565b905095945050505050565b6000602082019050614baa60008301846144fc565b92915050565b6000602082019050614bc5600083018461450b565b92915050565b60006020820190508181036000830152614be58184614553565b905092915050565b60006020820190508181036000830152614c06816145bd565b9050919050565b60006020820190508181036000830152614c26816145e0565b9050919050565b60006020820190508181036000830152614c4681614603565b9050919050565b60006020820190508181036000830152614c6681614626565b9050919050565b60006020820190508181036000830152614c8681614649565b9050919050565b60006020820190508181036000830152614ca68161466c565b9050919050565b60006020820190508181036000830152614cc68161468f565b9050919050565b60006020820190508181036000830152614ce6816146b2565b9050919050565b60006020820190508181036000830152614d06816146d5565b9050919050565b60006020820190508181036000830152614d26816146f8565b9050919050565b60006020820190508181036000830152614d468161471b565b9050919050565b60006020820190508181036000830152614d668161473e565b9050919050565b60006020820190508181036000830152614d8681614761565b9050919050565b60006020820190508181036000830152614da681614784565b9050919050565b60006020820190508181036000830152614dc6816147a7565b9050919050565b60006020820190508181036000830152614de6816147ca565b9050919050565b60006020820190508181036000830152614e0681614810565b9050919050565b60006020820190508181036000830152614e2681614833565b9050919050565b60006020820190508181036000830152614e4681614856565b9050919050565b60006020820190508181036000830152614e6681614879565b9050919050565b60006020820190508181036000830152614e868161489c565b9050919050565b60006020820190508181036000830152614ea6816148bf565b9050919050565b60006020820190508181036000830152614ec681614905565b9050919050565b60006020820190508181036000830152614ee681614928565b9050919050565b60006020820190508181036000830152614f068161494b565b9050919050565b60006020820190508181036000830152614f268161496e565b9050919050565b60006020820190508181036000830152614f4681614991565b9050919050565b60006020820190508181036000830152614f66816149b4565b9050919050565b60006020820190508181036000830152614f86816149d7565b9050919050565b60006020820190508181036000830152614fa6816149fa565b9050919050565b60006020820190508181036000830152614fc681614a1d565b9050919050565b60006020820190508181036000830152614fe681614a40565b9050919050565b6000602082019050818103600083015261500681614a63565b9050919050565b6000602082019050818103600083015261502681614a86565b9050919050565b60006020820190506150426000830184614aa9565b92915050565b6000615052615063565b905061505e82826153f4565b919050565b6000604051905090565b600067ffffffffffffffff82111561508857615087615550565b5b6150918261557f565b9050602081019050919050565b600067ffffffffffffffff8211156150b9576150b8615550565b5b6150c28261557f565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061512882615300565b915061513383615300565b9250826fffffffffffffffffffffffffffffffff03821115615158576151576154c3565b5b828201905092915050565b600061516e8261533c565b91506151798361533c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151ae576151ad6154c3565b5b828201905092915050565b60006151c48261533c565b91506151cf8361533c565b9250826151df576151de6154f2565b5b828204905092915050565b60006151f58261533c565b91506152008361533c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615239576152386154c3565b5b828202905092915050565b600061524f82615300565b915061525a83615300565b92508282101561526d5761526c6154c3565b5b828203905092915050565b60006152838261533c565b915061528e8361533c565b9250828210156152a1576152a06154c3565b5b828203905092915050565b60006152b78261531c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b82818337600083830152505050565b60005b83811015615383578082015181840152602081019050615368565b83811115615392576000848401525b50505050565b60006153a38261533c565b915060008214156153b7576153b66154c3565b5b600182039050919050565b600060028204905060018216806153da57607f821691505b602082108114156153ee576153ed615521565b5b50919050565b6153fd8261557f565b810181811067ffffffffffffffff8211171561541c5761541b615550565b5b80604052505050565b60006154308261533c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615463576154626154c3565b5b600182019050919050565b600061547982615480565b9050919050565b600061548b82615590565b9050919050565b600061549d8261533c565b91506154a88361533c565b9250826154b8576154b76154f2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b7f3400000000000000000000000000000000000000000000000000000000000000600082015250565b7f3130000000000000000000000000000000000000000000000000000000000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f3300000000000000000000000000000000000000000000000000000000000000600082015250565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f3700000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f3131000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4e6f207769746864726177000000000000000000000000000000000000000000600082015250565b7f3200000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f3100000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f3500000000000000000000000000000000000000000000000000000000000000600082015250565b7f3900000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f3600000000000000000000000000000000000000000000000000000000000000600082015250565b7f3800000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b615da4816152ac565b8114615daf57600080fd5b50565b615dbb816152be565b8114615dc657600080fd5b50565b615dd2816152ca565b8114615ddd57600080fd5b50565b615de9816152d4565b8114615df457600080fd5b50565b615e008161533c565b8114615e0b57600080fd5b50565b615e1781615346565b8114615e2257600080fd5b5056fea264697066735822122087061791dc371724aaf4d88ec22a71b300e235c1af192b7b18bab39acd8aa48564736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102815760003560e01c80635f48f3931161014f578063b741787b116100c1578063dc2dab031161007a578063dc2dab031461092f578063e4b170c414610946578063e67cd3c314610983578063e985e9c5146109ac578063e98d848d146109e9578063f2fde38b14610a1257610288565b8063b741787b14610840578063b88d4fde1461085c578063b9760dbe14610885578063c87b56dd146108b0578063d7224ba0146108ed578063db6e5d721461091857610288565b80638cff555f116101135780638cff555f1461074f5780638da5cb5b1461077a57806395d89b41146107a5578063a035b1fe146107d0578063a0712d68146107fb578063a22cb4651461081757610288565b80635f48f393146106685780636352211e1461069357806370a08231146106d0578063715018a61461070d578063738c29021461072457610288565b80632f745c59116101f35780634f6ccce7116101ac5780634f6ccce71461055a5780635183022714610597578063521e43a3146105c2578063522bf1d4146105eb57806355f804b3146106285780635b8ad4291461065157610288565b80632f745c59146104725780633ad396b6146104af5780633ccfd60b146104c657806340c10f19146104dd57806342842e0e14610506578063454e02db1461052f57610288565b806318160ddd1161024557806318160ddd146103725780631a950fb51461039d5780631e0a947a146103c85780631e84c413146103f357806323b872dd1461041e578063247af0cd1461044757610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630c894cfe1461035b57610288565b3661028857005b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190614385565b610a3b565b6040516102c19190614b95565b60405180910390f35b3480156102d657600080fd5b506102df610b85565b6040516102ec9190614bcb565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190614418565b610c17565b6040516103299190614b2e565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190614320565b610c9c565b005b34801561036757600080fd5b50610370610db5565b005b34801561037e57600080fd5b50610387610e5d565b604051610394919061502d565b60405180910390f35b3480156103a957600080fd5b506103b2610e66565b6040516103bf9190614b95565b60405180910390f35b3480156103d457600080fd5b506103dd610e79565b6040516103ea9190614bb0565b60405180910390f35b3480156103ff57600080fd5b50610408610e7f565b6040516104159190614b95565b60405180910390f35b34801561042a57600080fd5b506104456004803603810190610440919061421a565b610e92565b005b34801561045357600080fd5b5061045c610ea2565b6040516104699190614b95565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190614320565b610eb5565b6040516104a6919061502d565b60405180910390f35b3480156104bb57600080fd5b506104c46110b3565b005b3480156104d257600080fd5b506104db61115b565b005b3480156104e957600080fd5b5061050460048036038101906104ff9190614320565b611286565b005b34801561051257600080fd5b5061052d6004803603810190610528919061421a565b611310565b005b34801561053b57600080fd5b50610544611330565b6040516105519190614bb0565b60405180910390f35b34801561056657600080fd5b50610581600480360381019061057c9190614418565b611336565b60405161058e919061502d565b60405180910390f35b3480156105a357600080fd5b506105ac611389565b6040516105b99190614b95565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e4919061435c565b61139c565b005b3480156105f757600080fd5b50610612600480360381019061060d91906141b5565b611422565b60405161061f919061502d565b60405180910390f35b34801561063457600080fd5b5061064f600480360381019061064a91906143d7565b61146b565b005b34801561065d57600080fd5b50610666611501565b005b34801561067457600080fd5b5061067d6115a9565b60405161068a919061502d565b60405180910390f35b34801561069f57600080fd5b506106ba60048036038101906106b59190614418565b6115af565b6040516106c79190614b2e565b60405180910390f35b3480156106dc57600080fd5b506106f760048036038101906106f291906141b5565b6115c5565b604051610704919061502d565b60405180910390f35b34801561071957600080fd5b506107226116ae565b005b34801561073057600080fd5b50610739611736565b6040516107469190614bb0565b60405180910390f35b34801561075b57600080fd5b5061076461173c565b604051610771919061502d565b60405180910390f35b34801561078657600080fd5b5061078f611742565b60405161079c9190614b2e565b60405180910390f35b3480156107b157600080fd5b506107ba61176c565b6040516107c79190614bcb565b60405180910390f35b3480156107dc57600080fd5b506107e56117fe565b6040516107f2919061502d565b60405180910390f35b61081560048036038101906108109190614418565b61180a565b005b34801561082357600080fd5b5061083e600480360381019061083991906142e4565b611a0b565b005b61085a6004803603810190610855919061446a565b611b8c565b005b34801561086857600080fd5b50610883600480360381019061087e9190614269565b611d2d565b005b34801561089157600080fd5b5061089a611d89565b6040516108a79190614b95565b60405180910390f35b3480156108bc57600080fd5b506108d760048036038101906108d29190614418565b611d9c565b6040516108e49190614bcb565b60405180910390f35b3480156108f957600080fd5b50610902611e9f565b60405161090f919061502d565b60405180910390f35b34801561092457600080fd5b5061092d611ea5565b005b34801561093b57600080fd5b50610944611f4d565b005b34801561095257600080fd5b5061096d600480360381019061096891906141b5565b611ff5565b60405161097a9190614b95565b60405180910390f35b34801561098f57600080fd5b506109aa60048036038101906109a5919061435c565b61215f565b005b3480156109b857600080fd5b506109d360048036038101906109ce91906141de565b6121e5565b6040516109e09190614b95565b60405180910390f35b3480156109f557600080fd5b50610a106004803603810190610a0b919061435c565b612279565b005b348015610a1e57600080fd5b50610a396004803603810190610a3491906141b5565b6122ff565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7e5750610b7d826123f7565b5b9050919050565b606060018054610b94906153c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc0906153c2565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b5050505050905090565b6000610c2282612461565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5890614fed565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca7826115af565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90614e8d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d3761246e565b73ffffffffffffffffffffffffffffffffffffffff161480610d665750610d6581610d6061246e565b6121e5565b5b610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90614d6d565b60405180910390fd5b610db0838383612476565b505050565b610dbd61246e565b73ffffffffffffffffffffffffffffffffffffffff16610ddb611742565b73ffffffffffffffffffffffffffffffffffffffff1614610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890614ded565b60405180910390fd5b600c60039054906101000a900460ff1615600c60036101000a81548160ff021916908315150217905550565b60008054905090565b600c60029054906101000a900460ff1681565b60095481565b600c60039054906101000a900460ff1681565b610e9d838383612528565b505050565b600c60009054906101000a900460ff1681565b6000610ec0836115c5565b8210610f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef890614bed565b60405180910390fd5b6000610f0b610e5d565b905060008060005b83811015611071576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461100557806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561105d578684141561104e5781955050505050506110ad565b838061105990615425565b9450505b50808061106990615425565b915050610f13565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a490614f6d565b60405180910390fd5b92915050565b6110bb61246e565b73ffffffffffffffffffffffffffffffffffffffff166110d9611742565b73ffffffffffffffffffffffffffffffffffffffff161461112f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112690614ded565b60405180910390fd5b600c60019054906101000a900460ff1615600c60016101000a81548160ff021916908315150217905550565b61116361246e565b73ffffffffffffffffffffffffffffffffffffffff16611181611742565b73ffffffffffffffffffffffffffffffffffffffff16146111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce90614ded565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff16476040516111fd90614b19565b60006040518083038185875af1925050503d806000811461123a576040519150601f19603f3d011682016040523d82523d6000602084013e61123f565b606091505b5050905080611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a90614e4d565b60405180910390fd5b50565b61128e61246e565b73ffffffffffffffffffffffffffffffffffffffff166112ac611742565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990614ded565b60405180910390fd5b61130c8282612ae1565b5050565b61132b83838360405180602001604052806000815250611d2d565b505050565b600b5481565b6000611340610e5d565b8210611381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137890614d0d565b60405180910390fd5b819050919050565b600c60049054906101000a900460ff1681565b6113a461246e565b73ffffffffffffffffffffffffffffffffffffffff166113c2611742565b73ffffffffffffffffffffffffffffffffffffffff1614611418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140f90614ded565b60405180910390fd5b80600a8190555050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61147361246e565b73ffffffffffffffffffffffffffffffffffffffff16611491611742565b73ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614ded565b60405180910390fd5b80600d90805190602001906114fd929190613f16565b5050565b61150961246e565b73ffffffffffffffffffffffffffffffffffffffff16611527611742565b73ffffffffffffffffffffffffffffffffffffffff161461157d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157490614ded565b60405180910390fd5b600c60049054906101000a900460ff1615600c60046101000a81548160ff021916908315150217905550565b6122b881565b60006115ba82612ba9565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90614dad565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116b661246e565b73ffffffffffffffffffffffffffffffffffffffff166116d4611742565b73ffffffffffffffffffffffffffffffffffffffff161461172a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172190614ded565b60405180910390fd5b6117346000612dac565b565b600a5481565b600f5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461177b906153c2565b80601f01602080910402602001604051908101604052809291908181526020018280546117a7906153c2565b80156117f45780601f106117c9576101008083540402835291602001916117f4565b820191906000526020600020905b8154815290600101906020018083116117d757829003601f168201915b5050505050905090565b670c3663566a58000081565b600c60039054906101000a900460ff16611859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185090614c4d565b60405180910390fd5b600061186b61186661246e565b611ff5565b61187c57662386f26fc1000061187f565b60005b66ffffffffffffff1690508082670c3663566a58000061189f91906151ea565b6118a99190615163565b3410156118eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e290614f2d565b60405180910390fd5b81600e60006118f861246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119419190615163565b92505081905550600e600061195461246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546058116119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890614fad565b60405180910390fd5b6119e16119dc61246e565b611ff5565b6119f6576119f56119f061246e565b612e72565b5b611a07611a0161246e565b83612ae1565b5050565b611a1361246e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7890614e0d565b60405180910390fd5b8060066000611a8e61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b3b61246e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b809190614b95565b60405180910390a35050565b60008163ffffffff161480611ba7575060018163ffffffff16145b80611bb8575060028163ffffffff16145b611bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bee90614d8d565b60405180910390fd5b6000611c09611c0461246e565b611ff5565b611c1a57662386f26fc10000611c1d565b60005b66ffffffffffffff169050808563ffffffff16670c3663566a580000611c4391906151ea565b611c4d9190615163565b341015611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8690614f2d565b60405180910390fd5b60008263ffffffff161415611cae57611ca9858585612efc565b611cea565b60018263ffffffff161415611ccd57611cc88585856130f7565b611ce9565b60028263ffffffff161415611ce857611ce78585856132f2565b5b5b5b611cfa611cf561246e565b611ff5565b611d0f57611d0e611d0961246e565b612e72565b5b611d26611d1a61246e565b8663ffffffff16612ae1565b5050505050565b611d38848484612528565b611d44848484846134ed565b611d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7a90614ecd565b60405180910390fd5b50505050565b600c60019054906101000a900460ff1681565b6060611da782612461565b611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd90614c6d565b60405180910390fd5b6000611df0613684565b9050600c60049054906101000a900460ff16611e4d576000815111611e245760405180602001604052806000815250611e45565b80604051602001611e359190614ad3565b6040516020818303038152906040525b915050611e9a565b6000815111611e6b5760405180602001604052806000815250611e96565b80611e7584613716565b604051602001611e86929190614aea565b6040516020818303038152906040525b9150505b919050565b60075481565b611ead61246e565b73ffffffffffffffffffffffffffffffffffffffff16611ecb611742565b73ffffffffffffffffffffffffffffffffffffffff1614611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1890614ded565b60405180910390fd5b600c60029054906101000a900460ff1615600c60026101000a81548160ff021916908315150217905550565b611f5561246e565b73ffffffffffffffffffffffffffffffffffffffff16611f73611742565b73ffffffffffffffffffffffffffffffffffffffff1614611fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc090614ded565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b60008073e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016120459190614b2e565b60206040518083038186803b15801561205d57600080fd5b505afa158015612071573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120959190614441565b905060007308dc692fe528ffecf675ab3f76981553e060fd8a73ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016120e69190614b2e565b60206040518083038186803b1580156120fe57600080fd5b505afa158015612112573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121369190614441565b9050600061214d82846138c390919063ffffffff16565b9050600f548110159350505050919050565b61216761246e565b73ffffffffffffffffffffffffffffffffffffffff16612185611742565b73ffffffffffffffffffffffffffffffffffffffff16146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d290614ded565b60405180910390fd5b8060098190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61228161246e565b73ffffffffffffffffffffffffffffffffffffffff1661229f611742565b73ffffffffffffffffffffffffffffffffffffffff16146122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec90614ded565b60405180910390fd5b80600b8190555050565b61230761246e565b73ffffffffffffffffffffffffffffffffffffffff16612325611742565b73ffffffffffffffffffffffffffffffffffffffff161461237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290614ded565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e290614c8d565b60405180910390fd5b6123f481612dac565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061253382612ba9565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661255a61246e565b73ffffffffffffffffffffffffffffffffffffffff1614806125b6575061257f61246e565b73ffffffffffffffffffffffffffffffffffffffff1661259e84610c17565b73ffffffffffffffffffffffffffffffffffffffff16145b806125d257506125d182600001516125cc61246e565b6121e5565b5b905080612614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260b90614e2d565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267d90614dcd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156126f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ed90614d2d565b60405180910390fd5b6127038585856001613921565b6127136000848460000151612476565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127819190615244565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612825919061511d565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600060018461292b9190615163565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a71576129a181612461565b15612a70576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ad98686866001613927565b505050505050565b6122b8612aec610e5d565b82612af79190615163565b1115612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f90614ccd565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000012811115612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290614c2d565b60405180910390fd5b612ba5828261392d565b5050565b612bb1613f9c565b612bba82612461565b612bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf090614cad565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000128310612c5d5760017f000000000000000000000000000000000000000000000000000000000000001284612c509190615278565b612c5a9190615163565b90505b60008390505b818110612d6b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d5757809350505050612da7565b508080612d6390615398565b915050612c63565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9e90614fcd565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b73e0a189c975e4928222978a74517442239a0b86ff73ffffffffffffffffffffffffffffffffffffffff1663e3f241f8662386f26fc10000836040518363ffffffff1660e01b8152600401612ec79190614b2e565b6000604051808303818588803b158015612ee057600080fd5b505af1158015612ef4573d6000803e3d6000fd5b505050505050565b600c60009054906101000a900460ff16612f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4290614c0d565b60405180910390fd5b612fc6828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954612f9b61246e565b604051602001612fab9190614ab8565b6040516020818303038152906040528051906020012061394b565b613005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffc90614f0d565b60405180910390fd5b8263ffffffff16600e600061301861246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130619190615163565b925050819055506012600e600061307661246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e990614fad565b60405180910390fd5b505050565b600c60019054906101000a900460ff16613146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313d90614ead565b60405180910390fd5b6131c1828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5461319661246e565b6040516020016131a69190614ab8565b6040516020818303038152906040528051906020012061394b565b613200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f790614f8d565b60405180910390fd5b8263ffffffff16600e600061321361246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461325c9190615163565b925050819055506008600e600061327161246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156132ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132e490614fad565b60405180910390fd5b505050565b600c60029054906101000a900460ff16613341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333890614e6d565b60405180910390fd5b6133bc828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5461339161246e565b6040516020016133a19190614ab8565b6040516020818303038152906040528051906020012061394b565b6133fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133f290614d4d565b60405180910390fd5b8263ffffffff16600e600061340e61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134579190615163565b925050819055506002600e600061346c61246e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156134e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134df90614fad565b60405180910390fd5b505050565b600061350e8473ffffffffffffffffffffffffffffffffffffffff16613962565b15613677578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261353761246e565b8786866040518563ffffffff1660e01b81526004016135599493929190614b49565b602060405180830381600087803b15801561357357600080fd5b505af19250505080156135a457506040513d601f19601f820116820180604052508101906135a191906143ae565b60015b613627573d80600081146135d4576040519150601f19603f3d011682016040523d82523d6000602084013e6135d9565b606091505b5060008151141561361f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361690614ecd565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061367c565b600190505b949350505050565b6060600d8054613693906153c2565b80601f01602080910402602001604051908101604052809291908181526020018280546136bf906153c2565b801561370c5780601f106136e15761010080835404028352916020019161370c565b820191906000526020600020905b8154815290600101906020018083116136ef57829003601f168201915b5050505050905090565b6060600082141561375e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506138be565b600082905060005b6000821461379057808061377990615425565b915050600a8261378991906151b9565b9150613766565b60008167ffffffffffffffff8111156137d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156138045781602001600182028036833780820191505090505b5090505b600085146138b75760018261381d9190615278565b9150600a8561382c9190615492565b60306138389190615163565b60f81b818381518110613874577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138b091906151b9565b9450613808565b8093505050505b919050565b60008082846138d29190615163565b905083811015613917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390e90614ced565b60405180910390fd5b8091505092915050565b50505050565b50505050565b613947828260405180602001604052806000815250613985565b5050565b6000826139588584613e64565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156139fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f290614f4d565b60405180910390fd5b613a0481612461565b15613a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3b90614eed565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000012831115613aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9e9061500d565b60405180910390fd5b613ab46000858386613921565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506040518060400160405280858360000151613bb1919061511d565b6fffffffffffffffffffffffffffffffff168152602001858360200151613bd8919061511d565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613e4757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613de760008884886134ed565b613e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e1d90614ecd565b60405180910390fd5b8180613e3190615425565b9250508080613e3f90615425565b915050613d76565b5080600081905550613e5c6000878588613927565b505050505050565b60008082905060005b8451811015613ef4576000858281518110613eb1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613ed357613ecc8382613eff565b9250613ee0565b613edd8184613eff565b92505b508080613eec90615425565b915050613e6d565b508091505092915050565b600082600052816020526040600020905092915050565b828054613f22906153c2565b90600052602060002090601f016020900481019282613f445760008555613f8b565b82601f10613f5d57805160ff1916838001178555613f8b565b82800160010185558215613f8b579182015b82811115613f8a578251825591602001919060010190613f6f565b5b509050613f989190613fd6565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613fef576000816000905550600101613fd7565b5090565b60006140066140018461506d565b615048565b90508281526020810184848401111561401e57600080fd5b614029848285615356565b509392505050565b600061404461403f8461509e565b615048565b90508281526020810184848401111561405c57600080fd5b614067848285615356565b509392505050565b60008135905061407e81615d9b565b92915050565b60008083601f84011261409657600080fd5b8235905067ffffffffffffffff8111156140af57600080fd5b6020830191508360208202830111156140c757600080fd5b9250929050565b6000813590506140dd81615db2565b92915050565b6000813590506140f281615dc9565b92915050565b60008135905061410781615de0565b92915050565b60008151905061411c81615de0565b92915050565b600082601f83011261413357600080fd5b8135614143848260208601613ff3565b91505092915050565b600082601f83011261415d57600080fd5b813561416d848260208601614031565b91505092915050565b60008135905061418581615df7565b92915050565b60008151905061419a81615df7565b92915050565b6000813590506141af81615e0e565b92915050565b6000602082840312156141c757600080fd5b60006141d58482850161406f565b91505092915050565b600080604083850312156141f157600080fd5b60006141ff8582860161406f565b92505060206142108582860161406f565b9150509250929050565b60008060006060848603121561422f57600080fd5b600061423d8682870161406f565b935050602061424e8682870161406f565b925050604061425f86828701614176565b9150509250925092565b6000806000806080858703121561427f57600080fd5b600061428d8782880161406f565b945050602061429e8782880161406f565b93505060406142af87828801614176565b925050606085013567ffffffffffffffff8111156142cc57600080fd5b6142d887828801614122565b91505092959194509250565b600080604083850312156142f757600080fd5b60006143058582860161406f565b9250506020614316858286016140ce565b9150509250929050565b6000806040838503121561433357600080fd5b60006143418582860161406f565b925050602061435285828601614176565b9150509250929050565b60006020828403121561436e57600080fd5b600061437c848285016140e3565b91505092915050565b60006020828403121561439757600080fd5b60006143a5848285016140f8565b91505092915050565b6000602082840312156143c057600080fd5b60006143ce8482850161410d565b91505092915050565b6000602082840312156143e957600080fd5b600082013567ffffffffffffffff81111561440357600080fd5b61440f8482850161414c565b91505092915050565b60006020828403121561442a57600080fd5b600061443884828501614176565b91505092915050565b60006020828403121561445357600080fd5b60006144618482850161418b565b91505092915050565b6000806000806060858703121561448057600080fd5b600061448e878288016141a0565b945050602085013567ffffffffffffffff8111156144ab57600080fd5b6144b787828801614084565b935093505060406144ca878288016141a0565b91505092959194509250565b6144df816152ac565b82525050565b6144f66144f1826152ac565b61546e565b82525050565b614505816152be565b82525050565b614514816152ca565b82525050565b6000614525826150cf565b61452f81856150e5565b935061453f818560208601615365565b6145488161557f565b840191505092915050565b600061455e826150da565b6145688185615101565b9350614578818560208601615365565b6145818161557f565b840191505092915050565b6000614597826150da565b6145a18185615112565b93506145b1818560208601615365565b80840191505092915050565b60006145ca602283615101565b91506145d58261559d565b604082019050919050565b60006145ed600183615101565b91506145f8826155ec565b602082019050919050565b6000614610600183615101565b915061461b82615615565b602082019050919050565b6000614633600283615101565b915061463e8261563e565b602082019050919050565b6000614656601f83615101565b915061466182615667565b602082019050919050565b6000614679602683615101565b915061468482615690565b604082019050919050565b600061469c602a83615101565b91506146a7826156df565b604082019050919050565b60006146bf600183615101565b91506146ca8261572e565b602082019050919050565b60006146e2601b83615101565b91506146ed82615757565b602082019050919050565b6000614705602383615101565b915061471082615780565b604082019050919050565b6000614728602583615101565b9150614733826157cf565b604082019050919050565b600061474b600183615101565b91506147568261581e565b602082019050919050565b600061476e603983615101565b915061477982615847565b604082019050919050565b6000614791600283615101565b915061479c82615896565b602082019050919050565b60006147b4602b83615101565b91506147bf826158bf565b604082019050919050565b60006147d7602683615101565b91506147e28261590e565b604082019050919050565b60006147fa600583615112565b91506148058261595d565b600582019050919050565b600061481d602083615101565b915061482882615986565b602082019050919050565b6000614840601a83615101565b915061484b826159af565b602082019050919050565b6000614863603283615101565b915061486e826159d8565b604082019050919050565b6000614886600b83615101565b915061489182615a27565b602082019050919050565b60006148a9600183615101565b91506148b482615a50565b602082019050919050565b60006148cc602283615101565b91506148d782615a79565b604082019050919050565b60006148ef6000836150f6565b91506148fa82615ac8565b600082019050919050565b6000614912600183615101565b915061491d82615acb565b602082019050919050565b6000614935603383615101565b915061494082615af4565b604082019050919050565b6000614958601d83615101565b915061496382615b43565b602082019050919050565b600061497b600183615101565b915061498682615b6c565b602082019050919050565b600061499e600183615101565b91506149a982615b95565b602082019050919050565b60006149c1602183615101565b91506149cc82615bbe565b604082019050919050565b60006149e4602e83615101565b91506149ef82615c0d565b604082019050919050565b6000614a07600183615101565b9150614a1282615c5c565b602082019050919050565b6000614a2a600183615101565b9150614a3582615c85565b602082019050919050565b6000614a4d602f83615101565b9150614a5882615cae565b604082019050919050565b6000614a70602d83615101565b9150614a7b82615cfd565b604082019050919050565b6000614a93602283615101565b9150614a9e82615d4c565b604082019050919050565b614ab28161533c565b82525050565b6000614ac482846144e5565b60148201915081905092915050565b6000614adf828461458c565b915081905092915050565b6000614af6828561458c565b9150614b02828461458c565b9150614b0d826147ed565b91508190509392505050565b6000614b24826148e2565b9150819050919050565b6000602082019050614b4360008301846144d6565b92915050565b6000608082019050614b5e60008301876144d6565b614b6b60208301866144d6565b614b786040830185614aa9565b8181036060830152614b8a818461451a565b905095945050505050565b6000602082019050614baa60008301846144fc565b92915050565b6000602082019050614bc5600083018461450b565b92915050565b60006020820190508181036000830152614be58184614553565b905092915050565b60006020820190508181036000830152614c06816145bd565b9050919050565b60006020820190508181036000830152614c26816145e0565b9050919050565b60006020820190508181036000830152614c4681614603565b9050919050565b60006020820190508181036000830152614c6681614626565b9050919050565b60006020820190508181036000830152614c8681614649565b9050919050565b60006020820190508181036000830152614ca68161466c565b9050919050565b60006020820190508181036000830152614cc68161468f565b9050919050565b60006020820190508181036000830152614ce6816146b2565b9050919050565b60006020820190508181036000830152614d06816146d5565b9050919050565b60006020820190508181036000830152614d26816146f8565b9050919050565b60006020820190508181036000830152614d468161471b565b9050919050565b60006020820190508181036000830152614d668161473e565b9050919050565b60006020820190508181036000830152614d8681614761565b9050919050565b60006020820190508181036000830152614da681614784565b9050919050565b60006020820190508181036000830152614dc6816147a7565b9050919050565b60006020820190508181036000830152614de6816147ca565b9050919050565b60006020820190508181036000830152614e0681614810565b9050919050565b60006020820190508181036000830152614e2681614833565b9050919050565b60006020820190508181036000830152614e4681614856565b9050919050565b60006020820190508181036000830152614e6681614879565b9050919050565b60006020820190508181036000830152614e868161489c565b9050919050565b60006020820190508181036000830152614ea6816148bf565b9050919050565b60006020820190508181036000830152614ec681614905565b9050919050565b60006020820190508181036000830152614ee681614928565b9050919050565b60006020820190508181036000830152614f068161494b565b9050919050565b60006020820190508181036000830152614f268161496e565b9050919050565b60006020820190508181036000830152614f4681614991565b9050919050565b60006020820190508181036000830152614f66816149b4565b9050919050565b60006020820190508181036000830152614f86816149d7565b9050919050565b60006020820190508181036000830152614fa6816149fa565b9050919050565b60006020820190508181036000830152614fc681614a1d565b9050919050565b60006020820190508181036000830152614fe681614a40565b9050919050565b6000602082019050818103600083015261500681614a63565b9050919050565b6000602082019050818103600083015261502681614a86565b9050919050565b60006020820190506150426000830184614aa9565b92915050565b6000615052615063565b905061505e82826153f4565b919050565b6000604051905090565b600067ffffffffffffffff82111561508857615087615550565b5b6150918261557f565b9050602081019050919050565b600067ffffffffffffffff8211156150b9576150b8615550565b5b6150c28261557f565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061512882615300565b915061513383615300565b9250826fffffffffffffffffffffffffffffffff03821115615158576151576154c3565b5b828201905092915050565b600061516e8261533c565b91506151798361533c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151ae576151ad6154c3565b5b828201905092915050565b60006151c48261533c565b91506151cf8361533c565b9250826151df576151de6154f2565b5b828204905092915050565b60006151f58261533c565b91506152008361533c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615239576152386154c3565b5b828202905092915050565b600061524f82615300565b915061525a83615300565b92508282101561526d5761526c6154c3565b5b828203905092915050565b60006152838261533c565b915061528e8361533c565b9250828210156152a1576152a06154c3565b5b828203905092915050565b60006152b78261531c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b82818337600083830152505050565b60005b83811015615383578082015181840152602081019050615368565b83811115615392576000848401525b50505050565b60006153a38261533c565b915060008214156153b7576153b66154c3565b5b600182039050919050565b600060028204905060018216806153da57607f821691505b602082108114156153ee576153ed615521565b5b50919050565b6153fd8261557f565b810181811067ffffffffffffffff8211171561541c5761541b615550565b5b80604052505050565b60006154308261533c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615463576154626154c3565b5b600182019050919050565b600061547982615480565b9050919050565b600061548b82615590565b9050919050565b600061549d8261533c565b91506154a88361533c565b9250826154b8576154b76154f2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b7f3400000000000000000000000000000000000000000000000000000000000000600082015250565b7f3130000000000000000000000000000000000000000000000000000000000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f3300000000000000000000000000000000000000000000000000000000000000600082015250565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f3700000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f3131000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4e6f207769746864726177000000000000000000000000000000000000000000600082015250565b7f3200000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f3100000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f3500000000000000000000000000000000000000000000000000000000000000600082015250565b7f3900000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f3600000000000000000000000000000000000000000000000000000000000000600082015250565b7f3800000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b615da4816152ac565b8114615daf57600080fd5b50565b615dbb816152be565b8114615dc657600080fd5b50565b615dd2816152ca565b8114615ddd57600080fd5b50565b615de9816152d4565b8114615df457600080fd5b50565b615e008161533c565b8114615e0b57600080fd5b50565b615e1781615346565b8114615e2257600080fd5b5056fea264697066735822122087061791dc371724aaf4d88ec22a71b300e235c1af192b7b18bab39acd8aa48564736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

MetaMansions is an exclusive community of 8,888 digital mansions inside the KEYS Metaverse.

Validator Index Block Amount
View All Withdrawals

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

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