ETH Price: $3,580.96 (-3.07%)

Token

ERC-20: Signal (SIGNAL)
 

Overview

Max Total Supply

1,000 SIGNAL

Holders

429

Market

Volume (24H)

0.0025 ETH

Min Price (24H)

$8.95 @ 0.002500 ETH

Max Price (24H)

$8.95 @ 0.002500 ETH

Other Info

Filtered by Token Holder
cruzin.eth
Balance
1 SIGNAL
0xf637d3eb55ad7f859543d1b5bd4bbcf93b6fa5a5
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:
Signal

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Signal.sol
// SPDX-License-Identifier: MIT
// base64.tech
pragma solidity ^0.8.13;

import "./erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "./BTC721.sol";
import "./Base64.sol";

/*
*/
contract Signal is BTC721, ERC721A("Signal","SIGNAL"), DefaultOperatorFilterer,  Ownable, Pausable
{
    using ECDSA for bytes32;
    using Strings for uint256;

    uint256 public constant MAX_SUPPLY = 1000;
    uint256 public constant TOKEN_PRICE = .05 ether;
    uint256 public constant PHASE_1_MAX_PER_WALLET = 1;
    uint256 public constant PHASE_2_MAX_PER_WALLET = 2;

    ISignalMetadata public metadataContract;
    IDreamExeContract public dreamExeContract;
    MintPhase public mintPhase;

    bool public traitsLocked;
    mapping(bytes => bool) public signatureUsed;
    mapping(uint256 => bool) public dreamTokenClaimed;

    address signatureVerifier;

    enum MintPhase {
        PHASE_1,
        PHASE_2
    }

    constructor(IDreamExeContract _address) 
    {
        _pause();
        dreamExeContract = _address;
    }

    modifier hasValidSignature(bytes memory _signature, bytes memory _message) {
        bytes32 messageHash = ECDSA.toEthSignedMessageHash(keccak256(_message));
        if(messageHash.recover(_signature) != signatureVerifier) revert UnrecognizableHash();
        if(signatureUsed[_signature]) revert SignatureAlreadyUsed();

        signatureUsed[_signature] = true;
        _;
    }

    modifier callerIsUser() {
        if(tx.origin != msg.sender) revert CallerIsAnotherContract();
        _;
    }

    function claim(address _mintTo, uint256[] memory _dreamTokenIds) 
        public
        whenNotPaused 
        callerIsUser()
     {
        uint256 totalToClaim = _dreamTokenIds.length;
        if(totalSupply() + totalToClaim > MAX_SUPPLY) revert ExceedsMaxSupply();

        for(uint256 i; i < _dreamTokenIds.length; i++) {
            uint256 dreamTokenId = _dreamTokenIds[i];
            if(dreamTokenClaimed[dreamTokenId]) revert DreamTokenAlreadyClaimed();
            if(dreamExeContract.ownerOf(dreamTokenId) != _mintTo) revert MsgSenderDoesNotOwnThisDreamToken();

            dreamTokenClaimed[dreamTokenId] = true;
        }

        _mint(_mintTo, totalToClaim);
    }

    function mint(bytes memory _signature, address _mintTo, uint256 _nonce) 
        public
        whenNotPaused 
        payable
        callerIsUser()
        hasValidSignature(_signature, abi.encodePacked(_mintTo, _nonce))
    {
        if(msg.value < TOKEN_PRICE) revert NotEnoughEthSent(); 
        
        uint64 numberMinted = _getAux(_mintTo);
        if(mintPhase == MintPhase.PHASE_1 && numberMinted + 1 > PHASE_1_MAX_PER_WALLET) 
            revert MaxTokensPerWalletAlreadyMintedForCurrentPhase();
        else if(mintPhase == MintPhase.PHASE_2 && numberMinted + 1 > PHASE_2_MAX_PER_WALLET) 
            revert MaxTokensPerWalletAlreadyMintedForCurrentPhase();
        
        if(totalSupply() + 1 > MAX_SUPPLY) revert ExceedsMaxSupply();

        _mint(_mintTo, 1);
        _setAux(_mintTo, ++numberMinted);
    }

    function setTokenIdToOrdinalAndTraits(bytes memory _signature, uint256 _tokenId, Ordinal memory _ordinal, uint32[8] memory _traits) 
        external
        hasValidSignature(_signature, abi.encodePacked(msg.sender, _ordinal.inscriptionId, _tokenId))
    {
        if(ownerOf(_tokenId) != msg.sender) revert UserIsNotOwnerOfToken();

        _setTokenIdToOrdinal(_tokenId, _ordinal);
        _setTokenIdToTraits(_tokenId, _traits);
    }

    function getAllInscriptionIdMinted() public view returns(string[] memory) {
        string[] memory allInscriptionIdMinted = new string[](totalSupply());

        for (uint256 i; i < totalSupply(); i++) {
            allInscriptionIdMinted[i] = tokenIdToOrdinal[i].inscriptionId;
        }

        return allInscriptionIdMinted;
    }

    function getNumAllowListMinted(address _address) public view returns(uint64) {
        return _getAux(_address);
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        if (!_exists(_tokenId)) revert URIQueryForNonexistentToken();

        return metadataContract.getMetadata(_tokenId, getOrdinal(_tokenId), getTraits(_tokenId));
    }

    /** Override for operator filter registy */
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    )   public
        payable
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to,tokenId, _data);
    }

    /*** Owner functions ***/

    function setMintPhase(MintPhase _phase) external onlyOwner {
        if(_phase > MintPhase.PHASE_2) revert InvalidPhase();

        mintPhase = _phase;
    }

    function lockTraits() external onlyOwner {
        traitsLocked = true;
    }

    function ownerMintToAddress(address _recipient, uint256 _numTokens)
        external
        onlyOwner
    {
        if(totalSupply() + _numTokens > MAX_SUPPLY ) revert ExceedsMaxSupply();
        
        _mint(_recipient, _numTokens);
    }

    function ownerSetTokenIdToOrdinalAndTraits(uint256 _tokenId, Ordinal memory _ordinal, uint32[8] memory _traits) 
        external
        onlyOwner
    {
        _setTokenIdToOrdinal(_tokenId, _ordinal);
        _setTokenIdToTraits(_tokenId, _traits);
    }

    function updateTraits(uint256 _tokenId, uint32[8] memory _traits) 
        external
        onlyOwner
    {
        if(traitsLocked) revert TraitsAreLocked();

        _setTokenIdToTraits(_tokenId, _traits);
    }

    function setMetadataContract(address _address) external onlyOwner
    {
        metadataContract = ISignalMetadata(_address);
    }

    function setSignatureVerifier(address _signatureVerifier)
        external
        onlyOwner
    {
        signatureVerifier = _signatureVerifier;
    }

    function setFilteringEnabled(bool _value) public onlyOwner {
        _setFilteringEnabled(_value);
    }

    function withdrawFunds() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function withdrawFundsToAddress(address _address, uint256 amount) external onlyOwner {
        (bool success, ) =_address.call{value: amount}("");
        require(success, "Transfer failed.");
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

}

interface ISignalMetadata{ 
    function getMetadata(uint256 _tokenId, Ordinal memory _ordinal, uint32[8] memory _traits) external view returns (string memory);
}

interface IDreamExeContract{ 
    function ownerOf(uint256 tokenId) external view returns (address);
}


