ETH Price: $3,182.10 (+3.11%)

Token

keys (KEY)
 

Overview

Max Total Supply

1,111 KEY

Holders

499

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
6 KEY
0xe912485977f63370c3f1d4462615a638242f6f36
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:
Key

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 12 : Key.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "erc721a/contracts/ERC721A.sol";

import "./interfaces/Voidish.sol";

/*********************************************************************************************************
 * This Key of Nothing is not for nought.
 * It is, perhaps, the requisite material to return your stolen valor, in a world that continues burning.
 *********************************************************************************************************/

contract Key is ERC721A, IERC2981, Ownable, ReentrancyGuard {
    using ECDSA for bytes32;

    bool public forged;
    bool public unlocked;
    string public lock;
    Voidish public void;
    IERC721A public nothings;
    address public locksmith;
    address public gateway;
    uint256 public claimed;
    uint256 public constant locks = 1111;
    uint256 public constant forgotten = 408;
    string private constant oath = "I am not Something, maybe I am Nothing, but I am pure of heart, and I claim this Key to Something Greater";
    mapping(uint256 => bool) public bound;
    mapping(uint256 => bool) public somethings;
    mapping(address => bool) public nobody;

    constructor(address _nothings, address _void) ERC721A("keys", "KEY") {
        nothings = IERC721A(_nothings);
        void = Voidish(_void);
    }

    /**
     * You began as Nothing.
     * Unos Tres Octo was awakened, reborn as a hero.
     * You trusted the void with Nothing and we opened for you the gates of heaven and poured out for you overflowing bounties.
     */

    function fromsomethings(uint256[] calldata nothingIds) external nonReentrant {
        uint256 keys = _totalMinted();
        uint256 count = nothingIds.length;

        require(msg.sender == tx.origin, "no lockpicking");
        require(forged, "the keys are not yet forged");
        require(keys + count <= locks, "all locks now have their key");

        for (uint256 idx; idx < count; ++idx) {
            uint256 nothingId = nothingIds[idx];

            require(!somethings[nothingId], "something has already been retrieved");
            require(_senderhasnothing(nothingId), "cannot trade something that is not yours");
            require(void.hasBecomeSomething(nothingId), "return with something");

            somethings[nothingId] = true;
        }

        _mint(msg.sender, count);
    }

    /**
     * Our future is ephemeral.
     * Yet, there is no such thing as tomorrow, only Nothing.
     * You and I will never be because your time is now and my time is forever.
     * Accept our permanence and embrace this life.
     */

    function fromsomething(uint256 nothingId) external nonReentrant {
        uint256 keys = _totalMinted();

        require(msg.sender == tx.origin, "no lockpicking");
        require(forged, "the keys are not yet forged");
        require(!somethings[nothingId], "something has already been retrieved");
        require(_senderhasnothing(nothingId), "cannot trade something that is not yours");
        require(void.hasBecomeSomething(nothingId), "return with something");
        require(keys + 1 <= locks, "all locks now have their key");

        _mint(msg.sender, 1);
        somethings[nothingId] = true;
    }

    /**
     * All good gifts and every perfect gift begins as Nothing.
     */

    function fromnothing(address someplace, uint256 some) external onlyOwner {
        uint256 keys = _totalMinted();
        require(keys + some <= locks, "all locks now have their key");

        _mint(someplace, some);
    }

    /**
     * This is the way the universe begins.
     * This is the way the universe begins.
     * This is the way the universe begins.
     * Not with an explosion but with my Key.
     */

    function fromnobody(bytes calldata signature) external {
        uint256 keys = _totalMinted();

        require(msg.sender == tx.origin, "no lockpicking");
        require(msg.sender == _revealtrueidentity(signature), "you are not pure of heart");
        require(unlocked, "only something may retrieve a key");
        require(!nobody[msg.sender], "you already hold the key");
        require(keys + 1 <= locks, "all locks now have their key");
        require(claimed + 1 <= forgotten, "only remembered keys remain");

        _mint(msg.sender, 1);
        nobody[msg.sender] = true;
        ++claimed;
    }

    /**
     * Your soul is something which contains your everything.
     * Nothing contains no soul.
     * The soul, if we pursue Nothing, is the entire complex of bytes in which context you may exist, forever.
     */

    function bind(uint256 tokenId, bool _bind) external {
        require(msg.sender == gateway, "you lack the power");
        require(_exists(tokenId), "you are off key");

        bound[tokenId] = _bind;
    }

    function _senderhasnothing(uint256 tokenId) internal view returns (bool) {
        if (nothings.ownerOf(tokenId) == msg.sender) {
            return true;
        }
        (address renouncer, ) = void.vanished(tokenId);
        if (renouncer != address(0) && renouncer == msg.sender) {
            return true;
        }
        return false;
    }

    function _revealtrueidentity(bytes calldata signature) internal pure returns (address) {
        bytes32 hash = keccak256(bytes(oath));
        return hash.toEthSignedMessageHash().recover(signature);
    }

    function forge(bool _forged) external onlyOwner {
        forged = _forged;
    }

    function unlock(bool _unlocked) external onlyOwner {
        unlocked = _unlocked;
    }

    function changelock(string calldata _lock) external onlyOwner {
        lock = _lock;
    }

    function changelocksmith(address _locksmith) external onlyOwner {
        locksmith = _locksmith;
    }

    function changegateway(address _gateway) external onlyOwner {
        gateway = _gateway;
    }

    function alchemy() external onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success);
    }

    function alchemize(address token) external onlyOwner {
        uint256 balance = IERC20(token).balanceOf(address(this));
        IERC20(token).transfer(msg.sender, balance);
    }

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

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (bound[startTokenId]) {
            revert("this key is bound to you");
        }
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

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

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "you are off key");
        return (locksmith, (salePrice * 7) / 100);
    }
}

