ETH Price: $3,079.14 (+0.99%)
Gas: 2 Gwei

Token

Bullsht (BS)
 

Overview

Max Total Supply

6,969 BS

Holders

1,014

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
dragop.eth
Balance
8 BS
0xd975d092c774478f6c1f69a021d46e74702fe687
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Bullsht

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Bullsht.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

/* 
    ▄▄▄▄· .▄▄ ·     
    ▐█ ▀█▪▐█ ▀.     
    ▐█▀▀█▄▄▀▀▀█▄    
    ██▄▪▐█▐█▄▪▐█    
    ·▀▀▀▀  ▀▀▀▀     

    Bullsht All Rights Reserved 2022
*/

import "./ERC721A_v3.0.0.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Bullsht is ERC721A, Ownable, ReentrancyGuard {
    using ECDSA for bytes32;
    using Math for uint;

    // Ensures that other contracts can't call a method 
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    uint16 public collectionSize = 6969;
    uint256 public whitelistSaleTokenPrice = 0.04269 ether;
    uint256 public publicSaleTokenPrice = 0.069 ether;
    
    uint8 constant public MAX_TOKENS_WHITELIST_SALE = 5;
    uint8 constant public MAX_TOKENS_PUBLIC_SALE = 10;

    uint32 public whitelistSaleStartTime = 1647194400;
    uint32 public publicSaleStartTime = 1647201600;

    uint256 private _earnedInTotal = 0.0 ether;
    uint256 private _developersMinimalCut = 15.0 ether;

    address private _creatorPayoutAddress = 0x53aAB061E1E4A1560191D85D16f49c83c32EB3fa;
    address private _developerPayoutAddress = 0x4E98bd082406e99A0405EdAAD0744CB2A1c4EeBA;

    bytes8 private _hashSalt = 0x266d70274c443623;
    address private _signerAddress = 0xf018e4f943C8579da3435a069BB81c843890dA96;

    // Ammount of tokens an address has minted during the whitelist sales
    mapping (address => uint256) private _numberMintedDuringWhitelistSale;

    // Used nonces for minting signatures    
    mapping(uint64 => bool) private _usedNonces;

    constructor() ERC721A("Bullsht", "BS") {}

    // Mint tokens during the sales
    function saleMint(bytes32 hash, bytes memory signature, uint64 nonce, uint256 quantity)
        external
        payable
        callerIsUser
    {
        require(totalSupply() + quantity <= collectionSize, "Reached max supply");
        uint256 price;

        if(isPublicSaleOn()) {
            require(quantity <= numberAbleToMint(msg.sender), "Exceeding minting limit for this account");
            price = publicSaleTokenPrice * quantity;
        } else if(isWhitelistSaleOn()) {
            require(quantity <= numberAbleToMint(msg.sender), "Exceeding minting limit for this account during whitelist sales");
            price = whitelistSaleTokenPrice * quantity;
        } else {
            require(false, "Sales have not begun yet");
        }

        require(msg.value == price, "Invalid amount of ETH sent");

        require(_operationHash(msg.sender, quantity, nonce) == hash, "Hash comparison failed");
        require(_isTrustedSigner(hash, signature), "Direct minting is disallowed");
        require(!_usedNonces[nonce], "Hash is already used");

        _safeMint(msg.sender, quantity);
       
        _earnedInTotal += price;
        _usedNonces[nonce] = true;

        if(!isPublicSaleOn())
            _numberMintedDuringWhitelistSale[msg.sender] = _numberMintedDuringWhitelistSale[msg.sender] + quantity;
    }

    // Airdrop tokens to a list of addresses with counts specified in the second argument
    function airdropMint(address[] memory addresses, uint256[] memory tokensCount)
        external 
        onlyOwner
    {
        require(addresses.length == tokensCount.length, "Addresses and tokens count arrays lengths don't match");

        uint256 totalCount = 0;
        for(uint64 i = 0; i < addresses.length; i++) {
            totalCount = totalCount + tokensCount[i];
        }

        require(totalSupply() + totalCount <= collectionSize, "Reached max supply");

        for(uint64 i = 0; i < addresses.length; i++) {
            _safeMint(addresses[i], tokensCount[i]);
        }
    }

    // Generate hash of current mint operation
    function _operationHash(address buyer, uint256 quantity, uint64 nonce) internal view returns (bytes32) {        
        uint8 saleStage;
        if(isPublicSaleOn())
            saleStage = 2;
        else if(isWhitelistSaleOn())        
            saleStage = 1;
        else 
            require(false, "Sales have not begun yet");

        return keccak256(abi.encodePacked(
            _hashSalt,
            buyer,
            uint64(block.chainid),
            uint64(saleStage),
            uint64(quantity),
            uint64(nonce)
        ));
    } 

    // Test whether a message was signed by a trusted address
    function _isTrustedSigner(bytes32 hash, bytes memory signature) internal view returns(bool) {
        return _signerAddress == ECDSA.recover(hash, signature);
    }

    // Withdraw money for creators, making sure, the developer will get his garantied sum
    function withdrawMoneyCreator() external onlyOwner nonReentrant {
        require(address(this).balance > 0, "No funds on the contract");
        require(_earnedInTotal * 13 / 200 >= _developersMinimalCut, "Not enough funds to pay the minimal cut to developer");

        uint256 canWithdraw = _earnedInTotal * 187 / 200;
        uint256 withdrawSum =  Math.min(canWithdraw, address(this).balance);
        payable(_creatorPayoutAddress).transfer(withdrawSum);
    }

    // Withdraw money for developers
    function withdrawMoneyDeveloper() external nonReentrant {
        require(address(this).balance > 0, "No funds on the contract");
        require(msg.sender == _developerPayoutAddress, "You are not the developer");

        uint256 canWithdraw = Math.max(_earnedInTotal * 13 / 200, _developersMinimalCut);
        uint256 withdrawSum = Math.min(canWithdraw, address(this).balance);
        payable(_developerPayoutAddress).transfer(withdrawSum);
    }

    // Number of tokens an address can mint at the given moment
    function numberAbleToMint(address owner) public view returns (uint256) {
        if(isPublicSaleOn())
            return MAX_TOKENS_PUBLIC_SALE + numberMintedDuringWhitelistSale(owner) - numberMinted(owner);
        else if(isWhitelistSaleOn())
            return MAX_TOKENS_WHITELIST_SALE - numberMinted(owner);
        else
            return 0;
    }

    // Number of tokens minted by an address
    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    // Number of tokens minted by an address during the whitelist sales
    function numberMintedDuringWhitelistSale(address owner) public view returns(uint256){
        return _numberMintedDuringWhitelistSale[owner];
    }

    // Change public sales start time in unix time format
    function setPublicSaleStartTime(uint32 unixTime) public onlyOwner {
        publicSaleStartTime = unixTime;
    }

    // Check whether public sales are already started
    function isPublicSaleOn() public view returns (bool) {
        return block.timestamp >= publicSaleStartTime;
    }

    // Change whitelist sales start time in unix time format
    function setWhitelistSaleStartTime(uint32 unixTime) public onlyOwner {
        whitelistSaleStartTime = unixTime;
    }

    // Check whether whitelist sales are already started
    function isWhitelistSaleOn() public view returns (bool) {
        return block.timestamp >= whitelistSaleStartTime;
    }

    // Change collection size limits
    function setCollectionSize(uint16 newSize) external onlyOwner {
        require(newSize >= totalSupply(), "Can't set collection size lower then total supply");
        collectionSize = newSize;
    }

    // Change whitelist sales token price
    function setWhitelistSaleTokenPrice(uint256 newPriceInWei) external onlyOwner {
        whitelistSaleTokenPrice = newPriceInWei;
    }

    // Change public sales token price
    function setPublicSaleTokenPrice(uint256 newPriceInWei) external onlyOwner {
        publicSaleTokenPrice = newPriceInWei;
    }

    // Get token ownership data
    function getOwnershipData(uint256 tokenId)
        external
        view
        returns (TokenOwnership memory)
    {
        return ownershipOf(tokenId);
    }

    // URI with contract metadata for opensea
    function contractURI() public pure returns (string memory) {
        return "ipfs://QmPk5jRo5vhknGMfgDBwszAwpzocoiKWaoxMQX9b5m9HTA";
    }

    // Starting index for the token IDs
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    // Token metadata folder/root URI
    string private _baseTokenURI;

    // Get base token URI
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    // Set base token URI
    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 15 : ERC721A_v3.0.0.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // 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) internal _ownerships;

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

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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 _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _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 ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = 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)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        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 TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * 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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    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.
     * And also called after one token has been burned.
     *
     * 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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 7 of 15 : 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 8 of 15 : 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 9 of 15 : 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 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : 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"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKENS_PUBLIC_SALE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_WHITELIST_SALE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"tokensCount","type":"uint256[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberAbleToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMintedDuringWhitelistSale","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":"publicSaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"saleMint","outputs":[],"stateMutability":"payable","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":"uint16","name":"newSize","type":"uint16"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixTime","type":"uint32"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPriceInWei","type":"uint256"}],"name":"setPublicSaleTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixTime","type":"uint32"}],"name":"setWhitelistSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPriceInWei","type":"uint256"}],"name":"setWhitelistSaleTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"whitelistSaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoneyCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoneyDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052611b39600a60006101000a81548161ffff021916908361ffff1602179055506697aa542d762000600b5566f5232269808000600c5563622e3120600d60006101000a81548163ffffffff021916908363ffffffff16021790555063622e4d40600d60046101000a81548163ffffffff021916908363ffffffff1602179055506000600e5567d02ab486cedc0000600f557353aab061e1e4a1560191d85d16f49c83c32eb3fa601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550734e98bd082406e99a0405edaad0744cb2a1c4eeba601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555067266d70274c44362360c01b601160146101000a81548167ffffffffffffffff021916908360c01c021790555073f018e4f943c8579da3435a069bb81c843890da96601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620001cd57600080fd5b506040518060400160405280600781526020017f42756c6c736874000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f425300000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200025292919062000389565b5080600390805190602001906200026b92919062000389565b506200027c620002b260201b60201c565b6000819055505050620002a462000298620002bb60201b60201c565b620002c360201b60201c565b60016009819055506200049e565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003979062000468565b90600052602060002090601f016020900481019282620003bb576000855562000407565b82601f10620003d657805160ff191683800117855562000407565b8280016001018555821562000407579182015b8281111562000406578251825591602001919060010190620003e9565b5b5090506200041691906200041a565b5090565b5b80821115620004355760008160009055506001016200041b565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200048157607f821691505b6020821081141562000498576200049762000439565b5b50919050565b61563b80620004ae6000396000f3fe6080604052600436106102465760003560e01c8063715018a611610139578063c7e04670116100b6578063e985e9c51161007a578063e985e9c51461088e578063f2fde38b146108cb578063f62dadd2146108f4578063fd0525bc1461090b578063fd0daa5714610927578063fe55e2011461095257610246565b8063c7e0467014610795578063c87b56dd146107c0578063dc33e681146107fd578063e8a3d4851461083a578063e9317a511461086557610246565b80639737e730116100fd5780639737e730146106b25780639b8bf816146106ef578063a22cb46514610718578063ac5227cf14610741578063b88d4fde1461076c57610246565b8063715018a6146105df5780637de86909146105f65780638da5cb5b1461061f5780639231ab2a1461064a57806395d89b411461068757610246565b806342842e0e116101c75780635fd84c281161018b5780635fd84c28146104e85780636352211e1461051157806369e24e391461054e5780636bb7b1d91461057757806370a08231146105a257610246565b806342842e0e1461042957806345c0f53314610452578063465c63621461047d57806355f804b3146104945780635f31c7fb146104bd57610246565b806318160ddd1161020e57806318160ddd14610356578063230b43f41461038157806323b872dd146103ac578063279a669e146103d55780633f5e4741146103fe57610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806317bb055614610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613b35565b61097d565b60405161027f9190613b7d565b60405180910390f35b34801561029457600080fd5b5061029d610a5f565b6040516102aa9190613c31565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613c89565b610af1565b6040516102e79190613cf7565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613d3e565b610b6d565b005b34801561032557600080fd5b50610340600480360381019061033b9190613d7e565b610c78565b60405161034d9190613dba565b60405180910390f35b34801561036257600080fd5b5061036b610cc1565b6040516103789190613dba565b60405180910390f35b34801561038d57600080fd5b50610396610cd8565b6040516103a39190613df4565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce9190613e0f565b610cee565b005b3480156103e157600080fd5b506103fc60048036038101906103f7919061406d565b610cfe565b005b34801561040a57600080fd5b50610413610f05565b6040516104209190613b7d565b60405180910390f35b34801561043557600080fd5b50610450600480360381019061044b9190613e0f565b610f28565b005b34801561045e57600080fd5b50610467610f48565b6040516104749190614102565b60405180910390f35b34801561048957600080fd5b50610492610f5c565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190614178565b61116a565b005b3480156104c957600080fd5b506104d26111fc565b6040516104df91906141e1565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a9190614228565b611201565b005b34801561051d57600080fd5b5061053860048036038101906105339190613c89565b6112a1565b6040516105459190613cf7565b60405180910390f35b34801561055a57600080fd5b5061057560048036038101906105709190613c89565b6112b7565b005b34801561058357600080fd5b5061058c61133d565b6040516105999190613df4565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c49190613d7e565b611353565b6040516105d69190613dba565b60405180910390f35b3480156105eb57600080fd5b506105f4611423565b005b34801561060257600080fd5b5061061d60048036038101906106189190614228565b6114ab565b005b34801561062b57600080fd5b5061063461154b565b6040516106419190613cf7565b60405180910390f35b34801561065657600080fd5b50610671600480360381019061066c9190613c89565b611575565b60405161067e91906142d8565b60405180910390f35b34801561069357600080fd5b5061069c61158d565b6040516106a99190613c31565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613d7e565b61161f565b6040516106e69190613dba565b60405180910390f35b3480156106fb57600080fd5b506107166004803603810190610711919061431f565b611696565b005b34801561072457600080fd5b5061073f600480360381019061073a9190614378565b611780565b005b34801561074d57600080fd5b506107566118f8565b6040516107639190613b7d565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e919061446d565b61191b565b005b3480156107a157600080fd5b506107aa611997565b6040516107b79190613dba565b60405180910390f35b3480156107cc57600080fd5b506107e760048036038101906107e29190613c89565b61199d565b6040516107f49190613c31565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f9190613d7e565b611a3c565b6040516108319190613dba565b60405180910390f35b34801561084657600080fd5b5061084f611a4e565b60405161085c9190613c31565b60405180910390f35b34801561087157600080fd5b5061088c60048036038101906108879190613c89565b611a6e565b005b34801561089a57600080fd5b506108b560048036038101906108b091906144f0565b611af4565b6040516108c29190613b7d565b60405180910390f35b3480156108d757600080fd5b506108f260048036038101906108ed9190613d7e565b611b88565b005b34801561090057600080fd5b50610909611c80565b005b61092560048036038101906109209190614592565b611e4e565b005b34801561093357600080fd5b5061093c612295565b60405161094991906141e1565b60405180910390f35b34801561095e57600080fd5b5061096761229a565b6040516109749190613dba565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a4857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a585750610a57826122a0565b5b9050919050565b606060028054610a6e90614644565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9a90614644565b8015610ae75780601f10610abc57610100808354040283529160200191610ae7565b820191906000526020600020905b815481529060010190602001808311610aca57829003601f168201915b5050505050905090565b6000610afc8261230a565b610b32576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b78826112a1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bff612358565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c315750610c2f81610c2a612358565b611af4565b155b15610c68576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c73838383612360565b505050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610ccb612412565b6001546000540303905090565b600d60009054906101000a900463ffffffff1681565b610cf983838361241b565b505050565b610d06612358565b73ffffffffffffffffffffffffffffffffffffffff16610d2461154b565b73ffffffffffffffffffffffffffffffffffffffff1614610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d71906146c2565b60405180910390fd5b8051825114610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590614754565b60405180910390fd5b6000805b83518167ffffffffffffffff161015610e1a57828167ffffffffffffffff1681518110610df257610df1614774565b5b602002602001015182610e0591906147d2565b91508080610e1290614828565b915050610dc2565b50600a60009054906101000a900461ffff1661ffff1681610e39610cc1565b610e4391906147d2565b1115610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b906148a5565b60405180910390fd5b60005b83518167ffffffffffffffff161015610eff57610eec848267ffffffffffffffff1681518110610eba57610eb9614774565b5b6020026020010151848367ffffffffffffffff1681518110610edf57610ede614774565b5b602002602001015161290c565b8080610ef790614828565b915050610e87565b50505050565b6000600d60049054906101000a900463ffffffff1663ffffffff16421015905090565b610f438383836040518060200160405280600081525061191b565b505050565b600a60009054906101000a900461ffff1681565b610f64612358565b73ffffffffffffffffffffffffffffffffffffffff16610f8261154b565b73ffffffffffffffffffffffffffffffffffffffff1614610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf906146c2565b60405180910390fd5b6002600954141561101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590614911565b60405180910390fd5b600260098190555060004711611069576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110609061497d565b60405180910390fd5b600f5460c8600d600e5461107d919061499d565b6110879190614a26565b10156110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90614ac9565b60405180910390fd5b600060c860bb600e546110db919061499d565b6110e59190614a26565b905060006110f3824761292a565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561115d573d6000803e3d6000fd5b5050506001600981905550565b611172612358565b73ffffffffffffffffffffffffffffffffffffffff1661119061154b565b73ffffffffffffffffffffffffffffffffffffffff16146111e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dd906146c2565b60405180910390fd5b8181601591906111f79291906139e3565b505050565b600581565b611209612358565b73ffffffffffffffffffffffffffffffffffffffff1661122761154b565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611274906146c2565b60405180910390fd5b80600d60046101000a81548163ffffffff021916908363ffffffff16021790555050565b60006112ac82612943565b600001519050919050565b6112bf612358565b73ffffffffffffffffffffffffffffffffffffffff166112dd61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132a906146c2565b60405180910390fd5b80600b8190555050565b600d60049054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113bb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61142b612358565b73ffffffffffffffffffffffffffffffffffffffff1661144961154b565b73ffffffffffffffffffffffffffffffffffffffff161461149f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611496906146c2565b60405180910390fd5b6114a96000612bd2565b565b6114b3612358565b73ffffffffffffffffffffffffffffffffffffffff166114d161154b565b73ffffffffffffffffffffffffffffffffffffffff1614611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e906146c2565b60405180910390fd5b80600d60006101000a81548163ffffffff021916908363ffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61157d613a69565b61158682612943565b9050919050565b60606003805461159c90614644565b80601f01602080910402602001604051908101604052809291908181526020018280546115c890614644565b80156116155780601f106115ea57610100808354040283529160200191611615565b820191906000526020600020905b8154815290600101906020018083116115f857829003601f168201915b5050505050905090565b6000611629610f05565b156116605761163782611a3c565b61164083610c78565b600a60ff1661164f91906147d2565b6116599190614ae9565b9050611691565b6116686118f8565b1561168c5761167682611a3c565b600560ff166116859190614ae9565b9050611691565b600090505b919050565b61169e612358565b73ffffffffffffffffffffffffffffffffffffffff166116bc61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611712576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611709906146c2565b60405180910390fd5b61171a610cc1565b8161ffff161015611760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175790614b8f565b60405180910390fd5b80600a60006101000a81548161ffff021916908361ffff16021790555050565b611788612358565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117ed576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006117fa612358565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a7612358565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ec9190613b7d565b60405180910390a35050565b6000600d60009054906101000a900463ffffffff1663ffffffff16421015905090565b61192684848461241b565b6119458373ffffffffffffffffffffffffffffffffffffffff16612c98565b801561195a575061195884848484612cbb565b155b15611991576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600c5481565b60606119a88261230a565b6119de576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006119e8612e0c565b9050600081511415611a095760405180602001604052806000815250611a34565b80611a1384612e9e565b604051602001611a24929190614beb565b6040516020818303038152906040525b915050919050565b6000611a4782612fff565b9050919050565b60606040518060600160405280603581526020016155d160359139905090565b611a76612358565b73ffffffffffffffffffffffffffffffffffffffff16611a9461154b565b73ffffffffffffffffffffffffffffffffffffffff1614611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae1906146c2565b60405180910390fd5b80600c8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b90612358565b73ffffffffffffffffffffffffffffffffffffffff16611bae61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb906146c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6b90614c81565b60405180910390fd5b611c7d81612bd2565b50565b60026009541415611cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbd90614911565b60405180910390fd5b600260098190555060004711611d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d089061497d565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9890614ced565b60405180910390fd5b6000611dc960c8600d600e54611db7919061499d565b611dc19190614a26565b600f546130cf565b90506000611dd7824761292a565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611e41573d6000803e3d6000fd5b5050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb390614d59565b60405180910390fd5b600a60009054906101000a900461ffff1661ffff1681611eda610cc1565b611ee491906147d2565b1115611f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1c906148a5565b60405180910390fd5b6000611f2f610f05565b15611f9457611f3d3361161f565b821115611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7690614deb565b60405180910390fd5b81600c54611f8d919061499d565b9050612044565b611f9c6118f8565b1561200157611faa3361161f565b821115611fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe390614e7d565b60405180910390fd5b81600b54611ffa919061499d565b9050612043565b6000612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203990614ee9565b60405180910390fd5b5b5b803414612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d90614f55565b60405180910390fd5b846120923384866130e9565b146120d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c990614fc1565b60405180910390fd5b6120dc85856131a8565b61211b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121129061502d565b60405180910390fd5b601460008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218790615099565b60405180910390fd5b61219a338361290c565b80600e60008282546121ac91906147d2565b925050819055506001601460008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121fb610f05565b61228e5781601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a91906147d2565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5050505050565b600a81565b600b5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612315612412565b11158015612324575060005482105b8015612351575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061242682612943565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661244d612358565b73ffffffffffffffffffffffffffffffffffffffff161480612480575061247f826000015161247a612358565b611af4565b5b806124c5575061248e612358565b73ffffffffffffffffffffffffffffffffffffffff166124ad84610af1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806124fe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612567576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125ce576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125db858585600161320c565b6125eb6000848460000151612360565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561289c5760005481101561289b5782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129058585856001613212565b5050505050565b612926828260405180602001604052806000815250613218565b5050565b6000818310612939578161293b565b825b905092915050565b61294b613a69565b600082905080612959612412565b11158015612968575060005481105b15612b9b576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b9957600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a7d578092505050612bcd565b5b600115612b9857818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b93578092505050612bcd565b612a7e565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ce1612358565b8786866040518563ffffffff1660e01b8152600401612d03949392919061510e565b6020604051808303816000875af1925050508015612d3f57506040513d601f19601f82011682018060405250810190612d3c919061516f565b60015b612db9573d8060008114612d6f576040519150601f19603f3d011682016040523d82523d6000602084013e612d74565b606091505b50600081511415612db1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060158054612e1b90614644565b80601f0160208091040260200160405190810160405280929190818152602001828054612e4790614644565b8015612e945780601f10612e6957610100808354040283529160200191612e94565b820191906000526020600020905b815481529060010190602001808311612e7757829003601f168201915b5050505050905090565b60606000821415612ee6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ffa565b600082905060005b60008214612f18578080612f019061519c565b915050600a82612f119190614a26565b9150612eee565b60008167ffffffffffffffff811115612f3457612f33613e67565b5b6040519080825280601f01601f191660200182016040528015612f665781602001600182028036833780820191505090505b5090505b60008514612ff357600182612f7f9190614ae9565b9150600a85612f8e91906151e5565b6030612f9a91906147d2565b60f81b818381518110612fb057612faf614774565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612fec9190614a26565b9450612f6a565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613067576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000818310156130df57816130e1565b825b905092915050565b6000806130f4610f05565b15613102576002905061315b565b61310a6118f8565b15613118576001905061315a565b6000613159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315090614ee9565b60405180910390fd5b5b5b601160149054906101000a900460c01b85468360ff168787604051602001613188969594939291906152e1565b604051602081830303815290604052805190602001209150509392505050565b60006131b4838361322a565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b50505050565b50505050565b6132258383836001613251565b505050565b6000806000613239858561361f565b91509150613246816136a2565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156132be576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156132f9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613306600086838761320c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156134d057506134cf8773ffffffffffffffffffffffffffffffffffffffff16612c98565b5b15613596575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135456000888480600101955088612cbb565b61357b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156134d657826000541461359157600080fd5b613602565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613597575b8160008190555050506136186000868387613212565b5050505050565b6000806041835114156136615760008060006020860151925060408601519150606086015160001a905061365587828585613877565b9450945050505061369b565b604083511415613692576000806020850151915060408501519050613687868383613984565b93509350505061369b565b60006002915091505b9250929050565b600060048111156136b6576136b5615351565b5b8160048111156136c9576136c8615351565b5b14156136d457613874565b600160048111156136e8576136e7615351565b5b8160048111156136fb576136fa615351565b5b141561373c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613733906153cc565b60405180910390fd5b600260048111156137505761374f615351565b5b81600481111561376357613762615351565b5b14156137a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379b90615438565b60405180910390fd5b600360048111156137b8576137b7615351565b5b8160048111156137cb576137ca615351565b5b141561380c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613803906154ca565b60405180910390fd5b60048081111561381f5761381e615351565b5b81600481111561383257613831615351565b5b1415613873576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161386a9061555c565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156138b257600060039150915061397b565b601b8560ff16141580156138ca5750601c8560ff1614155b156138dc57600060049150915061397b565b600060018787878760405160008152602001604052604051613901949392919061558b565b6020604051602081039080840390855afa158015613923573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156139725760006001925092505061397b565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6139c791906147d2565b90506139d587828885613877565b935093505050935093915050565b8280546139ef90614644565b90600052602060002090601f016020900481019282613a115760008555613a58565b82601f10613a2a57803560ff1916838001178555613a58565b82800160010185558215613a58579182015b82811115613a57578235825591602001919060010190613a3c565b5b509050613a659190613aac565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613ac5576000816000905550600101613aad565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b1281613add565b8114613b1d57600080fd5b50565b600081359050613b2f81613b09565b92915050565b600060208284031215613b4b57613b4a613ad3565b5b6000613b5984828501613b20565b91505092915050565b60008115159050919050565b613b7781613b62565b82525050565b6000602082019050613b926000830184613b6e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bd2578082015181840152602081019050613bb7565b83811115613be1576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c0382613b98565b613c0d8185613ba3565b9350613c1d818560208601613bb4565b613c2681613be7565b840191505092915050565b60006020820190508181036000830152613c4b8184613bf8565b905092915050565b6000819050919050565b613c6681613c53565b8114613c7157600080fd5b50565b600081359050613c8381613c5d565b92915050565b600060208284031215613c9f57613c9e613ad3565b5b6000613cad84828501613c74565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ce182613cb6565b9050919050565b613cf181613cd6565b82525050565b6000602082019050613d0c6000830184613ce8565b92915050565b613d1b81613cd6565b8114613d2657600080fd5b50565b600081359050613d3881613d12565b92915050565b60008060408385031215613d5557613d54613ad3565b5b6000613d6385828601613d29565b9250506020613d7485828601613c74565b9150509250929050565b600060208284031215613d9457613d93613ad3565b5b6000613da284828501613d29565b91505092915050565b613db481613c53565b82525050565b6000602082019050613dcf6000830184613dab565b92915050565b600063ffffffff82169050919050565b613dee81613dd5565b82525050565b6000602082019050613e096000830184613de5565b92915050565b600080600060608486031215613e2857613e27613ad3565b5b6000613e3686828701613d29565b9350506020613e4786828701613d29565b9250506040613e5886828701613c74565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e9f82613be7565b810181811067ffffffffffffffff82111715613ebe57613ebd613e67565b5b80604052505050565b6000613ed1613ac9565b9050613edd8282613e96565b919050565b600067ffffffffffffffff821115613efd57613efc613e67565b5b602082029050602081019050919050565b600080fd5b6000613f26613f2184613ee2565b613ec7565b90508083825260208201905060208402830185811115613f4957613f48613f0e565b5b835b81811015613f725780613f5e8882613d29565b845260208401935050602081019050613f4b565b5050509392505050565b600082601f830112613f9157613f90613e62565b5b8135613fa1848260208601613f13565b91505092915050565b600067ffffffffffffffff821115613fc557613fc4613e67565b5b602082029050602081019050919050565b6000613fe9613fe484613faa565b613ec7565b9050808382526020820190506020840283018581111561400c5761400b613f0e565b5b835b8181101561403557806140218882613c74565b84526020840193505060208101905061400e565b5050509392505050565b600082601f83011261405457614053613e62565b5b8135614064848260208601613fd6565b91505092915050565b6000806040838503121561408457614083613ad3565b5b600083013567ffffffffffffffff8111156140a2576140a1613ad8565b5b6140ae85828601613f7c565b925050602083013567ffffffffffffffff8111156140cf576140ce613ad8565b5b6140db8582860161403f565b9150509250929050565b600061ffff82169050919050565b6140fc816140e5565b82525050565b600060208201905061411760008301846140f3565b92915050565b600080fd5b60008083601f84011261413857614137613e62565b5b8235905067ffffffffffffffff8111156141555761415461411d565b5b60208301915083600182028301111561417157614170613f0e565b5b9250929050565b6000806020838503121561418f5761418e613ad3565b5b600083013567ffffffffffffffff8111156141ad576141ac613ad8565b5b6141b985828601614122565b92509250509250929050565b600060ff82169050919050565b6141db816141c5565b82525050565b60006020820190506141f660008301846141d2565b92915050565b61420581613dd5565b811461421057600080fd5b50565b600081359050614222816141fc565b92915050565b60006020828403121561423e5761423d613ad3565b5b600061424c84828501614213565b91505092915050565b61425e81613cd6565b82525050565b600067ffffffffffffffff82169050919050565b61428181614264565b82525050565b61429081613b62565b82525050565b6060820160008201516142ac6000850182614255565b5060208201516142bf6020850182614278565b5060408201516142d26040850182614287565b50505050565b60006060820190506142ed6000830184614296565b92915050565b6142fc816140e5565b811461430757600080fd5b50565b600081359050614319816142f3565b92915050565b60006020828403121561433557614334613ad3565b5b60006143438482850161430a565b91505092915050565b61435581613b62565b811461436057600080fd5b50565b6000813590506143728161434c565b92915050565b6000806040838503121561438f5761438e613ad3565b5b600061439d85828601613d29565b92505060206143ae85828601614363565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156143d8576143d7613e67565b5b6143e182613be7565b9050602081019050919050565b82818337600083830152505050565b600061441061440b846143bd565b613ec7565b90508281526020810184848401111561442c5761442b6143b8565b5b6144378482856143ee565b509392505050565b600082601f83011261445457614453613e62565b5b81356144648482602086016143fd565b91505092915050565b6000806000806080858703121561448757614486613ad3565b5b600061449587828801613d29565b94505060206144a687828801613d29565b93505060406144b787828801613c74565b925050606085013567ffffffffffffffff8111156144d8576144d7613ad8565b5b6144e48782880161443f565b91505092959194509250565b6000806040838503121561450757614506613ad3565b5b600061451585828601613d29565b925050602061452685828601613d29565b9150509250929050565b6000819050919050565b61454381614530565b811461454e57600080fd5b50565b6000813590506145608161453a565b92915050565b61456f81614264565b811461457a57600080fd5b50565b60008135905061458c81614566565b92915050565b600080600080608085870312156145ac576145ab613ad3565b5b60006145ba87828801614551565b945050602085013567ffffffffffffffff8111156145db576145da613ad8565b5b6145e78782880161443f565b93505060406145f88782880161457d565b925050606061460987828801613c74565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061465c57607f821691505b602082108114156146705761466f614615565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146ac602083613ba3565b91506146b782614676565b602082019050919050565b600060208201905081810360008301526146db8161469f565b9050919050565b7f41646472657373657320616e6420746f6b656e7320636f756e7420617272617960008201527f73206c656e6774687320646f6e2774206d617463680000000000000000000000602082015250565b600061473e603583613ba3565b9150614749826146e2565b604082019050919050565b6000602082019050818103600083015261476d81614731565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147dd82613c53565b91506147e883613c53565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561481d5761481c6147a3565b5b828201905092915050565b600061483382614264565b915067ffffffffffffffff82141561484e5761484d6147a3565b5b600182019050919050565b7f52656163686564206d617820737570706c790000000000000000000000000000600082015250565b600061488f601283613ba3565b915061489a82614859565b602082019050919050565b600060208201905081810360008301526148be81614882565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006148fb601f83613ba3565b9150614906826148c5565b602082019050919050565b6000602082019050818103600083015261492a816148ee565b9050919050565b7f4e6f2066756e6473206f6e2074686520636f6e74726163740000000000000000600082015250565b6000614967601883613ba3565b915061497282614931565b602082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b60006149a882613c53565b91506149b383613c53565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149ec576149eb6147a3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a3182613c53565b9150614a3c83613c53565b925082614a4c57614a4b6149f7565b5b828204905092915050565b7f4e6f7420656e6f7567682066756e647320746f2070617920746865206d696e6960008201527f6d616c2063757420746f20646576656c6f706572000000000000000000000000602082015250565b6000614ab3603483613ba3565b9150614abe82614a57565b604082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b6000614af482613c53565b9150614aff83613c53565b925082821015614b1257614b116147a3565b5b828203905092915050565b7f43616e27742073657420636f6c6c656374696f6e2073697a65206c6f7765722060008201527f7468656e20746f74616c20737570706c79000000000000000000000000000000602082015250565b6000614b79603183613ba3565b9150614b8482614b1d565b604082019050919050565b60006020820190508181036000830152614ba881614b6c565b9050919050565b600081905092915050565b6000614bc582613b98565b614bcf8185614baf565b9350614bdf818560208601613bb4565b80840191505092915050565b6000614bf78285614bba565b9150614c038284614bba565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c6b602683613ba3565b9150614c7682614c0f565b604082019050919050565b60006020820190508181036000830152614c9a81614c5e565b9050919050565b7f596f7520617265206e6f742074686520646576656c6f70657200000000000000600082015250565b6000614cd7601983613ba3565b9150614ce282614ca1565b602082019050919050565b60006020820190508181036000830152614d0681614cca565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000614d43601e83613ba3565b9150614d4e82614d0d565b602082019050919050565b60006020820190508181036000830152614d7281614d36565b9050919050565b7f457863656564696e67206d696e74696e67206c696d697420666f72207468697360008201527f206163636f756e74000000000000000000000000000000000000000000000000602082015250565b6000614dd5602883613ba3565b9150614de082614d79565b604082019050919050565b60006020820190508181036000830152614e0481614dc8565b9050919050565b7f457863656564696e67206d696e74696e67206c696d697420666f72207468697360008201527f206163636f756e7420647572696e672077686974656c6973742073616c657300602082015250565b6000614e67603f83613ba3565b9150614e7282614e0b565b604082019050919050565b60006020820190508181036000830152614e9681614e5a565b9050919050565b7f53616c65732068617665206e6f7420626567756e207965740000000000000000600082015250565b6000614ed3601883613ba3565b9150614ede82614e9d565b602082019050919050565b60006020820190508181036000830152614f0281614ec6565b9050919050565b7f496e76616c696420616d6f756e74206f66204554482073656e74000000000000600082015250565b6000614f3f601a83613ba3565b9150614f4a82614f09565b602082019050919050565b60006020820190508181036000830152614f6e81614f32565b9050919050565b7f4861736820636f6d70617269736f6e206661696c656400000000000000000000600082015250565b6000614fab601683613ba3565b9150614fb682614f75565b602082019050919050565b60006020820190508181036000830152614fda81614f9e565b9050919050565b7f446972656374206d696e74696e6720697320646973616c6c6f77656400000000600082015250565b6000615017601c83613ba3565b915061502282614fe1565b602082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f4861736820697320616c72656164792075736564000000000000000000000000600082015250565b6000615083601483613ba3565b915061508e8261504d565b602082019050919050565b600060208201905081810360008301526150b281615076565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006150e0826150b9565b6150ea81856150c4565b93506150fa818560208601613bb4565b61510381613be7565b840191505092915050565b60006080820190506151236000830187613ce8565b6151306020830186613ce8565b61513d6040830185613dab565b818103606083015261514f81846150d5565b905095945050505050565b60008151905061516981613b09565b92915050565b60006020828403121561518557615184613ad3565b5b60006151938482850161515a565b91505092915050565b60006151a782613c53565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151da576151d96147a3565b5b600182019050919050565b60006151f082613c53565b91506151fb83613c53565b92508261520b5761520a6149f7565b5b828206905092915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61525d61525882615216565b615242565b82525050565b60008160601b9050919050565b600061527b82615263565b9050919050565b600061528d82615270565b9050919050565b6152a56152a082613cd6565b615282565b82525050565b60008160c01b9050919050565b60006152c3826152ab565b9050919050565b6152db6152d682614264565b6152b8565b82525050565b60006152ed828961524c565b6008820191506152fd8288615294565b60148201915061530d82876152ca565b60088201915061531d82866152ca565b60088201915061532d82856152ca565b60088201915061533d82846152ca565b600882019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006153b6601883613ba3565b91506153c182615380565b602082019050919050565b600060208201905081810360008301526153e5816153a9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615422601f83613ba3565b915061542d826153ec565b602082019050919050565b6000602082019050818103600083015261545181615415565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006154b4602283613ba3565b91506154bf82615458565b604082019050919050565b600060208201905081810360008301526154e3816154a7565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615546602283613ba3565b9150615551826154ea565b604082019050919050565b6000602082019050818103600083015261557581615539565b9050919050565b61558581614530565b82525050565b60006080820190506155a0600083018761557c565b6155ad60208301866141d2565b6155ba604083018561557c565b6155c7606083018461557c565b9594505050505056fe697066733a2f2f516d506b356a526f3576686b6e474d6667444277737a4177707a6f636f694b57616f784d51583962356d39485441a2646970667358221220ec526d4cab13e9fd0fbe3e8a65323ef154c5b32a5aecb9d79cff3093b9a17ec764736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102465760003560e01c8063715018a611610139578063c7e04670116100b6578063e985e9c51161007a578063e985e9c51461088e578063f2fde38b146108cb578063f62dadd2146108f4578063fd0525bc1461090b578063fd0daa5714610927578063fe55e2011461095257610246565b8063c7e0467014610795578063c87b56dd146107c0578063dc33e681146107fd578063e8a3d4851461083a578063e9317a511461086557610246565b80639737e730116100fd5780639737e730146106b25780639b8bf816146106ef578063a22cb46514610718578063ac5227cf14610741578063b88d4fde1461076c57610246565b8063715018a6146105df5780637de86909146105f65780638da5cb5b1461061f5780639231ab2a1461064a57806395d89b411461068757610246565b806342842e0e116101c75780635fd84c281161018b5780635fd84c28146104e85780636352211e1461051157806369e24e391461054e5780636bb7b1d91461057757806370a08231146105a257610246565b806342842e0e1461042957806345c0f53314610452578063465c63621461047d57806355f804b3146104945780635f31c7fb146104bd57610246565b806318160ddd1161020e57806318160ddd14610356578063230b43f41461038157806323b872dd146103ac578063279a669e146103d55780633f5e4741146103fe57610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806317bb055614610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613b35565b61097d565b60405161027f9190613b7d565b60405180910390f35b34801561029457600080fd5b5061029d610a5f565b6040516102aa9190613c31565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613c89565b610af1565b6040516102e79190613cf7565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613d3e565b610b6d565b005b34801561032557600080fd5b50610340600480360381019061033b9190613d7e565b610c78565b60405161034d9190613dba565b60405180910390f35b34801561036257600080fd5b5061036b610cc1565b6040516103789190613dba565b60405180910390f35b34801561038d57600080fd5b50610396610cd8565b6040516103a39190613df4565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce9190613e0f565b610cee565b005b3480156103e157600080fd5b506103fc60048036038101906103f7919061406d565b610cfe565b005b34801561040a57600080fd5b50610413610f05565b6040516104209190613b7d565b60405180910390f35b34801561043557600080fd5b50610450600480360381019061044b9190613e0f565b610f28565b005b34801561045e57600080fd5b50610467610f48565b6040516104749190614102565b60405180910390f35b34801561048957600080fd5b50610492610f5c565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190614178565b61116a565b005b3480156104c957600080fd5b506104d26111fc565b6040516104df91906141e1565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a9190614228565b611201565b005b34801561051d57600080fd5b5061053860048036038101906105339190613c89565b6112a1565b6040516105459190613cf7565b60405180910390f35b34801561055a57600080fd5b5061057560048036038101906105709190613c89565b6112b7565b005b34801561058357600080fd5b5061058c61133d565b6040516105999190613df4565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c49190613d7e565b611353565b6040516105d69190613dba565b60405180910390f35b3480156105eb57600080fd5b506105f4611423565b005b34801561060257600080fd5b5061061d60048036038101906106189190614228565b6114ab565b005b34801561062b57600080fd5b5061063461154b565b6040516106419190613cf7565b60405180910390f35b34801561065657600080fd5b50610671600480360381019061066c9190613c89565b611575565b60405161067e91906142d8565b60405180910390f35b34801561069357600080fd5b5061069c61158d565b6040516106a99190613c31565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613d7e565b61161f565b6040516106e69190613dba565b60405180910390f35b3480156106fb57600080fd5b506107166004803603810190610711919061431f565b611696565b005b34801561072457600080fd5b5061073f600480360381019061073a9190614378565b611780565b005b34801561074d57600080fd5b506107566118f8565b6040516107639190613b7d565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e919061446d565b61191b565b005b3480156107a157600080fd5b506107aa611997565b6040516107b79190613dba565b60405180910390f35b3480156107cc57600080fd5b506107e760048036038101906107e29190613c89565b61199d565b6040516107f49190613c31565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f9190613d7e565b611a3c565b6040516108319190613dba565b60405180910390f35b34801561084657600080fd5b5061084f611a4e565b60405161085c9190613c31565b60405180910390f35b34801561087157600080fd5b5061088c60048036038101906108879190613c89565b611a6e565b005b34801561089a57600080fd5b506108b560048036038101906108b091906144f0565b611af4565b6040516108c29190613b7d565b60405180910390f35b3480156108d757600080fd5b506108f260048036038101906108ed9190613d7e565b611b88565b005b34801561090057600080fd5b50610909611c80565b005b61092560048036038101906109209190614592565b611e4e565b005b34801561093357600080fd5b5061093c612295565b60405161094991906141e1565b60405180910390f35b34801561095e57600080fd5b5061096761229a565b6040516109749190613dba565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a4857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a585750610a57826122a0565b5b9050919050565b606060028054610a6e90614644565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9a90614644565b8015610ae75780601f10610abc57610100808354040283529160200191610ae7565b820191906000526020600020905b815481529060010190602001808311610aca57829003601f168201915b5050505050905090565b6000610afc8261230a565b610b32576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b78826112a1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bff612358565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c315750610c2f81610c2a612358565b611af4565b155b15610c68576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c73838383612360565b505050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610ccb612412565b6001546000540303905090565b600d60009054906101000a900463ffffffff1681565b610cf983838361241b565b505050565b610d06612358565b73ffffffffffffffffffffffffffffffffffffffff16610d2461154b565b73ffffffffffffffffffffffffffffffffffffffff1614610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d71906146c2565b60405180910390fd5b8051825114610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590614754565b60405180910390fd5b6000805b83518167ffffffffffffffff161015610e1a57828167ffffffffffffffff1681518110610df257610df1614774565b5b602002602001015182610e0591906147d2565b91508080610e1290614828565b915050610dc2565b50600a60009054906101000a900461ffff1661ffff1681610e39610cc1565b610e4391906147d2565b1115610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b906148a5565b60405180910390fd5b60005b83518167ffffffffffffffff161015610eff57610eec848267ffffffffffffffff1681518110610eba57610eb9614774565b5b6020026020010151848367ffffffffffffffff1681518110610edf57610ede614774565b5b602002602001015161290c565b8080610ef790614828565b915050610e87565b50505050565b6000600d60049054906101000a900463ffffffff1663ffffffff16421015905090565b610f438383836040518060200160405280600081525061191b565b505050565b600a60009054906101000a900461ffff1681565b610f64612358565b73ffffffffffffffffffffffffffffffffffffffff16610f8261154b565b73ffffffffffffffffffffffffffffffffffffffff1614610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf906146c2565b60405180910390fd5b6002600954141561101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590614911565b60405180910390fd5b600260098190555060004711611069576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110609061497d565b60405180910390fd5b600f5460c8600d600e5461107d919061499d565b6110879190614a26565b10156110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90614ac9565b60405180910390fd5b600060c860bb600e546110db919061499d565b6110e59190614a26565b905060006110f3824761292a565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561115d573d6000803e3d6000fd5b5050506001600981905550565b611172612358565b73ffffffffffffffffffffffffffffffffffffffff1661119061154b565b73ffffffffffffffffffffffffffffffffffffffff16146111e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dd906146c2565b60405180910390fd5b8181601591906111f79291906139e3565b505050565b600581565b611209612358565b73ffffffffffffffffffffffffffffffffffffffff1661122761154b565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611274906146c2565b60405180910390fd5b80600d60046101000a81548163ffffffff021916908363ffffffff16021790555050565b60006112ac82612943565b600001519050919050565b6112bf612358565b73ffffffffffffffffffffffffffffffffffffffff166112dd61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132a906146c2565b60405180910390fd5b80600b8190555050565b600d60049054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113bb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61142b612358565b73ffffffffffffffffffffffffffffffffffffffff1661144961154b565b73ffffffffffffffffffffffffffffffffffffffff161461149f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611496906146c2565b60405180910390fd5b6114a96000612bd2565b565b6114b3612358565b73ffffffffffffffffffffffffffffffffffffffff166114d161154b565b73ffffffffffffffffffffffffffffffffffffffff1614611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e906146c2565b60405180910390fd5b80600d60006101000a81548163ffffffff021916908363ffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61157d613a69565b61158682612943565b9050919050565b60606003805461159c90614644565b80601f01602080910402602001604051908101604052809291908181526020018280546115c890614644565b80156116155780601f106115ea57610100808354040283529160200191611615565b820191906000526020600020905b8154815290600101906020018083116115f857829003601f168201915b5050505050905090565b6000611629610f05565b156116605761163782611a3c565b61164083610c78565b600a60ff1661164f91906147d2565b6116599190614ae9565b9050611691565b6116686118f8565b1561168c5761167682611a3c565b600560ff166116859190614ae9565b9050611691565b600090505b919050565b61169e612358565b73ffffffffffffffffffffffffffffffffffffffff166116bc61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611712576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611709906146c2565b60405180910390fd5b61171a610cc1565b8161ffff161015611760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175790614b8f565b60405180910390fd5b80600a60006101000a81548161ffff021916908361ffff16021790555050565b611788612358565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117ed576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006117fa612358565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a7612358565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ec9190613b7d565b60405180910390a35050565b6000600d60009054906101000a900463ffffffff1663ffffffff16421015905090565b61192684848461241b565b6119458373ffffffffffffffffffffffffffffffffffffffff16612c98565b801561195a575061195884848484612cbb565b155b15611991576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600c5481565b60606119a88261230a565b6119de576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006119e8612e0c565b9050600081511415611a095760405180602001604052806000815250611a34565b80611a1384612e9e565b604051602001611a24929190614beb565b6040516020818303038152906040525b915050919050565b6000611a4782612fff565b9050919050565b60606040518060600160405280603581526020016155d160359139905090565b611a76612358565b73ffffffffffffffffffffffffffffffffffffffff16611a9461154b565b73ffffffffffffffffffffffffffffffffffffffff1614611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae1906146c2565b60405180910390fd5b80600c8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b90612358565b73ffffffffffffffffffffffffffffffffffffffff16611bae61154b565b73ffffffffffffffffffffffffffffffffffffffff1614611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb906146c2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6b90614c81565b60405180910390fd5b611c7d81612bd2565b50565b60026009541415611cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbd90614911565b60405180910390fd5b600260098190555060004711611d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d089061497d565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9890614ced565b60405180910390fd5b6000611dc960c8600d600e54611db7919061499d565b611dc19190614a26565b600f546130cf565b90506000611dd7824761292a565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611e41573d6000803e3d6000fd5b5050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb390614d59565b60405180910390fd5b600a60009054906101000a900461ffff1661ffff1681611eda610cc1565b611ee491906147d2565b1115611f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1c906148a5565b60405180910390fd5b6000611f2f610f05565b15611f9457611f3d3361161f565b821115611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7690614deb565b60405180910390fd5b81600c54611f8d919061499d565b9050612044565b611f9c6118f8565b1561200157611faa3361161f565b821115611fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe390614e7d565b60405180910390fd5b81600b54611ffa919061499d565b9050612043565b6000612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203990614ee9565b60405180910390fd5b5b5b803414612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d90614f55565b60405180910390fd5b846120923384866130e9565b146120d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c990614fc1565b60405180910390fd5b6120dc85856131a8565b61211b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121129061502d565b60405180910390fd5b601460008467ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218790615099565b60405180910390fd5b61219a338361290c565b80600e60008282546121ac91906147d2565b925050819055506001601460008567ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121fb610f05565b61228e5781601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a91906147d2565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5050505050565b600a81565b600b5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612315612412565b11158015612324575060005482105b8015612351575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061242682612943565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661244d612358565b73ffffffffffffffffffffffffffffffffffffffff161480612480575061247f826000015161247a612358565b611af4565b5b806124c5575061248e612358565b73ffffffffffffffffffffffffffffffffffffffff166124ad84610af1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806124fe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612567576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125ce576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125db858585600161320c565b6125eb6000848460000151612360565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561289c5760005481101561289b5782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129058585856001613212565b5050505050565b612926828260405180602001604052806000815250613218565b5050565b6000818310612939578161293b565b825b905092915050565b61294b613a69565b600082905080612959612412565b11158015612968575060005481105b15612b9b576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b9957600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a7d578092505050612bcd565b5b600115612b9857818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b93578092505050612bcd565b612a7e565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ce1612358565b8786866040518563ffffffff1660e01b8152600401612d03949392919061510e565b6020604051808303816000875af1925050508015612d3f57506040513d601f19601f82011682018060405250810190612d3c919061516f565b60015b612db9573d8060008114612d6f576040519150601f19603f3d011682016040523d82523d6000602084013e612d74565b606091505b50600081511415612db1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060158054612e1b90614644565b80601f0160208091040260200160405190810160405280929190818152602001828054612e4790614644565b8015612e945780601f10612e6957610100808354040283529160200191612e94565b820191906000526020600020905b815481529060010190602001808311612e7757829003601f168201915b5050505050905090565b60606000821415612ee6576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ffa565b600082905060005b60008214612f18578080612f019061519c565b915050600a82612f119190614a26565b9150612eee565b60008167ffffffffffffffff811115612f3457612f33613e67565b5b6040519080825280601f01601f191660200182016040528015612f665781602001600182028036833780820191505090505b5090505b60008514612ff357600182612f7f9190614ae9565b9150600a85612f8e91906151e5565b6030612f9a91906147d2565b60f81b818381518110612fb057612faf614774565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612fec9190614a26565b9450612f6a565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613067576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6000818310156130df57816130e1565b825b905092915050565b6000806130f4610f05565b15613102576002905061315b565b61310a6118f8565b15613118576001905061315a565b6000613159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315090614ee9565b60405180910390fd5b5b5b601160149054906101000a900460c01b85468360ff168787604051602001613188969594939291906152e1565b604051602081830303815290604052805190602001209150509392505050565b60006131b4838361322a565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b50505050565b50505050565b6132258383836001613251565b505050565b6000806000613239858561361f565b91509150613246816136a2565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156132be576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156132f9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613306600086838761320c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156134d057506134cf8773ffffffffffffffffffffffffffffffffffffffff16612c98565b5b15613596575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135456000888480600101955088612cbb565b61357b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156134d657826000541461359157600080fd5b613602565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613597575b8160008190555050506136186000868387613212565b5050505050565b6000806041835114156136615760008060006020860151925060408601519150606086015160001a905061365587828585613877565b9450945050505061369b565b604083511415613692576000806020850151915060408501519050613687868383613984565b93509350505061369b565b60006002915091505b9250929050565b600060048111156136b6576136b5615351565b5b8160048111156136c9576136c8615351565b5b14156136d457613874565b600160048111156136e8576136e7615351565b5b8160048111156136fb576136fa615351565b5b141561373c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613733906153cc565b60405180910390fd5b600260048111156137505761374f615351565b5b81600481111561376357613762615351565b5b14156137a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379b90615438565b60405180910390fd5b600360048111156137b8576137b7615351565b5b8160048111156137cb576137ca615351565b5b141561380c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613803906154ca565b60405180910390fd5b60048081111561381f5761381e615351565b5b81600481111561383257613831615351565b5b1415613873576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161386a9061555c565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156138b257600060039150915061397b565b601b8560ff16141580156138ca5750601c8560ff1614155b156138dc57600060049150915061397b565b600060018787878760405160008152602001604052604051613901949392919061558b565b6020604051602081039080840390855afa158015613923573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156139725760006001925092505061397b565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6139c791906147d2565b90506139d587828885613877565b935093505050935093915050565b8280546139ef90614644565b90600052602060002090601f016020900481019282613a115760008555613a58565b82601f10613a2a57803560ff1916838001178555613a58565b82800160010185558215613a58579182015b82811115613a57578235825591602001919060010190613a3c565b5b509050613a659190613aac565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613ac5576000816000905550600101613aad565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b1281613add565b8114613b1d57600080fd5b50565b600081359050613b2f81613b09565b92915050565b600060208284031215613b4b57613b4a613ad3565b5b6000613b5984828501613b20565b91505092915050565b60008115159050919050565b613b7781613b62565b82525050565b6000602082019050613b926000830184613b6e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bd2578082015181840152602081019050613bb7565b83811115613be1576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c0382613b98565b613c0d8185613ba3565b9350613c1d818560208601613bb4565b613c2681613be7565b840191505092915050565b60006020820190508181036000830152613c4b8184613bf8565b905092915050565b6000819050919050565b613c6681613c53565b8114613c7157600080fd5b50565b600081359050613c8381613c5d565b92915050565b600060208284031215613c9f57613c9e613ad3565b5b6000613cad84828501613c74565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ce182613cb6565b9050919050565b613cf181613cd6565b82525050565b6000602082019050613d0c6000830184613ce8565b92915050565b613d1b81613cd6565b8114613d2657600080fd5b50565b600081359050613d3881613d12565b92915050565b60008060408385031215613d5557613d54613ad3565b5b6000613d6385828601613d29565b9250506020613d7485828601613c74565b9150509250929050565b600060208284031215613d9457613d93613ad3565b5b6000613da284828501613d29565b91505092915050565b613db481613c53565b82525050565b6000602082019050613dcf6000830184613dab565b92915050565b600063ffffffff82169050919050565b613dee81613dd5565b82525050565b6000602082019050613e096000830184613de5565b92915050565b600080600060608486031215613e2857613e27613ad3565b5b6000613e3686828701613d29565b9350506020613e4786828701613d29565b9250506040613e5886828701613c74565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e9f82613be7565b810181811067ffffffffffffffff82111715613ebe57613ebd613e67565b5b80604052505050565b6000613ed1613ac9565b9050613edd8282613e96565b919050565b600067ffffffffffffffff821115613efd57613efc613e67565b5b602082029050602081019050919050565b600080fd5b6000613f26613f2184613ee2565b613ec7565b90508083825260208201905060208402830185811115613f4957613f48613f0e565b5b835b81811015613f725780613f5e8882613d29565b845260208401935050602081019050613f4b565b5050509392505050565b600082601f830112613f9157613f90613e62565b5b8135613fa1848260208601613f13565b91505092915050565b600067ffffffffffffffff821115613fc557613fc4613e67565b5b602082029050602081019050919050565b6000613fe9613fe484613faa565b613ec7565b9050808382526020820190506020840283018581111561400c5761400b613f0e565b5b835b8181101561403557806140218882613c74565b84526020840193505060208101905061400e565b5050509392505050565b600082601f83011261405457614053613e62565b5b8135614064848260208601613fd6565b91505092915050565b6000806040838503121561408457614083613ad3565b5b600083013567ffffffffffffffff8111156140a2576140a1613ad8565b5b6140ae85828601613f7c565b925050602083013567ffffffffffffffff8111156140cf576140ce613ad8565b5b6140db8582860161403f565b9150509250929050565b600061ffff82169050919050565b6140fc816140e5565b82525050565b600060208201905061411760008301846140f3565b92915050565b600080fd5b60008083601f84011261413857614137613e62565b5b8235905067ffffffffffffffff8111156141555761415461411d565b5b60208301915083600182028301111561417157614170613f0e565b5b9250929050565b6000806020838503121561418f5761418e613ad3565b5b600083013567ffffffffffffffff8111156141ad576141ac613ad8565b5b6141b985828601614122565b92509250509250929050565b600060ff82169050919050565b6141db816141c5565b82525050565b60006020820190506141f660008301846141d2565b92915050565b61420581613dd5565b811461421057600080fd5b50565b600081359050614222816141fc565b92915050565b60006020828403121561423e5761423d613ad3565b5b600061424c84828501614213565b91505092915050565b61425e81613cd6565b82525050565b600067ffffffffffffffff82169050919050565b61428181614264565b82525050565b61429081613b62565b82525050565b6060820160008201516142ac6000850182614255565b5060208201516142bf6020850182614278565b5060408201516142d26040850182614287565b50505050565b60006060820190506142ed6000830184614296565b92915050565b6142fc816140e5565b811461430757600080fd5b50565b600081359050614319816142f3565b92915050565b60006020828403121561433557614334613ad3565b5b60006143438482850161430a565b91505092915050565b61435581613b62565b811461436057600080fd5b50565b6000813590506143728161434c565b92915050565b6000806040838503121561438f5761438e613ad3565b5b600061439d85828601613d29565b92505060206143ae85828601614363565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156143d8576143d7613e67565b5b6143e182613be7565b9050602081019050919050565b82818337600083830152505050565b600061441061440b846143bd565b613ec7565b90508281526020810184848401111561442c5761442b6143b8565b5b6144378482856143ee565b509392505050565b600082601f83011261445457614453613e62565b5b81356144648482602086016143fd565b91505092915050565b6000806000806080858703121561448757614486613ad3565b5b600061449587828801613d29565b94505060206144a687828801613d29565b93505060406144b787828801613c74565b925050606085013567ffffffffffffffff8111156144d8576144d7613ad8565b5b6144e48782880161443f565b91505092959194509250565b6000806040838503121561450757614506613ad3565b5b600061451585828601613d29565b925050602061452685828601613d29565b9150509250929050565b6000819050919050565b61454381614530565b811461454e57600080fd5b50565b6000813590506145608161453a565b92915050565b61456f81614264565b811461457a57600080fd5b50565b60008135905061458c81614566565b92915050565b600080600080608085870312156145ac576145ab613ad3565b5b60006145ba87828801614551565b945050602085013567ffffffffffffffff8111156145db576145da613ad8565b5b6145e78782880161443f565b93505060406145f88782880161457d565b925050606061460987828801613c74565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061465c57607f821691505b602082108114156146705761466f614615565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146ac602083613ba3565b91506146b782614676565b602082019050919050565b600060208201905081810360008301526146db8161469f565b9050919050565b7f41646472657373657320616e6420746f6b656e7320636f756e7420617272617960008201527f73206c656e6774687320646f6e2774206d617463680000000000000000000000602082015250565b600061473e603583613ba3565b9150614749826146e2565b604082019050919050565b6000602082019050818103600083015261476d81614731565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147dd82613c53565b91506147e883613c53565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561481d5761481c6147a3565b5b828201905092915050565b600061483382614264565b915067ffffffffffffffff82141561484e5761484d6147a3565b5b600182019050919050565b7f52656163686564206d617820737570706c790000000000000000000000000000600082015250565b600061488f601283613ba3565b915061489a82614859565b602082019050919050565b600060208201905081810360008301526148be81614882565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006148fb601f83613ba3565b9150614906826148c5565b602082019050919050565b6000602082019050818103600083015261492a816148ee565b9050919050565b7f4e6f2066756e6473206f6e2074686520636f6e74726163740000000000000000600082015250565b6000614967601883613ba3565b915061497282614931565b602082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b60006149a882613c53565b91506149b383613c53565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149ec576149eb6147a3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a3182613c53565b9150614a3c83613c53565b925082614a4c57614a4b6149f7565b5b828204905092915050565b7f4e6f7420656e6f7567682066756e647320746f2070617920746865206d696e6960008201527f6d616c2063757420746f20646576656c6f706572000000000000000000000000602082015250565b6000614ab3603483613ba3565b9150614abe82614a57565b604082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b6000614af482613c53565b9150614aff83613c53565b925082821015614b1257614b116147a3565b5b828203905092915050565b7f43616e27742073657420636f6c6c656374696f6e2073697a65206c6f7765722060008201527f7468656e20746f74616c20737570706c79000000000000000000000000000000602082015250565b6000614b79603183613ba3565b9150614b8482614b1d565b604082019050919050565b60006020820190508181036000830152614ba881614b6c565b9050919050565b600081905092915050565b6000614bc582613b98565b614bcf8185614baf565b9350614bdf818560208601613bb4565b80840191505092915050565b6000614bf78285614bba565b9150614c038284614bba565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c6b602683613ba3565b9150614c7682614c0f565b604082019050919050565b60006020820190508181036000830152614c9a81614c5e565b9050919050565b7f596f7520617265206e6f742074686520646576656c6f70657200000000000000600082015250565b6000614cd7601983613ba3565b9150614ce282614ca1565b602082019050919050565b60006020820190508181036000830152614d0681614cca565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000614d43601e83613ba3565b9150614d4e82614d0d565b602082019050919050565b60006020820190508181036000830152614d7281614d36565b9050919050565b7f457863656564696e67206d696e74696e67206c696d697420666f72207468697360008201527f206163636f756e74000000000000000000000000000000000000000000000000602082015250565b6000614dd5602883613ba3565b9150614de082614d79565b604082019050919050565b60006020820190508181036000830152614e0481614dc8565b9050919050565b7f457863656564696e67206d696e74696e67206c696d697420666f72207468697360008201527f206163636f756e7420647572696e672077686974656c6973742073616c657300602082015250565b6000614e67603f83613ba3565b9150614e7282614e0b565b604082019050919050565b60006020820190508181036000830152614e9681614e5a565b9050919050565b7f53616c65732068617665206e6f7420626567756e207965740000000000000000600082015250565b6000614ed3601883613ba3565b9150614ede82614e9d565b602082019050919050565b60006020820190508181036000830152614f0281614ec6565b9050919050565b7f496e76616c696420616d6f756e74206f66204554482073656e74000000000000600082015250565b6000614f3f601a83613ba3565b9150614f4a82614f09565b602082019050919050565b60006020820190508181036000830152614f6e81614f32565b9050919050565b7f4861736820636f6d70617269736f6e206661696c656400000000000000000000600082015250565b6000614fab601683613ba3565b9150614fb682614f75565b602082019050919050565b60006020820190508181036000830152614fda81614f9e565b9050919050565b7f446972656374206d696e74696e6720697320646973616c6c6f77656400000000600082015250565b6000615017601c83613ba3565b915061502282614fe1565b602082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f4861736820697320616c72656164792075736564000000000000000000000000600082015250565b6000615083601483613ba3565b915061508e8261504d565b602082019050919050565b600060208201905081810360008301526150b281615076565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006150e0826150b9565b6150ea81856150c4565b93506150fa818560208601613bb4565b61510381613be7565b840191505092915050565b60006080820190506151236000830187613ce8565b6151306020830186613ce8565b61513d6040830185613dab565b818103606083015261514f81846150d5565b905095945050505050565b60008151905061516981613b09565b92915050565b60006020828403121561518557615184613ad3565b5b60006151938482850161515a565b91505092915050565b60006151a782613c53565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151da576151d96147a3565b5b600182019050919050565b60006151f082613c53565b91506151fb83613c53565b92508261520b5761520a6149f7565b5b828206905092915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61525d61525882615216565b615242565b82525050565b60008160601b9050919050565b600061527b82615263565b9050919050565b600061528d82615270565b9050919050565b6152a56152a082613cd6565b615282565b82525050565b60008160c01b9050919050565b60006152c3826152ab565b9050919050565b6152db6152d682614264565b6152b8565b82525050565b60006152ed828961524c565b6008820191506152fd8288615294565b60148201915061530d82876152ca565b60088201915061531d82866152ca565b60088201915061532d82856152ca565b60088201915061533d82846152ca565b600882019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006153b6601883613ba3565b91506153c182615380565b602082019050919050565b600060208201905081810360008301526153e5816153a9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615422601f83613ba3565b915061542d826153ec565b602082019050919050565b6000602082019050818103600083015261545181615415565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006154b4602283613ba3565b91506154bf82615458565b604082019050919050565b600060208201905081810360008301526154e3816154a7565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615546602283613ba3565b9150615551826154ea565b604082019050919050565b6000602082019050818103600083015261557581615539565b9050919050565b61558581614530565b82525050565b60006080820190506155a0600083018761557c565b6155ad60208301866141d2565b6155ba604083018561557c565b6155c7606083018461557c565b9594505050505056fe697066733a2f2f516d506b356a526f3576686b6e474d6667444277737a4177707a6f636f694b57616f784d51583962356d39485441a2646970667358221220ec526d4cab13e9fd0fbe3e8a65323ef154c5b32a5aecb9d79cff3093b9a17ec764736f6c634300080c0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.