error ExceedsMaxSupply();
error UnrecognizableHash();
error CantSetIfMappingAlreadyExists();
error NotEnoughEthSent();
error MaxTokensPerWalletAlreadyMintedForCurrentPhase();
error SignatureAlreadyUsed();
error UserIsNotOwnerOfToken();
error DreamTokenAlreadyClaimed();
error CallerIsAnotherContract();
error MsgSenderDoesNotOwnThisDreamToken();
error InvalidPhase();
error TraitsAreLocked();

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 5 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 // Deprecated in v4.8
    }

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

    /**
     * @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) {
        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.
            /// @solidity memory-safe-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 {
            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 the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 7 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 8 of 15 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 9 of 15 : BTC721.sol
// SPDX-License-Identifier: MIT
// base64.tech
pragma solidity ^0.8.13;

struct Ordinal {
    string inscriptionId;
    uint256 inscriptionNum;
}

abstract contract BTC721 {
    mapping(uint256 => Ordinal) public tokenIdToOrdinal;
    mapping(uint256 => uint32[8]) public tokenIdToTraits;
    mapping(string => bool) public inscriptionIdSet;

    function _setTokenIdToOrdinal(uint256 _tokenId, Ordinal memory _ordinal) 
        internal
    {
        if(bytes(tokenIdToOrdinal[_tokenId].inscriptionId).length != 0) 
            revert CanNotSetIfMappingAlreadyExists(); 
        if(inscriptionIdSet[_ordinal.inscriptionId]) 
            revert InscriptionIdAlreadySet();

        tokenIdToOrdinal[_tokenId] = _ordinal;
        inscriptionIdSet[_ordinal.inscriptionId] = true;
    }

    function _setTokenIdToTraits(uint256 _tokenId, uint32[8] memory _traits) 
        internal
    {
        tokenIdToTraits[_tokenId] = _traits;
    }

    function getOrdinal(uint256 _tokenId) public view returns (Ordinal memory) {
        return tokenIdToOrdinal[_tokenId];
    }

    function getTraits(uint256 _tokenId) public view returns (uint32[8] memory) {
        return tokenIdToTraits[_tokenId];
    }

}

error CanNotSetIfMappingAlreadyExists();
error InscriptionIdAlreadySet();

File 10 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // 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 bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID 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`
    // - [232..255] `extraData`
    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 => TokenApprovalRef) private _tokenApprovals;

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual 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 auxiliary 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 auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    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: [ERC165](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.
    }

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

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

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

    /**
     * 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 initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev 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;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // 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 `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns 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))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @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 virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 11 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @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() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 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`,
     * 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 12 of 15 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 13 of 15 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 14 of 15 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 15 of 15 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    bool public filteringEnabled;

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        if(filteringEnabled) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from != msg.sender) {
                _checkFilterOperator(msg.sender);
            }
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if(filteringEnabled) {
            _checkFilterOperator(operator);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }

    function _setFilteringEnabled(bool _filteringEnabled) internal {
        filteringEnabled = _filteringEnabled;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IDreamExeContract","name":"_address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerIsAnotherContract","type":"error"},{"inputs":[],"name":"CanNotSetIfMappingAlreadyExists","type":"error"},{"inputs":[],"name":"DreamTokenAlreadyClaimed","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"InscriptionIdAlreadySet","type":"error"},{"inputs":[],"name":"InvalidPhase","type":"error"},{"inputs":[],"name":"MaxTokensPerWalletAlreadyMintedForCurrentPhase","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MsgSenderDoesNotOwnThisDreamToken","type":"error"},{"inputs":[],"name":"NotEnoughEthSent","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"TraitsAreLocked","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"},{"inputs":[],"name":"UnrecognizableHash","type":"error"},{"inputs":[],"name":"UserIsNotOwnerOfToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PHASE_1_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PHASE_2_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mintTo","type":"address"},{"internalType":"uint256[]","name":"_dreamTokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dreamExeContract","outputs":[{"internalType":"contract IDreamExeContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dreamTokenClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"filteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllInscriptionIdMinted","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getNumAllowListMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getOrdinal","outputs":[{"components":[{"internalType":"string","name":"inscriptionId","type":"string"},{"internalType":"uint256","name":"inscriptionNum","type":"uint256"}],"internalType":"struct Ordinal","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTraits","outputs":[{"internalType":"uint32[8]","name":"","type":"uint32[8]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"inscriptionIdSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataContract","outputs":[{"internalType":"contract ISignalMetadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"address","name":"_mintTo","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"enum Signal.MintPhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_numTokens","type":"uint256"}],"name":"ownerMintToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"components":[{"internalType":"string","name":"inscriptionId","type":"string"},{"internalType":"uint256","name":"inscriptionNum","type":"uint256"}],"internalType":"struct Ordinal","name":"_ordinal","type":"tuple"},{"internalType":"uint32[8]","name":"_traits","type":"uint32[8]"}],"name":"ownerSetTokenIdToOrdinalAndTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setMetadataContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Signal.MintPhase","name":"_phase","type":"uint8"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signatureVerifier","type":"address"}],"name":"setSignatureVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"components":[{"internalType":"string","name":"inscriptionId","type":"string"},{"internalType":"uint256","name":"inscriptionNum","type":"uint256"}],"internalType":"struct Ordinal","name":"_ordinal","type":"tuple"},{"internalType":"uint32[8]","name":"_traits","type":"uint32[8]"}],"name":"setTokenIdToOrdinalAndTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatureUsed","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":"","type":"uint256"}],"name":"tokenIdToOrdinal","outputs":[{"internalType":"string","name":"inscriptionId","type":"string"},{"internalType":"uint256","name":"inscriptionNum","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToTraits","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traitsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint32[8]","name":"_traits","type":"uint32[8]"}],"name":"updateTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFundsToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162006116380380620061168339818101604052810190620000379190620005b2565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600681526020017f5369676e616c00000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f5349474e414c00000000000000000000000000000000000000000000000000008152508160059081620000cb91906200085e565b508060069081620000dd91906200085e565b50620000ee6200038060201b60201c565b600381905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002eb578015620001b1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200017792919062000956565b600060405180830381600087803b1580156200019257600080fd5b505af1158015620001a7573d6000803e3d6000fd5b50505050620002ea565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200026b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200023192919062000956565b600060405180830381600087803b1580156200024c57600080fd5b505af115801562000261573d6000803e3d6000fd5b50505050620002e9565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002b4919062000983565b600060405180830381600087803b158015620002cf57600080fd5b505af1158015620002e4573d6000803e3d6000fd5b505050505b5b5b50506200030d620003016200038560201b60201c565b6200038d60201b60201c565b6000600b60156101000a81548160ff021916908315150217905550620003386200045360201b60201c565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000a23565b600090565b600033905090565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000463620004c860201b60201c565b6001600b60156101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004af6200038560201b60201c565b604051620004be919062000983565b60405180910390a1565b620004d86200051d60201b60201c565b156200051b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005129062000a01565b60405180910390fd5b565b6000600b60159054906101000a900460ff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005668262000539565b9050919050565b60006200057a8262000559565b9050919050565b6200058c816200056d565b81146200059857600080fd5b50565b600081519050620005ac8162000581565b92915050565b600060208284031215620005cb57620005ca62000534565b5b6000620005db848285016200059b565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066657607f821691505b6020821081036200067c576200067b6200061e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006e67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006a7565b620006f28683620006a7565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200073f6200073962000733846200070a565b62000714565b6200070a565b9050919050565b6000819050919050565b6200075b836200071e565b620007736200076a8262000746565b848454620006b4565b825550505050565b600090565b6200078a6200077b565b6200079781848462000750565b505050565b5b81811015620007bf57620007b360008262000780565b6001810190506200079d565b5050565b601f8211156200080e57620007d88162000682565b620007e38462000697565b81016020851015620007f3578190505b6200080b620008028562000697565b8301826200079c565b50505b505050565b600082821c905092915050565b6000620008336000198460080262000813565b1980831691505092915050565b60006200084e838362000820565b9150826002028217905092915050565b6200086982620005e4565b67ffffffffffffffff811115620008855762000884620005ef565b5b6200089182546200064d565b6200089e828285620007c3565b600060209050601f831160018114620008d65760008415620008c1578287015190505b620008cd858262000840565b8655506200093d565b601f198416620008e68662000682565b60005b828110156200091057848901518255600182019150602085019450602081019050620008e9565b868310156200093057848901516200092c601f89168262000820565b8355505b6001600288020188555050505b505050505050565b620009508162000559565b82525050565b60006040820190506200096d600083018562000945565b6200097c602083018462000945565b9392505050565b60006020820190506200099a600083018462000945565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620009e9601083620009a0565b9150620009f682620009b1565b602082019050919050565b6000602082019050818103600083015262000a1c81620009da565b9050919050565b6156e38062000a336000396000f3fe6080604052600436106102ff5760003560e01c80636352211e11610190578063a22cb465116100dc578063c87b56dd11610095578063e1dc07611161006f578063e1dc076114610b2a578063e5187f4314610b67578063e985e9c514610b90578063f2fde38b14610bcd576102ff565b8063c87b56dd14610a99578063d2d8cb6714610ad6578063e08a660514610b01576102ff565b8063a22cb46514610986578063aae090e0146109af578063af35d4aa146109da578063b88d4fde14610a17578063bb10c82914610a33578063c40054f314610a70576102ff565b8063823acd9b116101495780638dbcbf13116101235780638dbcbf13146108cc57806395d89b41146108f55780639aaf21f4146109205780639ae305ec14610949576102ff565b8063823acd9b1461084c5780638456cb591461088a5780638da5cb5b146108a1576102ff565b80636352211e146107185780636b3cb4131461075557806370a0823114610792578063715018a6146107cf57806374a792f5146107e657806380f0050514610823576102ff565b80632893c5101161024f57806341f434341161020857806345718278116101e2578063457182781461067057806349f4146f146106995780634f7f8976146106c45780635c975abb146106ed576102ff565b806341f43434146105fe57806342842e0e1461062957806344324c9d14610645576102ff565b80632893c510146105265780632ba8831d1461055157806331c07bbf1461056857806332cb6b0c1461059157806335209821146105bc5780633f4ba83a146105e7576102ff565b80630a026740116102bc57806318160ddd1161029657806318160ddd146104ac5780631fcfe19c146104d757806323b872dd146104f357806324600fc31461050f576102ff565b80630a0267401461041b578063101410651461044457806317881cbf14610481576102ff565b806301ffc9a714610304578063063e6e981461034157806306fdde031461036c5780630722270a14610397578063081812fc146103c2578063095ea7b3146103ff575b600080fd5b34801561031057600080fd5b5061032b6004803603810190610326919061399d565b610bf6565b60405161033891906139e5565b60405180910390f35b34801561034d57600080fd5b50610356610c88565b6040516103639190613a7f565b60405180910390f35b34801561037857600080fd5b50610381610cae565b60405161038e9190613b2a565b60405180910390f35b3480156103a357600080fd5b506103ac610d40565b6040516103b99190613c58565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190613cb0565b610e84565b6040516103f69190613cfe565b60405180910390f35b61041960048036038101906104149190613d45565b610f03565b005b34801561042757600080fd5b50610442600480360381019061043d9190613db1565b610f32565b005b34801561045057600080fd5b5061046b60048036038101906104669190613cb0565b610f46565b60405161047891906139e5565b60405180910390f35b34801561048d57600080fd5b50610496610f66565b6040516104a39190613e55565b60405180910390f35b3480156104b857600080fd5b506104c1610f79565b6040516104ce9190613e7f565b60405180910390f35b6104f160048036038101906104ec9190613fcf565b610f90565b005b61050d6004803603810190610508919061403e565b61134c565b005b34801561051b57600080fd5b506105246113b1565b005b34801561053257600080fd5b5061053b611468565b6040516105489190613e7f565b60405180910390f35b34801561055d57600080fd5b5061056661146d565b005b34801561057457600080fd5b5061058f600480360381019061058a91906140b6565b611492565b005b34801561059d57600080fd5b506105a6611525565b6040516105b39190613e7f565b60405180910390f35b3480156105c857600080fd5b506105d161152b565b6040516105de9190614104565b60405180910390f35b3480156105f357600080fd5b506105fc611551565b005b34801561060a57600080fd5b50610613611563565b6040516106209190614140565b60405180910390f35b610643600480360381019061063e919061403e565b611575565b005b34801561065157600080fd5b5061065a6115da565b60405161066791906139e5565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190614223565b6115ed565b005b3480156106a557600080fd5b506106ae611881565b6040516106bb9190613e7f565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190613d45565b611886565b005b3480156106f957600080fd5b5061070261193f565b60405161070f91906139e5565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613cb0565b611956565b60405161074c9190613cfe565b60405180910390f35b34801561076157600080fd5b5061077c6004803603810190610777919061427f565b611968565b60405161078991906142cf565b60405180910390f35b34801561079e57600080fd5b506107b960048036038101906107b4919061427f565b61197a565b6040516107c69190613e7f565b60405180910390f35b3480156107db57600080fd5b506107e4611a32565b005b3480156107f257600080fd5b5061080d60048036038101906108089190613cb0565b611a46565b60405161081a9190614336565b60405180910390f35b34801561082f57600080fd5b5061084a6004803603810190610845919061455c565b611b0e565b005b34801561085857600080fd5b50610873600480360381019061086e9190613cb0565b611b2f565b6040516108819291906145cc565b60405180910390f35b34801561089657600080fd5b5061089f611bdb565b005b3480156108ad57600080fd5b506108b6611bed565b6040516108c39190613cfe565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee91906145fc565b611c17565b005b34801561090157600080fd5b5061090a611c74565b6040516109179190613b2a565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613d45565b611d06565b005b34801561095557600080fd5b50610970600480360381019061096b919061463d565b611d6a565b60405161097d91906139e5565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a89190614686565b611da0565b005b3480156109bb57600080fd5b506109c4611dcf565b6040516109d191906139e5565b60405180910390f35b3480156109e657600080fd5b50610a0160048036038101906109fc91906146c6565b611de2565b604051610a0e9190614715565b60405180910390f35b610a316004803603810190610a2c9190614730565b611e21565b005b348015610a3f57600080fd5b50610a5a6004803603810190610a5591906147b3565b611e88565b604051610a6791906139e5565b60405180910390f35b348015610a7c57600080fd5b50610a976004803603810190610a9291906147fc565b611ebe565b005b348015610aa557600080fd5b50610ac06004803603810190610abb9190613cb0565b6120b8565b604051610acd9190613b2a565b60405180910390f35b348015610ae257600080fd5b50610aeb6121b5565b604051610af89190613e7f565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b23919061427f565b6121c0565b005b348015610b3657600080fd5b50610b516004803603810190610b4c9190613cb0565b61220c565b604051610b5e9190614947565b60405180910390f35b348015610b7357600080fd5b50610b8e6004803603810190610b89919061427f565b612296565b005b348015610b9c57600080fd5b50610bb76004803603810190610bb29190614963565b6122e2565b604051610bc491906139e5565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef919061427f565b612376565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c815750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060058054610cbd906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce9906149d2565b8015610d365780601f10610d0b57610100808354040283529160200191610d36565b820191906000526020600020905b815481529060010190602001808311610d1957829003601f168201915b5050505050905090565b60606000610d4c610f79565b67ffffffffffffffff811115610d6557610d64613ea4565b5b604051908082528060200260200182016040528015610d9857816020015b6060815260200190600190039081610d835790505b50905060005b610da6610f79565b811015610e7c576000808281526020019081526020016000206000018054610dcd906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df9906149d2565b8015610e465780601f10610e1b57610100808354040283529160200191610e46565b820191906000526020600020905b815481529060010190602001808311610e2957829003601f168201915b5050505050828281518110610e5e57610e5d614a03565b5b60200260200101819052508080610e7490614a61565b915050610d9e565b508091505090565b6000610e8f826123f9565b610ec5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81600b60009054906101000a900460ff1615610f2357610f2281612458565b5b610f2d8383612555565b505050565b610f3a612699565b610f4381612717565b50565b600f6020528060005260406000206000915054906101000a900460ff1681565b600d60149054906101000a900460ff1681565b6000610f83612734565b6004546003540303905090565b610f98612739565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610ffd576040517ff4a6926000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828282604051602001611011929190614b12565b60405160208183030381529060405260006110328280519060200120612783565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661108084836127b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16146110cd576040517f65879c4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e836040516110dd9190614b85565b908152602001604051809103902060009054906101000a900460ff1615611130576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600e846040516111429190614b85565b908152602001604051809103902060006101000a81548160ff02191690831515021790555066b1a2bc2ec500003410156111a8576040517fe16b18b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006111b3866127da565b9050600060018111156111c9576111c8613dde565b5b600d60149054906101000a900460ff1660018111156111eb576111ea613dde565b5b14801561120d5750600180826112019190614b9c565b67ffffffffffffffff16115b15611244576040517fb0ca3cba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018081111561125757611256613dde565b5b600d60149054906101000a900460ff16600181111561127957611278613dde565b5b14801561129c575060026001826112909190614b9c565b67ffffffffffffffff16115b156112d3576040517fb0ca3cba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e860016112e0610f79565b6112ea9190614bd8565b1115611322576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132d866001612827565b611343868261133b90614c0c565b9250826129e3565b50505050505050565b82600b60009054906101000a900460ff16156113a0573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461139f5761139e33612458565b5b5b6113ab848484612a99565b50505050565b6113b9612699565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516113df90614c62565b60006040518083038185875af1925050503d806000811461141c576040519150601f19603f3d011682016040523d82523d6000602084013e611421565b606091505b5050905080611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90614cc3565b60405180910390fd5b50565b600281565b611475612699565b6001600d60156101000a81548160ff021916908315150217905550565b61149a612699565b6001808111156114ad576114ac613dde565b5b8160018111156114c0576114bf613dde565b5b11156114f8576040517f9a36fd9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60146101000a81548160ff0219169083600181111561151d5761151c613dde565b5b021790555050565b6103e881565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611559612699565b611561612dbb565b565b6daaeb6d7670e522a718067333cd4e81565b82600b60009054906101000a900460ff16156115c9573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115c8576115c733612458565b5b5b6115d4848484612e1e565b50505050565b600b60009054906101000a900460ff1681565b6115f5612739565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461165a576040517ff4a6926000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000815190506103e88161166c610f79565b6116769190614bd8565b11156116ae576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82518110156118715760008382815181106116cf576116ce614a03565b5b60200260200101519050600f600082815260200190815260200160002060009054906101000a900460ff1615611731576040517f274903b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016117a39190613e7f565b602060405180830381865afa1580156117c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e49190614cf8565b73ffffffffffffffffffffffffffffffffffffffff1614611831576040517f7bb145f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600f600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050808061186990614a61565b9150506116b1565b5061187c8382612827565b505050565b600181565b61188e612699565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516118b490614c62565b60006040518083038185875af1925050503d80600081146118f1576040519150601f19603f3d011682016040523d82523d6000602084013e6118f6565b606091505b505090508061193a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193190614cc3565b60405180910390fd5b505050565b6000600b60159054906101000a900460ff16905090565b600061196182612e3e565b9050919050565b6000611973826127da565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119e1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a3a612699565b611a446000612f0a565b565b611a4e613834565b600080838152602001908152602001600020604051806040016040529081600082018054611a7b906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa7906149d2565b8015611af45780601f10611ac957610100808354040283529160200191611af4565b820191906000526020600020905b815481529060010190602001808311611ad757829003601f168201915b505050505081526020016001820154815250509050919050565b611b16612699565b611b208383612fd0565b611b2a8382613107565b505050565b6000602052806000526040600020600091509050806000018054611b52906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7e906149d2565b8015611bcb5780601f10611ba057610100808354040283529160200191611bcb565b820191906000526020600020905b815481529060010190602001808311611bae57829003601f168201915b5050505050908060010154905082565b611be3612699565b611beb61312e565b565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611c1f612699565b600d60159054906101000a900460ff1615611c66576040517ff175fce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c708282613107565b5050565b606060068054611c83906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611caf906149d2565b8015611cfc5780601f10611cd157610100808354040283529160200191611cfc565b820191906000526020600020905b815481529060010190602001808311611cdf57829003601f168201915b5050505050905090565b611d0e612699565b6103e881611d1a610f79565b611d249190614bd8565b1115611d5c576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d668282612827565b5050565b6002818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b81600b60009054906101000a900460ff1615611dc057611dbf81612458565b5b611dca8383613191565b505050565b600d60159054906101000a900460ff1681565b60016020528160005260406000208160088110611dfe57600080fd5b60089182820401919006600402915091509054906101000a900463ffffffff1681565b83600b60009054906101000a900460ff1615611e75573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e7457611e7333612458565b5b5b611e818585858561329c565b5050505050565b600e818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b8333836000015185604051602001611ed893929190614d61565b6040516020818303038152906040526000611ef98280519060200120612783565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611f4784836127b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614611f94576040517f65879c4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e83604051611fa49190614b85565b908152602001604051809103902060009054906101000a900460ff1615611ff7576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600e846040516120099190614b85565b908152602001604051809103902060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff1661204e87611956565b73ffffffffffffffffffffffffffffffffffffffff161461209b576040517fe95f0c8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120a58686612fd0565b6120af8685613107565b50505050505050565b60606120c3826123f9565b6120f9576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166331c638ee8361214185611a46565b61214a8661220c565b6040518463ffffffff1660e01b815260040161216893929190614d9a565b600060405180830381865afa158015612185573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121ae9190614e49565b9050919050565b66b1a2bc2ec5000081565b6121c8612699565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61221461384e565b6001600083815260200190815260200160002060088060200260405190810160405280929190826008801561228a576020028201916000905b82829054906101000a900463ffffffff1663ffffffff168152602001906004019060208260030104928301926001038202915080841161224d5790505b50505050509050919050565b61229e612699565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61237e612699565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e490614f04565b60405180910390fd5b6123f681612f0a565b50565b600081612404612734565b11158015612413575060035482105b8015612451575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612552576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016124cf929190614f24565b602060405180830381865afa1580156124ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125109190614f62565b61255157806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016125489190613cfe565b60405180910390fd5b5b50565b600061256082611956565b90508073ffffffffffffffffffffffffffffffffffffffff1661258161330f565b73ffffffffffffffffffffffffffffffffffffffff16146125e4576125ad816125a861330f565b6122e2565b6125e3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126a1613317565b73ffffffffffffffffffffffffffffffffffffffff166126bf611bed565b73ffffffffffffffffffffffffffffffffffffffff1614612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c90614fdb565b60405180910390fd5b565b80600b60006101000a81548160ff02191690831515021790555050565b600090565b61274161193f565b15612781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277890615047565b60405180910390fd5b565b60008160405160200161279691906150de565b604051602081830303815290604052805190602001209050919050565b60008060006127c2858561331f565b915091506127cf81613370565b819250505092915050565b600060c0600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600354905060008203612868576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61287560008483856134d6565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506128ec836128dd60008660006134dc565b6128e685613504565b17613514565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461298d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612952565b50600082036129c8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060038190555050506129de600084838561353f565b505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000612aa482612e3e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b0b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612b1784613545565b91509150612b2d8187612b2861330f565b61356c565b612b7957612b4286612b3d61330f565b6122e2565b612b78576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612bdf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bec86868660016134d6565b8015612bf757600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612cc585612ca18888876134dc565b7c020000000000000000000000000000000000000000000000000000000017613514565b600760008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612d4b5760006001850190506000600760008381526020019081526020016000205403612d49576003548114612d48578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db3868686600161353f565b505050505050565b612dc36135b0565b6000600b60156101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e07613317565b604051612e149190613cfe565b60405180910390a1565b612e3983838360405180602001604052806000815250611e21565b505050565b60008082905080612e4d612734565b11612ed357600354811015612ed25760006007600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612ed0575b60008103612ec6576007600083600190039350838152602001908152602001600020549050612e9c565b8092505050612f05565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060008481526020019081526020016000206000018054612ff2906149d2565b90501461302b576040517f25b1c43800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002816000015160405161303f9190615104565b908152602001604051809103902060009054906101000a900460ff1615613092576040517f3af9a94a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008084815260200190815260200160002060008201518160000190816130ba91906152bd565b50602082015181600101559050506001600282600001516040516130de9190615104565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b8060016000848152602001908152602001600020906008613129929190613871565b505050565b613136612739565b6001600b60156101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861317a613317565b6040516131879190613cfe565b60405180910390a1565b80600a600061319e61330f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661324b61330f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161329091906139e5565b60405180910390a35050565b6132a784848461134c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613309576132d2848484846135f9565b613308576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600033905090565b600033905090565b60008060418351036133605760008060006020860151925060408601519150606086015160001a905061335487828585613749565b94509450505050613369565b60006002915091505b9250929050565b6000600481111561338457613383613dde565b5b81600481111561339757613396613dde565b5b03156134d357600160048111156133b1576133b0613dde565b5b8160048111156133c4576133c3613dde565b5b03613404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133fb906153db565b60405180910390fd5b6002600481111561341857613417613dde565b5b81600481111561342b5761342a613dde565b5b0361346b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346290615447565b60405180910390fd5b6003600481111561347f5761347e613dde565b5b81600481111561349257613491613dde565b5b036134d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c9906154d9565b60405180910390fd5b5b50565b50505050565b60008060e883901c905060e86134f386868461382b565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6135b861193f565b6135f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ee90615545565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261361f61330f565b8786866040518563ffffffff1660e01b815260040161364194939291906155af565b6020604051808303816000875af192505050801561367d57506040513d601f19601f8201168201806040525081019061367a9190615610565b60015b6136f6573d80600081146136ad576040519150601f19603f3d011682016040523d82523d6000602084013e6136b2565b606091505b5060008151036136ee576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613784576000600391509150613822565b6000600187878787604051600081526020016040526040516137a99493929190615668565b6020604051602081039080840390855afa1580156137cb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361381957600060019250925050613822565b80600092509250505b94509492505050565b60009392505050565b604051806040016040528060608152602001600081525090565b604051806101000160405280600890602082028036833780820191505090505090565b8260086007016008900481019282156139035791602002820160005b838211156138d157835183826101000a81548163ffffffff021916908363ffffffff160217905550926020019260040160208160030104928301926001030261388d565b80156139015782816101000a81549063ffffffff02191690556004016020816003010492830192600103026138d1565b505b5090506139109190613914565b5090565b5b8082111561392d576000816000905550600101613915565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61397a81613945565b811461398557600080fd5b50565b60008135905061399781613971565b92915050565b6000602082840312156139b3576139b261393b565b5b60006139c184828501613988565b91505092915050565b60008115159050919050565b6139df816139ca565b82525050565b60006020820190506139fa60008301846139d6565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613a45613a40613a3b84613a00565b613a20565b613a00565b9050919050565b6000613a5782613a2a565b9050919050565b6000613a6982613a4c565b9050919050565b613a7981613a5e565b82525050565b6000602082019050613a946000830184613a70565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ad4578082015181840152602081019050613ab9565b60008484015250505050565b6000601f19601f8301169050919050565b6000613afc82613a9a565b613b068185613aa5565b9350613b16818560208601613ab6565b613b1f81613ae0565b840191505092915050565b60006020820190508181036000830152613b448184613af1565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000613b9482613a9a565b613b9e8185613b78565b9350613bae818560208601613ab6565b613bb781613ae0565b840191505092915050565b6000613bce8383613b89565b905092915050565b6000602082019050919050565b6000613bee82613b4c565b613bf88185613b57565b935083602082028501613c0a85613b68565b8060005b85811015613c465784840389528151613c278582613bc2565b9450613c3283613bd6565b925060208a01995050600181019050613c0e565b50829750879550505050505092915050565b60006020820190508181036000830152613c728184613be3565b905092915050565b6000819050919050565b613c8d81613c7a565b8114613c9857600080fd5b50565b600081359050613caa81613c84565b92915050565b600060208284031215613cc657613cc561393b565b5b6000613cd484828501613c9b565b91505092915050565b6000613ce882613a00565b9050919050565b613cf881613cdd565b82525050565b6000602082019050613d136000830184613cef565b92915050565b613d2281613cdd565b8114613d2d57600080fd5b50565b600081359050613d3f81613d19565b92915050565b60008060408385031215613d5c57613d5b61393b565b5b6000613d6a85828601613d30565b9250506020613d7b85828601613c9b565b9150509250929050565b613d8e816139ca565b8114613d9957600080fd5b50565b600081359050613dab81613d85565b92915050565b600060208284031215613dc757613dc661393b565b5b6000613dd584828501613d9c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028110613e1e57613e1d613dde565b5b50565b6000819050613e2f82613e0d565b919050565b6000613e3f82613e21565b9050919050565b613e4f81613e34565b82525050565b6000602082019050613e6a6000830184613e46565b92915050565b613e7981613c7a565b82525050565b6000602082019050613e946000830184613e70565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613edc82613ae0565b810181811067ffffffffffffffff82111715613efb57613efa613ea4565b5b80604052505050565b6000613f0e613931565b9050613f1a8282613ed3565b919050565b600067ffffffffffffffff821115613f3a57613f39613ea4565b5b613f4382613ae0565b9050602081019050919050565b82818337600083830152505050565b6000613f72613f6d84613f1f565b613f04565b905082815260208101848484011115613f8e57613f8d613e9f565b5b613f99848285613f50565b509392505050565b600082601f830112613fb657613fb5613e9a565b5b8135613fc6848260208601613f5f565b91505092915050565b600080600060608486031215613fe857613fe761393b565b5b600084013567ffffffffffffffff81111561400657614005613940565b5b61401286828701613fa1565b935050602061402386828701613d30565b925050604061403486828701613c9b565b9150509250925092565b6000806000606084860312156140575761405661393b565b5b600061406586828701613d30565b935050602061407686828701613d30565b925050604061408786828701613c9b565b9150509250925092565b6002811061409e57600080fd5b50565b6000813590506140b081614091565b92915050565b6000602082840312156140cc576140cb61393b565b5b60006140da848285016140a1565b91505092915050565b60006140ee82613a4c565b9050919050565b6140fe816140e3565b82525050565b600060208201905061411960008301846140f5565b92915050565b600061412a82613a4c565b9050919050565b61413a8161411f565b82525050565b60006020820190506141556000830184614131565b92915050565b600067ffffffffffffffff82111561417657614175613ea4565b5b602082029050602081019050919050565b600080fd5b600061419f61419a8461415b565b613f04565b905080838252602082019050602084028301858111156141c2576141c1614187565b5b835b818110156141eb57806141d78882613c9b565b8452602084019350506020810190506141c4565b5050509392505050565b600082601f83011261420a57614209613e9a565b5b813561421a84826020860161418c565b91505092915050565b6000806040838503121561423a5761423961393b565b5b600061424885828601613d30565b925050602083013567ffffffffffffffff81111561426957614268613940565b5b614275858286016141f5565b9150509250929050565b6000602082840312156142955761429461393b565b5b60006142a384828501613d30565b91505092915050565b600067ffffffffffffffff82169050919050565b6142c9816142ac565b82525050565b60006020820190506142e460008301846142c0565b92915050565b6142f381613c7a565b82525050565b600060408301600083015184820360008601526143168282613b89565b915050602083015161432b60208601826142ea565b508091505092915050565b6000602082019050818103600083015261435081846142f9565b905092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561437d5761437c613ea4565b5b61438682613ae0565b9050602081019050919050565b60006143a66143a184614362565b613f04565b9050828152602081018484840111156143c2576143c1613e9f565b5b6143cd848285613f50565b509392505050565b600082601f8301126143ea576143e9613e9a565b5b81356143fa848260208601614393565b91505092915050565b60006040828403121561441957614418614358565b5b6144236040613f04565b9050600082013567ffffffffffffffff8111156144435761444261435d565b5b61444f848285016143d5565b600083015250602061446384828501613c9b565b60208301525092915050565b600067ffffffffffffffff82111561448a57614489613ea4565b5b602082029050919050565b600063ffffffff82169050919050565b6144ae81614495565b81146144b957600080fd5b50565b6000813590506144cb816144a5565b92915050565b60006144e46144df8461446f565b613f04565b905080602084028301858111156144fe576144fd614187565b5b835b81811015614527578061451388826144bc565b845260208401935050602081019050614500565b5050509392505050565b600082601f83011261454657614545613e9a565b5b60086145538482856144d1565b91505092915050565b600080600061014084860312156145765761457561393b565b5b600061458486828701613c9b565b935050602084013567ffffffffffffffff8111156145a5576145a4613940565b5b6145b186828701614403565b92505060406145c286828701614531565b9150509250925092565b600060408201905081810360008301526145e68185613af1565b90506145f56020830184613e70565b9392505050565b60008061012083850312156146145761461361393b565b5b600061462285828601613c9b565b925050602061463385828601614531565b9150509250929050565b6000602082840312156146535761465261393b565b5b600082013567ffffffffffffffff81111561467157614670613940565b5b61467d848285016143d5565b91505092915050565b6000806040838503121561469d5761469c61393b565b5b60006146ab85828601613d30565b92505060206146bc85828601613d9c565b9150509250929050565b600080604083850312156146dd576146dc61393b565b5b60006146eb85828601613c9b565b92505060206146fc85828601613c9b565b9150509250929050565b61470f81614495565b82525050565b600060208201905061472a6000830184614706565b92915050565b6000806000806080858703121561474a5761474961393b565b5b600061475887828801613d30565b945050602061476987828801613d30565b935050604061477a87828801613c9b565b925050606085013567ffffffffffffffff81111561479b5761479a613940565b5b6147a787828801613fa1565b91505092959194509250565b6000602082840312156147c9576147c861393b565b5b600082013567ffffffffffffffff8111156147e7576147e6613940565b5b6147f384828501613fa1565b91505092915050565b60008060008061016085870312156148175761481661393b565b5b600085013567ffffffffffffffff81111561483557614834613940565b5b61484187828801613fa1565b945050602061485287828801613c9b565b935050604085013567ffffffffffffffff81111561487357614872613940565b5b61487f87828801614403565b925050606061489087828801614531565b91505092959194509250565b600060089050919050565b600081905092915050565b6000819050919050565b6148c581614495565b82525050565b60006148d783836148bc565b60208301905092915050565b6000602082019050919050565b6148f98161489c565b61490381846148a7565b925061490e826148b2565b8060005b8381101561493f57815161492687826148cb565b9650614931836148e3565b925050600181019050614912565b505050505050565b60006101008201905061495d60008301846148f0565b92915050565b6000806040838503121561497a5761497961393b565b5b600061498885828601613d30565b925050602061499985828601613d30565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806149ea57607f821691505b6020821081036149fd576149fc6149a3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a6c82613c7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a9e57614a9d614a32565b5b600182019050919050565b60008160601b9050919050565b6000614ac182614aa9565b9050919050565b6000614ad382614ab6565b9050919050565b614aeb614ae682613cdd565b614ac8565b82525050565b6000819050919050565b614b0c614b0782613c7a565b614af1565b82525050565b6000614b1e8285614ada565b601482019150614b2e8284614afb565b6020820191508190509392505050565b600081519050919050565b600081905092915050565b6000614b5f82614b3e565b614b698185614b49565b9350614b79818560208601613ab6565b80840191505092915050565b6000614b918284614b54565b915081905092915050565b6000614ba7826142ac565b9150614bb2836142ac565b9250828201905067ffffffffffffffff811115614bd257614bd1614a32565b5b92915050565b6000614be382613c7a565b9150614bee83613c7a565b9250828201905080821115614c0657614c05614a32565b5b92915050565b6000614c17826142ac565b915067ffffffffffffffff8203614c3157614c30614a32565b5b600182019050919050565b50565b6000614c4c600083614b49565b9150614c5782614c3c565b600082019050919050565b6000614c6d82614c3f565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000614cad601083613aa5565b9150614cb882614c77565b602082019050919050565b60006020820190508181036000830152614cdc81614ca0565b9050919050565b600081519050614cf281613d19565b92915050565b600060208284031215614d0e57614d0d61393b565b5b6000614d1c84828501614ce3565b91505092915050565b600081905092915050565b6000614d3b82613a9a565b614d458185614d25565b9350614d55818560208601613ab6565b80840191505092915050565b6000614d6d8286614ada565b601482019150614d7d8285614d30565b9150614d898284614afb565b602082019150819050949350505050565b600061014082019050614db06000830186613e70565b8181036020830152614dc281856142f9565b9050614dd160408301846148f0565b949350505050565b6000614dec614de784614362565b613f04565b905082815260208101848484011115614e0857614e07613e9f565b5b614e13848285613ab6565b509392505050565b600082601f830112614e3057614e2f613e9a565b5b8151614e40848260208601614dd9565b91505092915050565b600060208284031215614e5f57614e5e61393b565b5b600082015167ffffffffffffffff811115614e7d57614e7c613940565b5b614e8984828501614e1b565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614eee602683613aa5565b9150614ef982614e92565b604082019050919050565b60006020820190508181036000830152614f1d81614ee1565b9050919050565b6000604082019050614f396000830185613cef565b614f466020830184613cef565b9392505050565b600081519050614f5c81613d85565b92915050565b600060208284031215614f7857614f7761393b565b5b6000614f8684828501614f4d565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fc5602083613aa5565b9150614fd082614f8f565b602082019050919050565b60006020820190508181036000830152614ff481614fb8565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615031601083613aa5565b915061503c82614ffb565b602082019050919050565b6000602082019050818103600083015261506081615024565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061509d601c83614d25565b91506150a882615067565b601c82019050919050565b6000819050919050565b6000819050919050565b6150d86150d3826150b3565b6150bd565b82525050565b60006150e982615090565b91506150f582846150c7565b60208201915081905092915050565b60006151108284614d30565b915081905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261517d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615140565b6151878683615140565b95508019841693508086168417925050509392505050565b60006151ba6151b56151b084613c7a565b613a20565b613c7a565b9050919050565b6000819050919050565b6151d48361519f565b6151e86151e0826151c1565b84845461514d565b825550505050565b600090565b6151fd6151f0565b6152088184846151cb565b505050565b5b8181101561522c576152216000826151f5565b60018101905061520e565b5050565b601f821115615271576152428161511b565b61524b84615130565b8101602085101561525a578190505b61526e61526685615130565b83018261520d565b50505b505050565b600082821c905092915050565b600061529460001984600802615276565b1980831691505092915050565b60006152ad8383615283565b9150826002028217905092915050565b6152c682613a9a565b67ffffffffffffffff8111156152df576152de613ea4565b5b6152e982546149d2565b6152f4828285615230565b600060209050601f8311600181146153275760008415615315578287015190505b61531f85826152a1565b865550615387565b601f1984166153358661511b565b60005b8281101561535d57848901518255600182019150602085019450602081019050615338565b8683101561537a5784890151615376601f891682615283565b8355505b6001600288020188555050505b505050505050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006153c5601883613aa5565b91506153d08261538f565b602082019050919050565b600060208201905081810360008301526153f4816153b8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615431601f83613aa5565b915061543c826153fb565b602082019050919050565b6000602082019050818103600083015261546081615424565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006154c3602283613aa5565b91506154ce82615467565b604082019050919050565b600060208201905081810360008301526154f2816154b6565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061552f601483613aa5565b915061553a826154f9565b602082019050919050565b6000602082019050818103600083015261555e81615522565b9050919050565b600082825260208201905092915050565b600061558182614b3e565b61558b8185615565565b935061559b818560208601613ab6565b6155a481613ae0565b840191505092915050565b60006080820190506155c46000830187613cef565b6155d16020830186613cef565b6155de6040830185613e70565b81810360608301526155f08184615576565b905095945050505050565b60008151905061560a81613971565b92915050565b6000602082840312156156265761562561393b565b5b6000615634848285016155fb565b91505092915050565b615646816150b3565b82525050565b600060ff82169050919050565b6156628161564c565b82525050565b600060808201905061567d600083018761563d565b61568a6020830186615659565b615697604083018561563d565b6156a4606083018461563d565b9594505050505056fea26469706673582212209a7ce4d4405b2fa2903a36985d5d7b6470910ebd78c83e26c03bb45cd3294fe964736f6c6343000811003300000000000000000000000036e47932e1030a3693dc4519b747c601e5496740

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80636352211e11610190578063a22cb465116100dc578063c87b56dd11610095578063e1dc07611161006f578063e1dc076114610b2a578063e5187f4314610b67578063e985e9c514610b90578063f2fde38b14610bcd576102ff565b8063c87b56dd14610a99578063d2d8cb6714610ad6578063e08a660514610b01576102ff565b8063a22cb46514610986578063aae090e0146109af578063af35d4aa146109da578063b88d4fde14610a17578063bb10c82914610a33578063c40054f314610a70576102ff565b8063823acd9b116101495780638dbcbf13116101235780638dbcbf13146108cc57806395d89b41146108f55780639aaf21f4146109205780639ae305ec14610949576102ff565b8063823acd9b1461084c5780638456cb591461088a5780638da5cb5b146108a1576102ff565b80636352211e146107185780636b3cb4131461075557806370a0823114610792578063715018a6146107cf57806374a792f5146107e657806380f0050514610823576102ff565b80632893c5101161024f57806341f434341161020857806345718278116101e2578063457182781461067057806349f4146f146106995780634f7f8976146106c45780635c975abb146106ed576102ff565b806341f43434146105fe57806342842e0e1461062957806344324c9d14610645576102ff565b80632893c510146105265780632ba8831d1461055157806331c07bbf1461056857806332cb6b0c1461059157806335209821146105bc5780633f4ba83a146105e7576102ff565b80630a026740116102bc57806318160ddd1161029657806318160ddd146104ac5780631fcfe19c146104d757806323b872dd146104f357806324600fc31461050f576102ff565b80630a0267401461041b578063101410651461044457806317881cbf14610481576102ff565b806301ffc9a714610304578063063e6e981461034157806306fdde031461036c5780630722270a14610397578063081812fc146103c2578063095ea7b3146103ff575b600080fd5b34801561031057600080fd5b5061032b6004803603810190610326919061399d565b610bf6565b60405161033891906139e5565b60405180910390f35b34801561034d57600080fd5b50610356610c88565b6040516103639190613a7f565b60405180910390f35b34801561037857600080fd5b50610381610cae565b60405161038e9190613b2a565b60405180910390f35b3480156103a357600080fd5b506103ac610d40565b6040516103b99190613c58565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190613cb0565b610e84565b6040516103f69190613cfe565b60405180910390f35b61041960048036038101906104149190613d45565b610f03565b005b34801561042757600080fd5b50610442600480360381019061043d9190613db1565b610f32565b005b34801561045057600080fd5b5061046b60048036038101906104669190613cb0565b610f46565b60405161047891906139e5565b60405180910390f35b34801561048d57600080fd5b50610496610f66565b6040516104a39190613e55565b60405180910390f35b3480156104b857600080fd5b506104c1610f79565b6040516104ce9190613e7f565b60405180910390f35b6104f160048036038101906104ec9190613fcf565b610f90565b005b61050d6004803603810190610508919061403e565b61134c565b005b34801561051b57600080fd5b506105246113b1565b005b34801561053257600080fd5b5061053b611468565b6040516105489190613e7f565b60405180910390f35b34801561055d57600080fd5b5061056661146d565b005b34801561057457600080fd5b5061058f600480360381019061058a91906140b6565b611492565b005b34801561059d57600080fd5b506105a6611525565b6040516105b39190613e7f565b60405180910390f35b3480156105c857600080fd5b506105d161152b565b6040516105de9190614104565b60405180910390f35b3480156105f357600080fd5b506105fc611551565b005b34801561060a57600080fd5b50610613611563565b6040516106209190614140565b60405180910390f35b610643600480360381019061063e919061403e565b611575565b005b34801561065157600080fd5b5061065a6115da565b60405161066791906139e5565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190614223565b6115ed565b005b3480156106a557600080fd5b506106ae611881565b6040516106bb9190613e7f565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190613d45565b611886565b005b3480156106f957600080fd5b5061070261193f565b60405161070f91906139e5565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613cb0565b611956565b60405161074c9190613cfe565b60405180910390f35b34801561076157600080fd5b5061077c6004803603810190610777919061427f565b611968565b60405161078991906142cf565b60405180910390f35b34801561079e57600080fd5b506107b960048036038101906107b4919061427f565b61197a565b6040516107c69190613e7f565b60405180910390f35b3480156107db57600080fd5b506107e4611a32565b005b3480156107f257600080fd5b5061080d60048036038101906108089190613cb0565b611a46565b60405161081a9190614336565b60405180910390f35b34801561082f57600080fd5b5061084a6004803603810190610845919061455c565b611b0e565b005b34801561085857600080fd5b50610873600480360381019061086e9190613cb0565b611b2f565b6040516108819291906145cc565b60405180910390f35b34801561089657600080fd5b5061089f611bdb565b005b3480156108ad57600080fd5b506108b6611bed565b6040516108c39190613cfe565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee91906145fc565b611c17565b005b34801561090157600080fd5b5061090a611c74565b6040516109179190613b2a565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613d45565b611d06565b005b34801561095557600080fd5b50610970600480360381019061096b919061463d565b611d6a565b60405161097d91906139e5565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a89190614686565b611da0565b005b3480156109bb57600080fd5b506109c4611dcf565b6040516109d191906139e5565b60405180910390f35b3480156109e657600080fd5b50610a0160048036038101906109fc91906146c6565b611de2565b604051610a0e9190614715565b60405180910390f35b610a316004803603810190610a2c9190614730565b611e21565b005b348015610a3f57600080fd5b50610a5a6004803603810190610a5591906147b3565b611e88565b604051610a6791906139e5565b60405180910390f35b348015610a7c57600080fd5b50610a976004803603810190610a9291906147fc565b611ebe565b005b348015610aa557600080fd5b50610ac06004803603810190610abb9190613cb0565b6120b8565b604051610acd9190613b2a565b60405180910390f35b348015610ae257600080fd5b50610aeb6121b5565b604051610af89190613e7f565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b23919061427f565b6121c0565b005b348015610b3657600080fd5b50610b516004803603810190610b4c9190613cb0565b61220c565b604051610b5e9190614947565b60405180910390f35b348015610b7357600080fd5b50610b8e6004803603810190610b89919061427f565b612296565b005b348015610b9c57600080fd5b50610bb76004803603810190610bb29190614963565b6122e2565b604051610bc491906139e5565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef919061427f565b612376565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c815750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060058054610cbd906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce9906149d2565b8015610d365780601f10610d0b57610100808354040283529160200191610d36565b820191906000526020600020905b815481529060010190602001808311610d1957829003601f168201915b5050505050905090565b60606000610d4c610f79565b67ffffffffffffffff811115610d6557610d64613ea4565b5b604051908082528060200260200182016040528015610d9857816020015b6060815260200190600190039081610d835790505b50905060005b610da6610f79565b811015610e7c576000808281526020019081526020016000206000018054610dcd906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df9906149d2565b8015610e465780601f10610e1b57610100808354040283529160200191610e46565b820191906000526020600020905b815481529060010190602001808311610e2957829003601f168201915b5050505050828281518110610e5e57610e5d614a03565b5b60200260200101819052508080610e7490614a61565b915050610d9e565b508091505090565b6000610e8f826123f9565b610ec5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81600b60009054906101000a900460ff1615610f2357610f2281612458565b5b610f2d8383612555565b505050565b610f3a612699565b610f4381612717565b50565b600f6020528060005260406000206000915054906101000a900460ff1681565b600d60149054906101000a900460ff1681565b6000610f83612734565b6004546003540303905090565b610f98612739565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610ffd576040517ff4a6926000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828282604051602001611011929190614b12565b60405160208183030381529060405260006110328280519060200120612783565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661108084836127b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16146110cd576040517f65879c4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e836040516110dd9190614b85565b908152602001604051809103902060009054906101000a900460ff1615611130576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600e846040516111429190614b85565b908152602001604051809103902060006101000a81548160ff02191690831515021790555066b1a2bc2ec500003410156111a8576040517fe16b18b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006111b3866127da565b9050600060018111156111c9576111c8613dde565b5b600d60149054906101000a900460ff1660018111156111eb576111ea613dde565b5b14801561120d5750600180826112019190614b9c565b67ffffffffffffffff16115b15611244576040517fb0ca3cba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018081111561125757611256613dde565b5b600d60149054906101000a900460ff16600181111561127957611278613dde565b5b14801561129c575060026001826112909190614b9c565b67ffffffffffffffff16115b156112d3576040517fb0ca3cba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e860016112e0610f79565b6112ea9190614bd8565b1115611322576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132d866001612827565b611343868261133b90614c0c565b9250826129e3565b50505050505050565b82600b60009054906101000a900460ff16156113a0573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461139f5761139e33612458565b5b5b6113ab848484612a99565b50505050565b6113b9612699565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516113df90614c62565b60006040518083038185875af1925050503d806000811461141c576040519150601f19603f3d011682016040523d82523d6000602084013e611421565b606091505b5050905080611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90614cc3565b60405180910390fd5b50565b600281565b611475612699565b6001600d60156101000a81548160ff021916908315150217905550565b61149a612699565b6001808111156114ad576114ac613dde565b5b8160018111156114c0576114bf613dde565b5b11156114f8576040517f9a36fd9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60146101000a81548160ff0219169083600181111561151d5761151c613dde565b5b021790555050565b6103e881565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611559612699565b611561612dbb565b565b6daaeb6d7670e522a718067333cd4e81565b82600b60009054906101000a900460ff16156115c9573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115c8576115c733612458565b5b5b6115d4848484612e1e565b50505050565b600b60009054906101000a900460ff1681565b6115f5612739565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461165a576040517ff4a6926000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000815190506103e88161166c610f79565b6116769190614bd8565b11156116ae576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82518110156118715760008382815181106116cf576116ce614a03565b5b60200260200101519050600f600082815260200190815260200160002060009054906101000a900460ff1615611731576040517f274903b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016117a39190613e7f565b602060405180830381865afa1580156117c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e49190614cf8565b73ffffffffffffffffffffffffffffffffffffffff1614611831576040517f7bb145f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600f600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050808061186990614a61565b9150506116b1565b5061187c8382612827565b505050565b600181565b61188e612699565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516118b490614c62565b60006040518083038185875af1925050503d80600081146118f1576040519150601f19603f3d011682016040523d82523d6000602084013e6118f6565b606091505b505090508061193a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193190614cc3565b60405180910390fd5b505050565b6000600b60159054906101000a900460ff16905090565b600061196182612e3e565b9050919050565b6000611973826127da565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119e1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a3a612699565b611a446000612f0a565b565b611a4e613834565b600080838152602001908152602001600020604051806040016040529081600082018054611a7b906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa7906149d2565b8015611af45780601f10611ac957610100808354040283529160200191611af4565b820191906000526020600020905b815481529060010190602001808311611ad757829003601f168201915b505050505081526020016001820154815250509050919050565b611b16612699565b611b208383612fd0565b611b2a8382613107565b505050565b6000602052806000526040600020600091509050806000018054611b52906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7e906149d2565b8015611bcb5780601f10611ba057610100808354040283529160200191611bcb565b820191906000526020600020905b815481529060010190602001808311611bae57829003601f168201915b5050505050908060010154905082565b611be3612699565b611beb61312e565b565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611c1f612699565b600d60159054906101000a900460ff1615611c66576040517ff175fce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c708282613107565b5050565b606060068054611c83906149d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611caf906149d2565b8015611cfc5780601f10611cd157610100808354040283529160200191611cfc565b820191906000526020600020905b815481529060010190602001808311611cdf57829003601f168201915b5050505050905090565b611d0e612699565b6103e881611d1a610f79565b611d249190614bd8565b1115611d5c576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d668282612827565b5050565b6002818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b81600b60009054906101000a900460ff1615611dc057611dbf81612458565b5b611dca8383613191565b505050565b600d60159054906101000a900460ff1681565b60016020528160005260406000208160088110611dfe57600080fd5b60089182820401919006600402915091509054906101000a900463ffffffff1681565b83600b60009054906101000a900460ff1615611e75573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e7457611e7333612458565b5b5b611e818585858561329c565b5050505050565b600e818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b8333836000015185604051602001611ed893929190614d61565b6040516020818303038152906040526000611ef98280519060200120612783565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611f4784836127b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614611f94576040517f65879c4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e83604051611fa49190614b85565b908152602001604051809103902060009054906101000a900460ff1615611ff7576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600e846040516120099190614b85565b908152602001604051809103902060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff1661204e87611956565b73ffffffffffffffffffffffffffffffffffffffff161461209b576040517fe95f0c8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120a58686612fd0565b6120af8685613107565b50505050505050565b60606120c3826123f9565b6120f9576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166331c638ee8361214185611a46565b61214a8661220c565b6040518463ffffffff1660e01b815260040161216893929190614d9a565b600060405180830381865afa158015612185573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121ae9190614e49565b9050919050565b66b1a2bc2ec5000081565b6121c8612699565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61221461384e565b6001600083815260200190815260200160002060088060200260405190810160405280929190826008801561228a576020028201916000905b82829054906101000a900463ffffffff1663ffffffff168152602001906004019060208260030104928301926001038202915080841161224d5790505b50505050509050919050565b61229e612699565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61237e612699565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e490614f04565b60405180910390fd5b6123f681612f0a565b50565b600081612404612734565b11158015612413575060035482105b8015612451575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612552576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016124cf929190614f24565b602060405180830381865afa1580156124ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125109190614f62565b61255157806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016125489190613cfe565b60405180910390fd5b5b50565b600061256082611956565b90508073ffffffffffffffffffffffffffffffffffffffff1661258161330f565b73ffffffffffffffffffffffffffffffffffffffff16146125e4576125ad816125a861330f565b6122e2565b6125e3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126a1613317565b73ffffffffffffffffffffffffffffffffffffffff166126bf611bed565b73ffffffffffffffffffffffffffffffffffffffff1614612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c90614fdb565b60405180910390fd5b565b80600b60006101000a81548160ff02191690831515021790555050565b600090565b61274161193f565b15612781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277890615047565b60405180910390fd5b565b60008160405160200161279691906150de565b604051602081830303815290604052805190602001209050919050565b60008060006127c2858561331f565b915091506127cf81613370565b819250505092915050565b600060c0600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600354905060008203612868576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61287560008483856134d6565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506128ec836128dd60008660006134dc565b6128e685613504565b17613514565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461298d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612952565b50600082036129c8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060038190555050506129de600084838561353f565b505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000612aa482612e3e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b0b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612b1784613545565b91509150612b2d8187612b2861330f565b61356c565b612b7957612b4286612b3d61330f565b6122e2565b612b78576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612bdf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bec86868660016134d6565b8015612bf757600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612cc585612ca18888876134dc565b7c020000000000000000000000000000000000000000000000000000000017613514565b600760008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612d4b5760006001850190506000600760008381526020019081526020016000205403612d49576003548114612d48578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db3868686600161353f565b505050505050565b612dc36135b0565b6000600b60156101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e07613317565b604051612e149190613cfe565b60405180910390a1565b612e3983838360405180602001604052806000815250611e21565b505050565b60008082905080612e4d612734565b11612ed357600354811015612ed25760006007600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612ed0575b60008103612ec6576007600083600190039350838152602001908152602001600020549050612e9c565b8092505050612f05565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060008481526020019081526020016000206000018054612ff2906149d2565b90501461302b576040517f25b1c43800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002816000015160405161303f9190615104565b908152602001604051809103902060009054906101000a900460ff1615613092576040517f3af9a94a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008084815260200190815260200160002060008201518160000190816130ba91906152bd565b50602082015181600101559050506001600282600001516040516130de9190615104565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b8060016000848152602001908152602001600020906008613129929190613871565b505050565b613136612739565b6001600b60156101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861317a613317565b6040516131879190613cfe565b60405180910390a1565b80600a600061319e61330f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661324b61330f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161329091906139e5565b60405180910390a35050565b6132a784848461134c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613309576132d2848484846135f9565b613308576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600033905090565b600033905090565b60008060418351036133605760008060006020860151925060408601519150606086015160001a905061335487828585613749565b94509450505050613369565b60006002915091505b9250929050565b6000600481111561338457613383613dde565b5b81600481111561339757613396613dde565b5b03156134d357600160048111156133b1576133b0613dde565b5b8160048111156133c4576133c3613dde565b5b03613404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133fb906153db565b60405180910390fd5b6002600481111561341857613417613dde565b5b81600481111561342b5761342a613dde565b5b0361346b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346290615447565b60405180910390fd5b6003600481111561347f5761347e613dde565b5b81600481111561349257613491613dde565b5b036134d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c9906154d9565b60405180910390fd5b5b50565b50505050565b60008060e883901c905060e86134f386868461382b565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6135b861193f565b6135f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ee90615545565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261361f61330f565b8786866040518563ffffffff1660e01b815260040161364194939291906155af565b6020604051808303816000875af192505050801561367d57506040513d601f19601f8201168201806040525081019061367a9190615610565b60015b6136f6573d80600081146136ad576040519150601f19603f3d011682016040523d82523d6000602084013e6136b2565b606091505b5060008151036136ee576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613784576000600391509150613822565b6000600187878787604051600081526020016040526040516137a99493929190615668565b6020604051602081039080840390855afa1580156137cb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361381957600060019250925050613822565b80600092509250505b94509492505050565b60009392505050565b604051806040016040528060608152602001600081525090565b604051806101000160405280600890602082028036833780820191505090505090565b8260086007016008900481019282156139035791602002820160005b838211156138d157835183826101000a81548163ffffffff021916908363ffffffff160217905550926020019260040160208160030104928301926001030261388d565b80156139015782816101000a81549063ffffffff02191690556004016020816003010492830192600103026138d1565b505b5090506139109190613914565b5090565b5b8082111561392d576000816000905550600101613915565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61397a81613945565b811461398557600080fd5b50565b60008135905061399781613971565b92915050565b6000602082840312156139b3576139b261393b565b5b60006139c184828501613988565b91505092915050565b60008115159050919050565b6139df816139ca565b82525050565b60006020820190506139fa60008301846139d6565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613a45613a40613a3b84613a00565b613a20565b613a00565b9050919050565b6000613a5782613a2a565b9050919050565b6000613a6982613a4c565b9050919050565b613a7981613a5e565b82525050565b6000602082019050613a946000830184613a70565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ad4578082015181840152602081019050613ab9565b60008484015250505050565b6000601f19601f8301169050919050565b6000613afc82613a9a565b613b068185613aa5565b9350613b16818560208601613ab6565b613b1f81613ae0565b840191505092915050565b60006020820190508181036000830152613b448184613af1565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000613b9482613a9a565b613b9e8185613b78565b9350613bae818560208601613ab6565b613bb781613ae0565b840191505092915050565b6000613bce8383613b89565b905092915050565b6000602082019050919050565b6000613bee82613b4c565b613bf88185613b57565b935083602082028501613c0a85613b68565b8060005b85811015613c465784840389528151613c278582613bc2565b9450613c3283613bd6565b925060208a01995050600181019050613c0e565b50829750879550505050505092915050565b60006020820190508181036000830152613c728184613be3565b905092915050565b6000819050919050565b613c8d81613c7a565b8114613c9857600080fd5b50565b600081359050613caa81613c84565b92915050565b600060208284031215613cc657613cc561393b565b5b6000613cd484828501613c9b565b91505092915050565b6000613ce882613a00565b9050919050565b613cf881613cdd565b82525050565b6000602082019050613d136000830184613cef565b92915050565b613d2281613cdd565b8114613d2d57600080fd5b50565b600081359050613d3f81613d19565b92915050565b60008060408385031215613d5c57613d5b61393b565b5b6000613d6a85828601613d30565b9250506020613d7b85828601613c9b565b9150509250929050565b613d8e816139ca565b8114613d9957600080fd5b50565b600081359050613dab81613d85565b92915050565b600060208284031215613dc757613dc661393b565b5b6000613dd584828501613d9c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028110613e1e57613e1d613dde565b5b50565b6000819050613e2f82613e0d565b919050565b6000613e3f82613e21565b9050919050565b613e4f81613e34565b82525050565b6000602082019050613e6a6000830184613e46565b92915050565b613e7981613c7a565b82525050565b6000602082019050613e946000830184613e70565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613edc82613ae0565b810181811067ffffffffffffffff82111715613efb57613efa613ea4565b5b80604052505050565b6000613f0e613931565b9050613f1a8282613ed3565b919050565b600067ffffffffffffffff821115613f3a57613f39613ea4565b5b613f4382613ae0565b9050602081019050919050565b82818337600083830152505050565b6000613f72613f6d84613f1f565b613f04565b905082815260208101848484011115613f8e57613f8d613e9f565b5b613f99848285613f50565b509392505050565b600082601f830112613fb657613fb5613e9a565b5b8135613fc6848260208601613f5f565b91505092915050565b600080600060608486031215613fe857613fe761393b565b5b600084013567ffffffffffffffff81111561400657614005613940565b5b61401286828701613fa1565b935050602061402386828701613d30565b925050604061403486828701613c9b565b9150509250925092565b6000806000606084860312156140575761405661393b565b5b600061406586828701613d30565b935050602061407686828701613d30565b925050604061408786828701613c9b565b9150509250925092565b6002811061409e57600080fd5b50565b6000813590506140b081614091565b92915050565b6000602082840312156140cc576140cb61393b565b5b60006140da848285016140a1565b91505092915050565b60006140ee82613a4c565b9050919050565b6140fe816140e3565b82525050565b600060208201905061411960008301846140f5565b92915050565b600061412a82613a4c565b9050919050565b61413a8161411f565b82525050565b60006020820190506141556000830184614131565b92915050565b600067ffffffffffffffff82111561417657614175613ea4565b5b602082029050602081019050919050565b600080fd5b600061419f61419a8461415b565b613f04565b905080838252602082019050602084028301858111156141c2576141c1614187565b5b835b818110156141eb57806141d78882613c9b565b8452602084019350506020810190506141c4565b5050509392505050565b600082601f83011261420a57614209613e9a565b5b813561421a84826020860161418c565b91505092915050565b6000806040838503121561423a5761423961393b565b5b600061424885828601613d30565b925050602083013567ffffffffffffffff81111561426957614268613940565b5b614275858286016141f5565b9150509250929050565b6000602082840312156142955761429461393b565b5b60006142a384828501613d30565b91505092915050565b600067ffffffffffffffff82169050919050565b6142c9816142ac565b82525050565b60006020820190506142e460008301846142c0565b92915050565b6142f381613c7a565b82525050565b600060408301600083015184820360008601526143168282613b89565b915050602083015161432b60208601826142ea565b508091505092915050565b6000602082019050818103600083015261435081846142f9565b905092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561437d5761437c613ea4565b5b61438682613ae0565b9050602081019050919050565b60006143a66143a184614362565b613f04565b9050828152602081018484840111156143c2576143c1613e9f565b5b6143cd848285613f50565b509392505050565b600082601f8301126143ea576143e9613e9a565b5b81356143fa848260208601614393565b91505092915050565b60006040828403121561441957614418614358565b5b6144236040613f04565b9050600082013567ffffffffffffffff8111156144435761444261435d565b5b61444f848285016143d5565b600083015250602061446384828501613c9b565b60208301525092915050565b600067ffffffffffffffff82111561448a57614489613ea4565b5b602082029050919050565b600063ffffffff82169050919050565b6144ae81614495565b81146144b957600080fd5b50565b6000813590506144cb816144a5565b92915050565b60006144e46144df8461446f565b613f04565b905080602084028301858111156144fe576144fd614187565b5b835b81811015614527578061451388826144bc565b845260208401935050602081019050614500565b5050509392505050565b600082601f83011261454657614545613e9a565b5b60086145538482856144d1565b91505092915050565b600080600061014084860312156145765761457561393b565b5b600061458486828701613c9b565b935050602084013567ffffffffffffffff8111156145a5576145a4613940565b5b6145b186828701614403565b92505060406145c286828701614531565b9150509250925092565b600060408201905081810360008301526145e68185613af1565b90506145f56020830184613e70565b9392505050565b60008061012083850312156146145761461361393b565b5b600061462285828601613c9b565b925050602061463385828601614531565b9150509250929050565b6000602082840312156146535761465261393b565b5b600082013567ffffffffffffffff81111561467157614670613940565b5b61467d848285016143d5565b91505092915050565b6000806040838503121561469d5761469c61393b565b5b60006146ab85828601613d30565b92505060206146bc85828601613d9c565b9150509250929050565b600080604083850312156146dd576146dc61393b565b5b60006146eb85828601613c9b565b92505060206146fc85828601613c9b565b9150509250929050565b61470f81614495565b82525050565b600060208201905061472a6000830184614706565b92915050565b6000806000806080858703121561474a5761474961393b565b5b600061475887828801613d30565b945050602061476987828801613d30565b935050604061477a87828801613c9b565b925050606085013567ffffffffffffffff81111561479b5761479a613940565b5b6147a787828801613fa1565b91505092959194509250565b6000602082840312156147c9576147c861393b565b5b600082013567ffffffffffffffff8111156147e7576147e6613940565b5b6147f384828501613fa1565b91505092915050565b60008060008061016085870312156148175761481661393b565b5b600085013567ffffffffffffffff81111561483557614834613940565b5b61484187828801613fa1565b945050602061485287828801613c9b565b935050604085013567ffffffffffffffff81111561487357614872613940565b5b61487f87828801614403565b925050606061489087828801614531565b91505092959194509250565b600060089050919050565b600081905092915050565b6000819050919050565b6148c581614495565b82525050565b60006148d783836148bc565b60208301905092915050565b6000602082019050919050565b6148f98161489c565b61490381846148a7565b925061490e826148b2565b8060005b8381101561493f57815161492687826148cb565b9650614931836148e3565b925050600181019050614912565b505050505050565b60006101008201905061495d60008301846148f0565b92915050565b6000806040838503121561497a5761497961393b565b5b600061498885828601613d30565b925050602061499985828601613d30565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806149ea57607f821691505b6020821081036149fd576149fc6149a3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a6c82613c7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a9e57614a9d614a32565b5b600182019050919050565b60008160601b9050919050565b6000614ac182614aa9565b9050919050565b6000614ad382614ab6565b9050919050565b614aeb614ae682613cdd565b614ac8565b82525050565b6000819050919050565b614b0c614b0782613c7a565b614af1565b82525050565b6000614b1e8285614ada565b601482019150614b2e8284614afb565b6020820191508190509392505050565b600081519050919050565b600081905092915050565b6000614b5f82614b3e565b614b698185614b49565b9350614b79818560208601613ab6565b80840191505092915050565b6000614b918284614b54565b915081905092915050565b6000614ba7826142ac565b9150614bb2836142ac565b9250828201905067ffffffffffffffff811115614bd257614bd1614a32565b5b92915050565b6000614be382613c7a565b9150614bee83613c7a565b9250828201905080821115614c0657614c05614a32565b5b92915050565b6000614c17826142ac565b915067ffffffffffffffff8203614c3157614c30614a32565b5b600182019050919050565b50565b6000614c4c600083614b49565b9150614c5782614c3c565b600082019050919050565b6000614c6d82614c3f565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000614cad601083613aa5565b9150614cb882614c77565b602082019050919050565b60006020820190508181036000830152614cdc81614ca0565b9050919050565b600081519050614cf281613d19565b92915050565b600060208284031215614d0e57614d0d61393b565b5b6000614d1c84828501614ce3565b91505092915050565b600081905092915050565b6000614d3b82613a9a565b614d458185614d25565b9350614d55818560208601613ab6565b80840191505092915050565b6000614d6d8286614ada565b601482019150614d7d8285614d30565b9150614d898284614afb565b602082019150819050949350505050565b600061014082019050614db06000830186613e70565b8181036020830152614dc281856142f9565b9050614dd160408301846148f0565b949350505050565b6000614dec614de784614362565b613f04565b905082815260208101848484011115614e0857614e07613e9f565b5b614e13848285613ab6565b509392505050565b600082601f830112614e3057614e2f613e9a565b5b8151614e40848260208601614dd9565b91505092915050565b600060208284031215614e5f57614e5e61393b565b5b600082015167ffffffffffffffff811115614e7d57614e7c613940565b5b614e8984828501614e1b565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614eee602683613aa5565b9150614ef982614e92565b604082019050919050565b60006020820190508181036000830152614f1d81614ee1565b9050919050565b6000604082019050614f396000830185613cef565b614f466020830184613cef565b9392505050565b600081519050614f5c81613d85565b92915050565b600060208284031215614f7857614f7761393b565b5b6000614f8684828501614f4d565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fc5602083613aa5565b9150614fd082614f8f565b602082019050919050565b60006020820190508181036000830152614ff481614fb8565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615031601083613aa5565b915061503c82614ffb565b602082019050919050565b6000602082019050818103600083015261506081615024565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061509d601c83614d25565b91506150a882615067565b601c82019050919050565b6000819050919050565b6000819050919050565b6150d86150d3826150b3565b6150bd565b82525050565b60006150e982615090565b91506150f582846150c7565b60208201915081905092915050565b60006151108284614d30565b915081905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261517d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615140565b6151878683615140565b95508019841693508086168417925050509392505050565b60006151ba6151b56151b084613c7a565b613a20565b613c7a565b9050919050565b6000819050919050565b6151d48361519f565b6151e86151e0826151c1565b84845461514d565b825550505050565b600090565b6151fd6151f0565b6152088184846151cb565b505050565b5b8181101561522c576152216000826151f5565b60018101905061520e565b5050565b601f821115615271576152428161511b565b61524b84615130565b8101602085101561525a578190505b61526e61526685615130565b83018261520d565b50505b505050565b600082821c905092915050565b600061529460001984600802615276565b1980831691505092915050565b60006152ad8383615283565b9150826002028217905092915050565b6152c682613a9a565b67ffffffffffffffff8111156152df576152de613ea4565b5b6152e982546149d2565b6152f4828285615230565b600060209050601f8311600181146153275760008415615315578287015190505b61531f85826152a1565b865550615387565b601f1984166153358661511b565b60005b8281101561535d57848901518255600182019150602085019450602081019050615338565b8683101561537a5784890151615376601f891682615283565b8355505b6001600288020188555050505b505050505050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006153c5601883613aa5565b91506153d08261538f565b602082019050919050565b600060208201905081810360008301526153f4816153b8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615431601f83613aa5565b915061543c826153fb565b602082019050919050565b6000602082019050818103600083015261546081615424565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006154c3602283613aa5565b91506154ce82615467565b604082019050919050565b600060208201905081810360008301526154f2816154b6565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061552f601483613aa5565b915061553a826154f9565b602082019050919050565b6000602082019050818103600083015261555e81615522565b9050919050565b600082825260208201905092915050565b600061558182614b3e565b61558b8185615565565b935061559b818560208601613ab6565b6155a481613ae0565b840191505092915050565b60006080820190506155c46000830187613cef565b6155d16020830186613cef565b6155de6040830185613e70565b81810360608301526155f08184615576565b905095945050505050565b60008151905061560a81613971565b92915050565b6000602082840312156156265761562561393b565b5b6000615634848285016155fb565b91505092915050565b615646816150b3565b82525050565b600060ff82169050919050565b6156628161564c565b82525050565b600060808201905061567d600083018761563d565b61568a6020830186615659565b615697604083018561563d565b6156a4606083018461563d565b9594505050505056fea26469706673582212209a7ce4d4405b2fa2903a36985d5d7b6470910ebd78c83e26c03bb45cd3294fe964736f6c63430008110033

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

00000000000000000000000036e47932e1030a3693dc4519b747c601e5496740

-----Decoded View---------------
Arg [0] : _address (address): 0x36e47932E1030a3693dc4519b747c601e5496740

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000036e47932e1030a3693dc4519b747c601e5496740


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.