File 2 of 12 : 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 12 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 5 of 12 : 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 6 of 12 : 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 7 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @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 IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

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

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev 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 Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_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 {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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 Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @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 virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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.code.length != 0)
            if (!_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 && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 {
        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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

            if (to.code.length != 0) {
                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 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) 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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

            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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

    /**
     * @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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__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 {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 8 of 12 : Voidish.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

interface Voidish {
    function vanished(uint256 tokenId) external view returns (address, uint64);
    function hasBecomeSomething(uint256 tokenId) external view returns (bool);
}

File 9 of 12 : 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 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);

    // ==============================
    //        IERC721Metadata
    // ==============================

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nothings","type":"address"},{"internalType":"address","name":"_void","type":"address"}],"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":"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":[{"internalType":"address","name":"token","type":"address"}],"name":"alchemize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"alchemy","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"_bind","type":"bool"}],"name":"bind","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gateway","type":"address"}],"name":"changegateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_lock","type":"string"}],"name":"changelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_locksmith","type":"address"}],"name":"changelocksmith","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_forged","type":"bool"}],"name":"forge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forgotten","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"fromnobody","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"someplace","type":"address"},{"internalType":"uint256","name":"some","type":"uint256"}],"name":"fromnothing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nothingId","type":"uint256"}],"name":"fromsomething","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"nothingIds","type":"uint256[]"}],"name":"fromsomethings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locksmith","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nobody","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nothings","outputs":[{"internalType":"contract IERC721A","name":"","type":"address"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"somethings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"bool","name":"_unlocked","type":"bool"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"void","outputs":[{"internalType":"contract Voidish","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003488380380620034888339810160408190526200003491620001ef565b60408051808201825260048152636b65797360e01b6020808301918252835180850190945260038452624b455960e81b9084015281519192916200007b916002916200012c565b508051620000919060039060208401906200012c565b50506000805550620000a333620000da565b6001600955600d80546001600160a01b039384166001600160a01b031991821617909155600c805492909316911617905562000263565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013a9062000227565b90600052602060002090601f0160209004810192826200015e5760008555620001a9565b82601f106200017957805160ff1916838001178555620001a9565b82800160010185558215620001a9579182015b82811115620001a95782518255916020019190600101906200018c565b50620001b7929150620001bb565b5090565b5b80821115620001b75760008155600101620001bc565b80516001600160a01b0381168114620001ea57600080fd5b919050565b600080604083850312156200020357600080fd5b6200020e83620001d2565b91506200021e60208401620001d2565b90509250929050565b600181811c908216806200023c57607f821691505b6020821081036200025d57634e487b7160e01b600052602260045260246000fd5b50919050565b61321580620002736000396000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c8063923a62e611610191578063ca3ba31c116100e3578063e985e9c511610097578063f7a86f2911610071578063f7a86f291461064a578063f83d08ba1461065d578063fbac89f61461066557600080fd5b8063e985e9c5146105f2578063f2fde38b1461062e578063f557ab031461064157600080fd5b8063dd9922ad116100c8578063dd9922ad146105cd578063e1ecf75b146105d6578063e834a834146105e957600080fd5b8063ca3ba31c146105ad578063d1caa6e6146105c057600080fd5b8063ac4c25b211610145578063b88d4fde1161011f578063b88d4fde14610574578063bcec8bf314610587578063c87b56dd1461059a57600080fd5b8063ac4c25b21461053b578063adde7b791461054e578063afa6fea51461056157600080fd5b806395856a721161017657806395856a72146104fd57806395d89b4114610520578063a22cb4651461052857600080fd5b8063923a62e6146104d7578063957265ea146104ea57600080fd5b80632a55205a1161024a5780636a5e2650116101fe5780637a7edaa5116101d85780637a7edaa5146104a057806386d7fa5d146104b35780638da5cb5b146104c657600080fd5b80636a5e26501461047357806370a0823114610485578063715018a61461049857600080fd5b80635d8823d61161022f5780635d8823d6146104355780636352211e14610458578063674b80ee1461046b57600080fd5b80632a55205a146103f057806342842e0e1461042257600080fd5b8063116191b6116102a157806313fb817e1161028657806313fb817e146103b457806318160ddd146103c757806323b872dd146103dd57600080fd5b8063116191b61461037e578063118622e01461039157600080fd5b806306fdde03116102d257806306fdde031461032b578063081812fc14610340578063095ea7b31461036b57600080fd5b80630174b105146102ee57806301ffc9a714610303575b600080fd5b6103016102fc366004612b4f565b610678565b005b610316610311366004612b9a565b6107ed565b60405190151581526020015b60405180910390f35b610333610849565b6040516103229190612c0f565b61035361034e366004612c22565b6108db565b6040516001600160a01b039091168152602001610322565b610301610379366004612c3b565b610938565b600f54610353906001600160a01b031681565b61031661039f366004612c22565b60126020526000908152604090205460ff1681565b600e54610353906001600160a01b031681565b600154600054035b604051908152602001610322565b6103016103eb366004612c67565b610a49565b6104036103fe366004612ca8565b610a54565b604080516001600160a01b039093168352602083019190915201610322565b610301610430366004612c67565b610adb565b610316610443366004612c22565b60116020526000908152604090205460ff1681565b610353610466366004612c22565b610af6565b610301610b01565b600a5461031690610100900460ff1681565b6103cf610493366004612b4f565b610bcf565b610301610c37565b6103016104ae366004612d0c565b610c9d565b6103016104c1366004612d5c565b610f30565b6008546001600160a01b0316610353565b6103016104e5366004612d79565b610f9d565b6103016104f8366004612b4f565b61106c565b61031661050b366004612b4f565b60136020526000908152604090205460ff1681565b6103336110f5565b610301610536366004612da9565b611104565b600c54610353906001600160a01b031681565b61030161055c366004612d0c565b6111b2565b600d54610353906001600160a01b031681565b610301610582366004612ded565b611218565b610301610595366004612c22565b61127b565b6103336105a8366004612c22565b6115d0565b6103016105bb366004612c3b565b61166d565b600a546103169060ff1681565b6103cf61019881565b6103016105e4366004612b4f565b61172f565b6103cf60105481565b610316610600366004612ecd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61030161063c366004612b4f565b6117b8565b6103cf61045781565b610301610658366004612efb565b611897565b610333611c2c565b610301610673366004612d5c565b611cba565b6008546001600160a01b031633146106d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190612f70565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e89190612f89565b505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610843575061084382611d4b565b92915050565b60606002805461085890612fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461088490612fa6565b80156108d15780601f106108a6576101008083540402835291602001916108d1565b820191906000526020600020905b8154815290600101906020018083116108b457829003601f168201915b5050505050905090565b60006108e682611e2c565b61091c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061094382611e6c565b9050806001600160a01b0316836001600160a01b031603610990576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146109e0576109aa8133610600565b6109e0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107e8838383611f05565b600080610a6084611e2c565b610aac5760405162461bcd60e51b815260206004820152600f60248201527f796f7520617265206f6666206b6579000000000000000000000000000000000060448201526064016106ce565b600e546001600160a01b03166064610ac5856007612ff6565b610acf9190613015565b915091505b9250929050565b6107e883838360405180602001604052806000815250611218565b600061084382611e6c565b6008546001600160a01b03163314610b5b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6000610b6f6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610bb9576040519150601f19603f3d011682016040523d82523d6000602084013e610bbe565b606091505b5050905080610bcc57600080fd5b50565b60006001600160a01b038216610c11576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b610c9b600061212b565b565b600054323314610cef5760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b610cf9838361218a565b6001600160a01b0316336001600160a01b031614610d595760405162461bcd60e51b815260206004820152601960248201527f796f7520617265206e6f742070757265206f662068656172740000000000000060448201526064016106ce565b600a54610100900460ff16610dd65760405162461bcd60e51b815260206004820152602160248201527f6f6e6c7920736f6d657468696e67206d61792072657472696576652061206b6560448201527f790000000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b3360009081526013602052604090205460ff1615610e365760405162461bcd60e51b815260206004820152601860248201527f796f7520616c726561647920686f6c6420746865206b6579000000000000000060448201526064016106ce565b610457610e44826001613037565b1115610e925760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6101986010546001610ea49190613037565b1115610ef25760405162461bcd60e51b815260206004820152601b60248201527f6f6e6c792072656d656d6265726564206b6579732072656d61696e000000000060448201526064016106ce565b610efd336001612202565b336000908152601360205260408120805460ff1916600117905560108054909190610f279061304f565b90915550505050565b6008546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600a805460ff1916911515919091179055565b600f546001600160a01b03163314610ff75760405162461bcd60e51b815260206004820152601260248201527f796f75206c61636b2074686520706f776572000000000000000000000000000060448201526064016106ce565b61100082611e2c565b61104c5760405162461bcd60e51b815260206004820152600f60248201527f796f7520617265206f6666206b6579000000000000000000000000000000000060448201526064016106ce565b600091825260116020526040909120805460ff1916911515919091179055565b6008546001600160a01b031633146110c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606003805461085890612fa6565b336001600160a01b03831603611146576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461120c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6107e8600b8383612aa1565b611223848484611f05565b6001600160a01b0383163b156112755761123f84848484612323565b611275576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6002600954036112cd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ce565b60026009556000543233146113245760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b600a5460ff166113765760405162461bcd60e51b815260206004820152601b60248201527f746865206b65797320617265206e6f742079657420666f72676564000000000060448201526064016106ce565b60008281526012602052604090205460ff16156113fa5760405162461bcd60e51b8152602060048201526024808201527f736f6d657468696e672068617320616c7265616479206265656e20726574726960448201527f657665640000000000000000000000000000000000000000000000000000000060648201526084016106ce565b61140382612471565b6114755760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420747261646520736f6d657468696e672074686174206973206e60448201527f6f7420796f75727300000000000000000000000000000000000000000000000060648201526084016106ce565b600c546040517fdc8868e0000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063dc8868e090602401602060405180830381865afa1580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb9190612f89565b6115475760405162461bcd60e51b815260206004820152601560248201527f72657475726e207769746820736f6d657468696e67000000000000000000000060448201526064016106ce565b610457611555826001613037565b11156115a35760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6115ae336001612202565b506000908152601260205260409020805460ff19166001908117909155600955565b60606115db82611e2c565b611611576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061161b6125d2565b9050805160000361163b5760405180602001604052806000815250611666565b80611645846125e1565b604051602001611656929190613069565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146116c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6000546104576116d78383613037565b11156117255760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6107e88383612202565b6008546001600160a01b031633146117895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6001600160a01b03811661188e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106ce565b610bcc8161212b565b6002600954036118e95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ce565b6002600955600054813233146119415760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b600a5460ff166119935760405162461bcd60e51b815260206004820152601b60248201527f746865206b65797320617265206e6f742079657420666f72676564000000000060448201526064016106ce565b6104576119a08284613037565b11156119ee5760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b60005b81811015611c16576000858583818110611a0d57611a0d613098565b60209081029290920135600081815260129093526040909220549192505060ff1615611aa05760405162461bcd60e51b8152602060048201526024808201527f736f6d657468696e672068617320616c7265616479206265656e20726574726960448201527f657665640000000000000000000000000000000000000000000000000000000060648201526084016106ce565b611aa981612471565b611b1b5760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420747261646520736f6d657468696e672074686174206973206e60448201527f6f7420796f75727300000000000000000000000000000000000000000000000060648201526084016106ce565b600c546040517fdc8868e0000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063dc8868e090602401602060405180830381865afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612f89565b611bed5760405162461bcd60e51b815260206004820152601560248201527f72657475726e207769746820736f6d657468696e67000000000000000000000060448201526064016106ce565b6000908152601260205260409020805460ff19166001179055611c0f8161304f565b90506119f1565b50611c213382612202565b505060016009555050565b600b8054611c3990612fa6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6590612fa6565b8015611cb25780601f10611c8757610100808354040283529160200191611cb2565b820191906000526020600020905b815481529060010190602001808311611c9557829003601f168201915b505050505081565b6008546001600160a01b03163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600a8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480611dde57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108435750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60008054821080156108435750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b600081600054811015611ed357600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611ed1575b80600003611666575060001901600081815260046020526040902054611eb0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f1082611e6c565b9050836001600160a01b0316816001600160a01b031614611f5d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611f7b5750611f7b8533610600565b80611f96575033611f8b846108db565b6001600160a01b0316145b905080611fcf576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661200f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61201c8585856001612630565b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526005835281842080546000190190558716835280832080546001019055858352600490915281207c02000000000000000000000000000000000000000000000000000000004260a01b87178117909155831690036120e3576001830160008181526004602052604081205490036120e15760005481146120e15760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806040518060a0016040528060698152602001613177606991398051906020012090506121fa84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121f492508591506126949050565b906126e7565b949350505050565b6000546001600160a01b038316612245576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160000361227f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61228c6000848385612630565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106122d75750600055505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906123719033908990889088906004016130ae565b6020604051808303816000875af19250505080156123ac575060408051601f3d908101601f191682019092526123a9918101906130ea565b60015b612423573d8080156123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b50805160000361241b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b600d546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905260009133916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156124d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124fc9190613107565b6001600160a01b03160361251257506001919050565b600c546040517f8b525804000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b031690638b525804906024016040805180830381865afa158015612574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125989190613124565b5090506001600160a01b038116158015906125bb57506001600160a01b03811633145b156125c95750600192915050565b50600092915050565b6060600b805461085890612fa6565b604080516080810191829052607f0190826030600a8206018353600a90045b801561261e57600183039250600a81066030018353600a9004612600565b50819003601f19909101908152919050565b60008281526011602052604090205460ff161561268f5760405162461bcd60e51b815260206004820152601860248201527f74686973206b657920697320626f756e6420746f20796f75000000000000000060448201526064016106ce565b611275565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006126f6858561270b565b9150915061270381612776565b509392505050565b60008082516041036127415760208301516040840151606085015160001a61273587828585612962565b94509450505050610ad4565b825160400361276a576020830151604084015161275f868383612a4f565b935093505050610ad4565b50600090506002610ad4565b600081600481111561278a5761278a613160565b036127925750565b60018160048111156127a6576127a6613160565b036127f35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ce565b600281600481111561280757612807613160565b036128545760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ce565b600381600481111561286857612868613160565b036128db5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b60048160048111156128ef576128ef613160565b03610bcc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129995750600090506003612a46565b8460ff16601b141580156129b157508460ff16601c14155b156129c25750600090506004612a46565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a16573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a3f57600060019250925050612a46565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612a8560ff86901c601b613037565b9050612a9387828885612962565b935093505050935093915050565b828054612aad90612fa6565b90600052602060002090601f016020900481019282612acf5760008555612b15565b82601f10612ae85782800160ff19823516178555612b15565b82800160010185558215612b15579182015b82811115612b15578235825591602001919060010190612afa565b50612b21929150612b25565b5090565b5b80821115612b215760008155600101612b26565b6001600160a01b0381168114610bcc57600080fd5b600060208284031215612b6157600080fd5b813561166681612b3a565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610bcc57600080fd5b600060208284031215612bac57600080fd5b813561166681612b6c565b60005b83811015612bd2578181015183820152602001612bba565b838111156112755750506000910152565b60008151808452612bfb816020860160208601612bb7565b601f01601f19169290920160200192915050565b6020815260006116666020830184612be3565b600060208284031215612c3457600080fd5b5035919050565b60008060408385031215612c4e57600080fd5b8235612c5981612b3a565b946020939093013593505050565b600080600060608486031215612c7c57600080fd5b8335612c8781612b3a565b92506020840135612c9781612b3a565b929592945050506040919091013590565b60008060408385031215612cbb57600080fd5b50508035926020909101359150565b60008083601f840112612cdc57600080fd5b50813567ffffffffffffffff811115612cf457600080fd5b602083019150836020828501011115610ad457600080fd5b60008060208385031215612d1f57600080fd5b823567ffffffffffffffff811115612d3657600080fd5b612d4285828601612cca565b90969095509350505050565b8015158114610bcc57600080fd5b600060208284031215612d6e57600080fd5b813561166681612d4e565b60008060408385031215612d8c57600080fd5b823591506020830135612d9e81612d4e565b809150509250929050565b60008060408385031215612dbc57600080fd5b8235612dc781612b3a565b91506020830135612d9e81612d4e565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e0357600080fd5b8435612e0e81612b3a565b93506020850135612e1e81612b3a565b925060408501359150606085013567ffffffffffffffff80821115612e4257600080fd5b818701915087601f830112612e5657600080fd5b813581811115612e6857612e68612dd7565b604051601f8201601f19908116603f01168101908382118183101715612e9057612e90612dd7565b816040528281528a6020848701011115612ea957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ee057600080fd5b8235612eeb81612b3a565b91506020830135612d9e81612b3a565b60008060208385031215612f0e57600080fd5b823567ffffffffffffffff80821115612f2657600080fd5b818501915085601f830112612f3a57600080fd5b813581811115612f4957600080fd5b8660208260051b8501011115612f5e57600080fd5b60209290920196919550909350505050565b600060208284031215612f8257600080fd5b5051919050565b600060208284031215612f9b57600080fd5b815161166681612d4e565b600181811c90821680612fba57607f821691505b602082108103612fda57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561301057613010612fe0565b500290565b60008261303257634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561304a5761304a612fe0565b500190565b6000600019820361306257613062612fe0565b5060010190565b6000835161307b818460208801612bb7565b83519083019061308f818360208801612bb7565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526130e06080830184612be3565b9695505050505050565b6000602082840312156130fc57600080fd5b815161166681612b6c565b60006020828403121561311957600080fd5b815161166681612b3a565b6000806040838503121561313757600080fd5b825161314281612b3a565b602084015190925067ffffffffffffffff81168114612d9e57600080fd5b634e487b7160e01b600052602160045260246000fdfe4920616d206e6f7420536f6d657468696e672c206d61796265204920616d204e6f7468696e672c20627574204920616d2070757265206f662068656172742c20616e64204920636c61696d2074686973204b657920746f20536f6d657468696e672047726561746572a264697066735822122047df9714549d95399653b80f26179987fba77c3502fc7343b9079b91b8afe68064736f6c634300080d00330000000000000000000000008b634b2ae70e338865bf9741b4ae935adf2b4c550000000000000000000000009531e93e310e4677ab879b424615e62dd826538f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102e95760003560e01c8063923a62e611610191578063ca3ba31c116100e3578063e985e9c511610097578063f7a86f2911610071578063f7a86f291461064a578063f83d08ba1461065d578063fbac89f61461066557600080fd5b8063e985e9c5146105f2578063f2fde38b1461062e578063f557ab031461064157600080fd5b8063dd9922ad116100c8578063dd9922ad146105cd578063e1ecf75b146105d6578063e834a834146105e957600080fd5b8063ca3ba31c146105ad578063d1caa6e6146105c057600080fd5b8063ac4c25b211610145578063b88d4fde1161011f578063b88d4fde14610574578063bcec8bf314610587578063c87b56dd1461059a57600080fd5b8063ac4c25b21461053b578063adde7b791461054e578063afa6fea51461056157600080fd5b806395856a721161017657806395856a72146104fd57806395d89b4114610520578063a22cb4651461052857600080fd5b8063923a62e6146104d7578063957265ea146104ea57600080fd5b80632a55205a1161024a5780636a5e2650116101fe5780637a7edaa5116101d85780637a7edaa5146104a057806386d7fa5d146104b35780638da5cb5b146104c657600080fd5b80636a5e26501461047357806370a0823114610485578063715018a61461049857600080fd5b80635d8823d61161022f5780635d8823d6146104355780636352211e14610458578063674b80ee1461046b57600080fd5b80632a55205a146103f057806342842e0e1461042257600080fd5b8063116191b6116102a157806313fb817e1161028657806313fb817e146103b457806318160ddd146103c757806323b872dd146103dd57600080fd5b8063116191b61461037e578063118622e01461039157600080fd5b806306fdde03116102d257806306fdde031461032b578063081812fc14610340578063095ea7b31461036b57600080fd5b80630174b105146102ee57806301ffc9a714610303575b600080fd5b6103016102fc366004612b4f565b610678565b005b610316610311366004612b9a565b6107ed565b60405190151581526020015b60405180910390f35b610333610849565b6040516103229190612c0f565b61035361034e366004612c22565b6108db565b6040516001600160a01b039091168152602001610322565b610301610379366004612c3b565b610938565b600f54610353906001600160a01b031681565b61031661039f366004612c22565b60126020526000908152604090205460ff1681565b600e54610353906001600160a01b031681565b600154600054035b604051908152602001610322565b6103016103eb366004612c67565b610a49565b6104036103fe366004612ca8565b610a54565b604080516001600160a01b039093168352602083019190915201610322565b610301610430366004612c67565b610adb565b610316610443366004612c22565b60116020526000908152604090205460ff1681565b610353610466366004612c22565b610af6565b610301610b01565b600a5461031690610100900460ff1681565b6103cf610493366004612b4f565b610bcf565b610301610c37565b6103016104ae366004612d0c565b610c9d565b6103016104c1366004612d5c565b610f30565b6008546001600160a01b0316610353565b6103016104e5366004612d79565b610f9d565b6103016104f8366004612b4f565b61106c565b61031661050b366004612b4f565b60136020526000908152604090205460ff1681565b6103336110f5565b610301610536366004612da9565b611104565b600c54610353906001600160a01b031681565b61030161055c366004612d0c565b6111b2565b600d54610353906001600160a01b031681565b610301610582366004612ded565b611218565b610301610595366004612c22565b61127b565b6103336105a8366004612c22565b6115d0565b6103016105bb366004612c3b565b61166d565b600a546103169060ff1681565b6103cf61019881565b6103016105e4366004612b4f565b61172f565b6103cf60105481565b610316610600366004612ecd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61030161063c366004612b4f565b6117b8565b6103cf61045781565b610301610658366004612efb565b611897565b610333611c2c565b610301610673366004612d5c565b611cba565b6008546001600160a01b031633146106d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190612f70565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e89190612f89565b505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610843575061084382611d4b565b92915050565b60606002805461085890612fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461088490612fa6565b80156108d15780601f106108a6576101008083540402835291602001916108d1565b820191906000526020600020905b8154815290600101906020018083116108b457829003601f168201915b5050505050905090565b60006108e682611e2c565b61091c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061094382611e6c565b9050806001600160a01b0316836001600160a01b031603610990576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146109e0576109aa8133610600565b6109e0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107e8838383611f05565b600080610a6084611e2c565b610aac5760405162461bcd60e51b815260206004820152600f60248201527f796f7520617265206f6666206b6579000000000000000000000000000000000060448201526064016106ce565b600e546001600160a01b03166064610ac5856007612ff6565b610acf9190613015565b915091505b9250929050565b6107e883838360405180602001604052806000815250611218565b600061084382611e6c565b6008546001600160a01b03163314610b5b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6000610b6f6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610bb9576040519150601f19603f3d011682016040523d82523d6000602084013e610bbe565b606091505b5050905080610bcc57600080fd5b50565b60006001600160a01b038216610c11576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b610c9b600061212b565b565b600054323314610cef5760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b610cf9838361218a565b6001600160a01b0316336001600160a01b031614610d595760405162461bcd60e51b815260206004820152601960248201527f796f7520617265206e6f742070757265206f662068656172740000000000000060448201526064016106ce565b600a54610100900460ff16610dd65760405162461bcd60e51b815260206004820152602160248201527f6f6e6c7920736f6d657468696e67206d61792072657472696576652061206b6560448201527f790000000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b3360009081526013602052604090205460ff1615610e365760405162461bcd60e51b815260206004820152601860248201527f796f7520616c726561647920686f6c6420746865206b6579000000000000000060448201526064016106ce565b610457610e44826001613037565b1115610e925760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6101986010546001610ea49190613037565b1115610ef25760405162461bcd60e51b815260206004820152601b60248201527f6f6e6c792072656d656d6265726564206b6579732072656d61696e000000000060448201526064016106ce565b610efd336001612202565b336000908152601360205260408120805460ff1916600117905560108054909190610f279061304f565b90915550505050565b6008546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600a805460ff1916911515919091179055565b600f546001600160a01b03163314610ff75760405162461bcd60e51b815260206004820152601260248201527f796f75206c61636b2074686520706f776572000000000000000000000000000060448201526064016106ce565b61100082611e2c565b61104c5760405162461bcd60e51b815260206004820152600f60248201527f796f7520617265206f6666206b6579000000000000000000000000000000000060448201526064016106ce565b600091825260116020526040909120805460ff1916911515919091179055565b6008546001600160a01b031633146110c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606003805461085890612fa6565b336001600160a01b03831603611146576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461120c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6107e8600b8383612aa1565b611223848484611f05565b6001600160a01b0383163b156112755761123f84848484612323565b611275576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6002600954036112cd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ce565b60026009556000543233146113245760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b600a5460ff166113765760405162461bcd60e51b815260206004820152601b60248201527f746865206b65797320617265206e6f742079657420666f72676564000000000060448201526064016106ce565b60008281526012602052604090205460ff16156113fa5760405162461bcd60e51b8152602060048201526024808201527f736f6d657468696e672068617320616c7265616479206265656e20726574726960448201527f657665640000000000000000000000000000000000000000000000000000000060648201526084016106ce565b61140382612471565b6114755760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420747261646520736f6d657468696e672074686174206973206e60448201527f6f7420796f75727300000000000000000000000000000000000000000000000060648201526084016106ce565b600c546040517fdc8868e0000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063dc8868e090602401602060405180830381865afa1580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb9190612f89565b6115475760405162461bcd60e51b815260206004820152601560248201527f72657475726e207769746820736f6d657468696e67000000000000000000000060448201526064016106ce565b610457611555826001613037565b11156115a35760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6115ae336001612202565b506000908152601260205260409020805460ff19166001908117909155600955565b60606115db82611e2c565b611611576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061161b6125d2565b9050805160000361163b5760405180602001604052806000815250611666565b80611645846125e1565b604051602001611656929190613069565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146116c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6000546104576116d78383613037565b11156117255760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b6107e88383612202565b6008546001600160a01b031633146117895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b6001600160a01b03811661188e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106ce565b610bcc8161212b565b6002600954036118e95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ce565b6002600955600054813233146119415760405162461bcd60e51b815260206004820152600e60248201527f6e6f206c6f636b7069636b696e6700000000000000000000000000000000000060448201526064016106ce565b600a5460ff166119935760405162461bcd60e51b815260206004820152601b60248201527f746865206b65797320617265206e6f742079657420666f72676564000000000060448201526064016106ce565b6104576119a08284613037565b11156119ee5760405162461bcd60e51b815260206004820152601c60248201527f616c6c206c6f636b73206e6f772068617665207468656972206b65790000000060448201526064016106ce565b60005b81811015611c16576000858583818110611a0d57611a0d613098565b60209081029290920135600081815260129093526040909220549192505060ff1615611aa05760405162461bcd60e51b8152602060048201526024808201527f736f6d657468696e672068617320616c7265616479206265656e20726574726960448201527f657665640000000000000000000000000000000000000000000000000000000060648201526084016106ce565b611aa981612471565b611b1b5760405162461bcd60e51b815260206004820152602860248201527f63616e6e6f7420747261646520736f6d657468696e672074686174206973206e60448201527f6f7420796f75727300000000000000000000000000000000000000000000000060648201526084016106ce565b600c546040517fdc8868e0000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063dc8868e090602401602060405180830381865afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612f89565b611bed5760405162461bcd60e51b815260206004820152601560248201527f72657475726e207769746820736f6d657468696e67000000000000000000000060448201526064016106ce565b6000908152601260205260409020805460ff19166001179055611c0f8161304f565b90506119f1565b50611c213382612202565b505060016009555050565b600b8054611c3990612fa6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6590612fa6565b8015611cb25780601f10611c8757610100808354040283529160200191611cb2565b820191906000526020600020905b815481529060010190602001808311611c9557829003601f168201915b505050505081565b6008546001600160a01b03163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ce565b600a8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480611dde57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108435750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60008054821080156108435750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b600081600054811015611ed357600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611ed1575b80600003611666575060001901600081815260046020526040902054611eb0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f1082611e6c565b9050836001600160a01b0316816001600160a01b031614611f5d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611f7b5750611f7b8533610600565b80611f96575033611f8b846108db565b6001600160a01b0316145b905080611fcf576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661200f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61201c8585856001612630565b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526005835281842080546000190190558716835280832080546001019055858352600490915281207c02000000000000000000000000000000000000000000000000000000004260a01b87178117909155831690036120e3576001830160008181526004602052604081205490036120e15760005481146120e15760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806040518060a0016040528060698152602001613177606991398051906020012090506121fa84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121f492508591506126949050565b906126e7565b949350505050565b6000546001600160a01b038316612245576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160000361227f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61228c6000848385612630565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106122d75750600055505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906123719033908990889088906004016130ae565b6020604051808303816000875af19250505080156123ac575060408051601f3d908101601f191682019092526123a9918101906130ea565b60015b612423573d8080156123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b50805160000361241b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b600d546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905260009133916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156124d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124fc9190613107565b6001600160a01b03160361251257506001919050565b600c546040517f8b525804000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b031690638b525804906024016040805180830381865afa158015612574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125989190613124565b5090506001600160a01b038116158015906125bb57506001600160a01b03811633145b156125c95750600192915050565b50600092915050565b6060600b805461085890612fa6565b604080516080810191829052607f0190826030600a8206018353600a90045b801561261e57600183039250600a81066030018353600a9004612600565b50819003601f19909101908152919050565b60008281526011602052604090205460ff161561268f5760405162461bcd60e51b815260206004820152601860248201527f74686973206b657920697320626f756e6420746f20796f75000000000000000060448201526064016106ce565b611275565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006126f6858561270b565b9150915061270381612776565b509392505050565b60008082516041036127415760208301516040840151606085015160001a61273587828585612962565b94509450505050610ad4565b825160400361276a576020830151604084015161275f868383612a4f565b935093505050610ad4565b50600090506002610ad4565b600081600481111561278a5761278a613160565b036127925750565b60018160048111156127a6576127a6613160565b036127f35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ce565b600281600481111561280757612807613160565b036128545760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ce565b600381600481111561286857612868613160565b036128db5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b60048160048111156128ef576128ef613160565b03610bcc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ce565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129995750600090506003612a46565b8460ff16601b141580156129b157508460ff16601c14155b156129c25750600090506004612a46565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a16573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a3f57600060019250925050612a46565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612a8560ff86901c601b613037565b9050612a9387828885612962565b935093505050935093915050565b828054612aad90612fa6565b90600052602060002090601f016020900481019282612acf5760008555612b15565b82601f10612ae85782800160ff19823516178555612b15565b82800160010185558215612b15579182015b82811115612b15578235825591602001919060010190612afa565b50612b21929150612b25565b5090565b5b80821115612b215760008155600101612b26565b6001600160a01b0381168114610bcc57600080fd5b600060208284031215612b6157600080fd5b813561166681612b3a565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610bcc57600080fd5b600060208284031215612bac57600080fd5b813561166681612b6c565b60005b83811015612bd2578181015183820152602001612bba565b838111156112755750506000910152565b60008151808452612bfb816020860160208601612bb7565b601f01601f19169290920160200192915050565b6020815260006116666020830184612be3565b600060208284031215612c3457600080fd5b5035919050565b60008060408385031215612c4e57600080fd5b8235612c5981612b3a565b946020939093013593505050565b600080600060608486031215612c7c57600080fd5b8335612c8781612b3a565b92506020840135612c9781612b3a565b929592945050506040919091013590565b60008060408385031215612cbb57600080fd5b50508035926020909101359150565b60008083601f840112612cdc57600080fd5b50813567ffffffffffffffff811115612cf457600080fd5b602083019150836020828501011115610ad457600080fd5b60008060208385031215612d1f57600080fd5b823567ffffffffffffffff811115612d3657600080fd5b612d4285828601612cca565b90969095509350505050565b8015158114610bcc57600080fd5b600060208284031215612d6e57600080fd5b813561166681612d4e565b60008060408385031215612d8c57600080fd5b823591506020830135612d9e81612d4e565b809150509250929050565b60008060408385031215612dbc57600080fd5b8235612dc781612b3a565b91506020830135612d9e81612d4e565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e0357600080fd5b8435612e0e81612b3a565b93506020850135612e1e81612b3a565b925060408501359150606085013567ffffffffffffffff80821115612e4257600080fd5b818701915087601f830112612e5657600080fd5b813581811115612e6857612e68612dd7565b604051601f8201601f19908116603f01168101908382118183101715612e9057612e90612dd7565b816040528281528a6020848701011115612ea957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ee057600080fd5b8235612eeb81612b3a565b91506020830135612d9e81612b3a565b60008060208385031215612f0e57600080fd5b823567ffffffffffffffff80821115612f2657600080fd5b818501915085601f830112612f3a57600080fd5b813581811115612f4957600080fd5b8660208260051b8501011115612f5e57600080fd5b60209290920196919550909350505050565b600060208284031215612f8257600080fd5b5051919050565b600060208284031215612f9b57600080fd5b815161166681612d4e565b600181811c90821680612fba57607f821691505b602082108103612fda57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561301057613010612fe0565b500290565b60008261303257634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561304a5761304a612fe0565b500190565b6000600019820361306257613062612fe0565b5060010190565b6000835161307b818460208801612bb7565b83519083019061308f818360208801612bb7565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526130e06080830184612be3565b9695505050505050565b6000602082840312156130fc57600080fd5b815161166681612b6c565b60006020828403121561311957600080fd5b815161166681612b3a565b6000806040838503121561313757600080fd5b825161314281612b3a565b602084015190925067ffffffffffffffff81168114612d9e57600080fd5b634e487b7160e01b600052602160045260246000fdfe4920616d206e6f7420536f6d657468696e672c206d61796265204920616d204e6f7468696e672c20627574204920616d2070757265206f662068656172742c20616e64204920636c61696d2074686973204b657920746f20536f6d657468696e672047726561746572a264697066735822122047df9714549d95399653b80f26179987fba77c3502fc7343b9079b91b8afe68064736f6c634300080d0033

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

0000000000000000000000008b634b2ae70e338865bf9741b4ae935adf2b4c550000000000000000000000009531e93e310e4677ab879b424615e62dd826538f

-----Decoded View---------------
Arg [0] : _nothings (address): 0x8b634B2ae70E338865BF9741b4ae935adf2b4C55
Arg [1] : _void (address): 0x9531e93E310e4677aB879B424615e62Dd826538F

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008b634b2ae70e338865bf9741b4ae935adf2b4c55
Arg [1] : 0000000000000000000000009531e93e310e4677ab879b424615e62dd826538f


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.