ETH Price: $3,913.62 (+0.06%)

Token

Genuine Undead V2 (GUV2)
 

Overview

Max Total Supply

4,099 GUV2

Holders

415

Market

Volume (24H)

0.3112 ETH

Min Price (24H)

$192.94 @ 0.049300 ETH

Max Price (24H)

$547.91 @ 0.140000 ETH
Filtered by Token Holder
haze.q00t.eth
Balance
2 GUV2
0x93bbcf3310771090e88f19057c940524bb43bbba
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:
GUMain

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 20 : GUMain.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

// import "./openzeppelin/ERC721.sol";
import "./openzeppelin/ERC2981.sol";
import "./openzeppelin/Strings.sol";
import "./openzeppelin/IERC721Receiver.sol";
import "./openzeppelin/EnumerableSet.sol";

import "./kbt/KBT721.sol";
import "./IMainContract.sol";

contract GUMain is KBT721, ERC2981, IERC721Receiver {
    using Strings for uint;
    using Strings for address;
    using EnumerableSet for EnumerableSet.AddressSet;

    bool public isSwitchBackEnabled = false;
    address public originalGuContractAddress;
    IERC721 public originalGuContract;

    string private _uriPrefix = "https://rising.genuineundead.com/api/nft/";
    string private _uriSuffix = ".json";

    mapping(uint => string) private _tokenImages;
    event TokenEngraved(uint indexed tokenId, string base64Image);

    EnumerableSet.AddressSet private _filterOperators;

    constructor(
        address _originalGuContractAddress
    ) KBT721("Genuine Undead V2", "GUV2") {
        _setDefaultRoyalty(address(this), 500);

        originalGuContractAddress = _originalGuContractAddress;
        originalGuContract = IERC721(originalGuContractAddress);
    }

    // region modifiers
    modifier onlyAllowedOperator(address operator) {
        require(
            operator == _msgSender() || !checkFilterOperator(_msgSender()),
            "Operator is not allowed"
        );
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) {
        require(!checkFilterOperator(operator), "Operator is not allowed");
        _;
    }
    //endregion

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC2981, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    // region IMainContract functions

    function withdraw(uint _amount, address _receiver) external onlyOwner {
        require(_amount <= address(this).balance, "Insufficient balance");
        payable(_receiver).transfer(_amount);
    }

    function changePreffixAndSuffix(
        string calldata _prefix,
        string calldata _suffix
    ) external onlyOwner {
        _uriPrefix = _prefix;
        _uriSuffix = _suffix;
    }

    function setDefaultRoyalty(
        address _royaltyRecipient,
        uint _percentage
    ) external onlyOwner {
        _setDefaultRoyalty(_royaltyRecipient, uint96(_percentage));
    }

    function enableSwitchBack() external onlyOwner {
        isSwitchBackEnabled = true;
    }

    //endregion

    // region ERC2981 functions

    function getDefaultRoyaltyInfo()
        public
        view
        returns (address receiver, uint feeNumerator)
    {
        (receiver, feeNumerator) = royaltyInfo(0, 10000);
    }

    // endregion

    // region tokenURI

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

    function tokenURI(
        uint tokenId
    ) public view virtual override returns (string memory) {
        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(_uriPrefix, tokenId.toString(), baseURI)
                )
                : "";
    }

    // endregion

    // region NFT Swap

    function swapNFTs(uint[] memory tokenIds) external {
        bool tempIsApprovedForAll = originalGuContract.isApprovedForAll(
            msg.sender,
            address(this)
        );

        for (uint i = 0; i < tokenIds.length; i++) {
            uint tokenId = tokenIds[i];
            address currentOwner = originalGuContract.ownerOf(tokenId);
            require(
                currentOwner == msg.sender,
                "Mint has failed, sender is not the holder of the whole tokens"
            );
        }

        if (!tempIsApprovedForAll) {
            for (uint i = 0; i < tokenIds.length; i++) {
                uint tokenId = tokenIds[i];
                address approvedAddress = originalGuContract.getApproved(
                    tokenId
                );
                require(
                    approvedAddress == address(this),
                    string(
                        abi.encodePacked(
                            "Mint has failed, sender has not approved the current contract as a spender for the tokens. Approved Address: ",
                            approvedAddress.toHexString(),
                            ", Contract Address: ",
                            address(this).toHexString()
                        )
                    )
                );
            }
        }

        for (uint i = 0; i < tokenIds.length; i++) {
            uint tokenId = tokenIds[i];

            originalGuContract.safeTransferFrom(
                msg.sender,
                address(this),
                tokenId,
                ""
            );

            _mint(msg.sender, tokenId);
        }
    }

    // endregion

    // region SwitchBack

    function switchBackNFTs(uint[] memory tokenIds) external {
        require(isSwitchBackEnabled == true, "SwitchBack is not enabled");

        for (uint i = 0; i < tokenIds.length; i++) {
            uint tokenId = tokenIds[i];
            address currentOwner = ownerOf(tokenId);
            require(
                currentOwner == msg.sender,
                "SwitchBack has failed, sender is not the holder of the whole tokens"
            );
        }

        for (uint i = 0; i < tokenIds.length; i++) {
            uint tokenId = tokenIds[i];
            _burn(tokenId);

            originalGuContract.safeTransferFrom(
                address(this),
                msg.sender,
                tokenId,
                ""
            );
        }
    }

    // endregion

    // region Engrave

    function engraveToken(uint tokenId, string calldata base64Image) external {
        require(
            ownerOf(tokenId) == msg.sender,
            "Caller is not the owner of the token"
        );
        _tokenImages[tokenId] = base64Image;

        emit TokenEngraved(tokenId, base64Image);
    }

    function getEngravedData(uint tokenId) public view returns (string memory) {
        return _tokenImages[tokenId];
    }

    // endregion

    // region Filter Operators

    function checkFilterOperator(address operator) private view returns (bool) {
        return _filterOperators.contains(operator);
    }

    function getFilteredOperators() external view returns (address[] memory) {
        return _filterOperators.values();
    }

    function addFilterOperators(
        address[] calldata operators
    ) external onlyOwner {
        for (uint256 i; i < operators.length; ) {
            _filterOperators.add(operators[i]);
            unchecked {
                ++i;
            }
        }
    }

    function removeFilterOperators(
        address[] calldata operators
    ) external onlyOwner {
        for (uint256 i; i < operators.length; ) {
            _filterOperators.remove(operators[i]);
            unchecked {
                ++i;
            }
        }
    }

    // endregion

    // region Override following method to auto restrict marketplace contract

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

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

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

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

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

    //endregion

    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return this.onERC721Received.selector;
    }

    receive() external payable {}
}

File 2 of 20 : IMainContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

interface IMainContract {
    function withdraw(uint256 _amount, address _receiver) external;

    function changePreffixAndSuffix(
        string calldata _prefix,
        string calldata _suffix
    ) external;

    function setDefaultRoyalty(
        address _royaltyRecipient,
        uint _percentage
    ) external;

    function enableSwitchBack() external;

    function addFilterOperators(address[] calldata operators) external;

    function removeFilterOperators(address[] calldata operators) external;
}

File 3 of 20 : IKBT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IKBT721 {
    event AccountSecured(address indexed _account, uint256 _noOfTokens);
    event AccountResetBinding(address indexed _account);
    event SafeFallbackActivated(address indexed _account);
    event AccountEnabledTransfer(
        address _account,
        uint256 _tokenId,
        uint256 _time,
        address _to,
        bool _anyToken
    );
    event AccountEnabledApproval(
        address _account,
        uint256 _time,
        uint256 _numberOfTransfers
    );
    event Ingress(address _account, uint256 _tokenId);
    event Egress(address _account, uint256 _tokenId);

    struct AccountHolderBindings {
        address firstWallet;
        address secondWallet;
    }

    struct FirstAccountBindings {
        address accountHolderWallet;
        address secondWallet;
    }

    struct SecondAccountBindings {
        address accountHolderWallet;
        address firstWallet;
    }

    struct TransferConditions {
        uint256 tokenId;
        uint256 time;
        address to;
        bool anyToken;
    }

    struct ApprovalConditions {
        uint256 time;
        uint256 numberOfTransfers;
    }

    function addBindings(
        address _keyWallet1,
        address _keyWallet2
    ) external returns (bool);

    function getBindings(
        address _account
    ) external view returns (AccountHolderBindings memory);

    function resetBindings() external returns (bool);

    function safeFallback() external returns (bool);

    function allowTransfer(
        uint256 _tokenId,
        uint256 _time,
        address _to,
        bool _allTokens
    ) external returns (bool);

    function getTransferableFunds(
        address _account
    ) external view returns (TransferConditions memory);

    function allowApproval(
        uint256 _time,
        uint256 _numberOfTransfers
    ) external returns (bool);

    function getApprovalConditions(
        address account
    ) external view returns (ApprovalConditions memory);

    function getNumberOfTransfersAllowed(
        address _account,
        address _spender
    ) external view returns (uint256);

    function isSecureWallet(address _account) external returns (bool);

    function isSecureToken(uint256 _tokenId) external returns (bool);
}

File 4 of 20 : KBT721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "./IKBT721.sol";
import "../openzeppelin/ERC721Enumerable.sol";
import "../openzeppelin/Ownable.sol";

contract KBT721 is IKBT721, ERC721Enumerable, Ownable {
    mapping(address => AccountHolderBindings) private _holderAccounts;
    mapping(address => FirstAccountBindings) private _firstAccounts;
    mapping(address => SecondAccountBindings) private _secondAccounts;

    mapping(address => TransferConditions) private _transferConditions;
    mapping(address => ApprovalConditions) private _approvalConditions;

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

    constructor(
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {}

    function addBindings(
        address _keyWallet1,
        address _keyWallet2
    ) external virtual override returns (bool) {
        address sender = _msgSender();
        require(balanceOf(sender) > 0, "[200] KBT721: Wallet is not a holder");
        require(
            _holderAccounts[sender].firstWallet == address(0) &&
                _holderAccounts[sender].secondWallet == address(0),
            "[201] KBT721: Key wallets are already filled"
        );
        require(
            _keyWallet1 != address(0) && _keyWallet2 != address(0),
            "[202] KBT721: Does not follow 0x standard"
        );
        require(
            _keyWallet1 != _keyWallet2,
            "[205] KBT721: Key wallet 1 must be different than key wallet 2"
        );
        require(
            _keyWallet1 != sender,
            "[206] KBT721: Key wallet 1 must be different than the sender"
        );
        require(
            sender != _keyWallet2,
            "[207] KBT721: Key wallet 2 must be different than the sender"
        );
        require(
            _firstAccounts[_keyWallet1].accountHolderWallet == address(0),
            "[203] KBT721: Key wallet 1 is already registered"
        );
        require(
            _secondAccounts[_keyWallet2].accountHolderWallet == address(0),
            "[204] KBT721: Key wallet 2 is already registered"
        );
        _holderAccounts[sender] = AccountHolderBindings({
            firstWallet: _keyWallet1,
            secondWallet: _keyWallet2
        });
        _firstAccounts[_keyWallet1] = FirstAccountBindings({
            accountHolderWallet: sender,
            secondWallet: _keyWallet2
        });
        _secondAccounts[_keyWallet2] = SecondAccountBindings({
            accountHolderWallet: sender,
            firstWallet: _keyWallet1
        });
        emit AccountSecured(sender, balanceOf(sender));
        return true;
    }

    function getBindings(
        address _account
    ) external view virtual override returns (AccountHolderBindings memory) {
        return _holderAccounts[_account];
    }

    function resetBindings() external virtual override returns (bool) {
        address accountHolder = _getAccountHolder();
        require(
            accountHolder != address(0),
            "[300] KBT721: Key authorization failure"
        );
        delete _firstAccounts[_holderAccounts[accountHolder].firstWallet];
        delete _secondAccounts[_holderAccounts[accountHolder].secondWallet];
        delete _holderAccounts[accountHolder];
        emit AccountResetBinding(accountHolder);
        return true;
    }

    function safeFallback() external virtual override returns (bool) {
        address accountHolder = _getAccountHolder();
        address otherSecureWallet = _getOtherSecureWallet();
        require(
            accountHolder != address(0),
            "[400] KBT721: Key authorization failure"
        );

        uint256 noOfTokens = balanceOf(accountHolder);
        uint256 i = 0;
        while (i++ < noOfTokens) {
            uint256 tempTokenId = tokenOfOwnerByIndex(accountHolder, 0);
            _transfer(accountHolder, otherSecureWallet, tempTokenId);
        }

        emit SafeFallbackActivated(accountHolder);

        return true;
    }

    function allowTransfer(
        uint256 _tokenId,
        uint256 _time,
        address _to,
        bool _anyToken
    ) external virtual returns (bool) {
        address accountHolder = _getAccountHolder();

        require(
            accountHolder != address(0),
            "[500] KBT721: Key authorization failure"
        );
        if (_tokenId > 0) {
            address _owner = ownerOf(_tokenId);
            require(_owner == accountHolder, "[501] KBT721: Invalid tokenId.");
        }

        _time = _time > 0 ? (block.timestamp + _time) : 0;

        _transferConditions[accountHolder] = TransferConditions({
            tokenId: _tokenId,
            time: _time,
            to: _to,
            anyToken: _anyToken
        });

        emit AccountEnabledTransfer(
            accountHolder,
            _tokenId,
            _time,
            _to,
            _anyToken
        );

        return true;
    }

    function getTransferableFunds(
        address _account
    ) external view returns (TransferConditions memory) {
        return _transferConditions[_account];
    }

    function allowApproval(
        uint256 _time,
        uint256 _numberOfTransfers
    ) external virtual returns (bool) {
        address accountHolder = _getAccountHolder();
        require(
            accountHolder != address(0),
            "[600] KBT721: Key authorization failure"
        );

        _time = block.timestamp + _time;

        _approvalConditions[accountHolder].time = _time;
        _approvalConditions[accountHolder]
            .numberOfTransfers = _numberOfTransfers;

        emit AccountEnabledApproval(accountHolder, _time, _numberOfTransfers);

        return true;
    }

    function getApprovalConditions(
        address _account
    ) external view returns (ApprovalConditions memory) {
        return _approvalConditions[_account];
    }

    function getNumberOfTransfersAllowed(
        address _account,
        address _spender
    ) external view returns (uint256) {
        return _numberOfTransfersAllowed[_account][_spender];
    }

    function isSecureWallet(address _account) public view returns (bool) {
        return
            _holderAccounts[_account].firstWallet != address(0) &&
            _holderAccounts[_account].secondWallet != address(0);
    }

    function isSecureToken(
        uint256 _tokenId
    ) public view virtual override returns (bool) {
        address _owner = ownerOf(_tokenId);

        return isSecureWallet(_owner);
    }

    // region ERC721 overrides

    function transferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    ) public virtual override(ERC721, IERC721) {
        address _sender = _msgSender();
        address _owner = ownerOf(_tokenId);

        if (_sender == _owner && isSecureWallet(_owner)) {
            require(
                _hasAllowedTransfer(_owner, _tokenId, _to),
                "[100] KBT721: Sender is a secure wallet and doesn't have approval for the token"
            );
        }

        super.transferFrom(_from, _to, _tokenId);

        if (_sender == _owner) {
            delete _transferConditions[_owner];
        } else {
            if (_numberOfTransfersAllowed[_owner][_sender] != 0) {
                if (_numberOfTransfersAllowed[_owner][_sender] == 1) {
                    _setApprovalForAll(_owner, _sender, false);
                }
                _numberOfTransfersAllowed[_owner][_sender] -= 1;
            }
        }
    }

    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    ) public virtual override(ERC721, IERC721) {
        safeTransferFrom(_from, _to, _tokenId, "");
    }

    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId,
        bytes memory data
    ) public virtual override(ERC721, IERC721) {
        address _sender = _msgSender();
        address _owner = ownerOf(_tokenId);

        if (_sender == _owner && isSecureWallet(_owner)) {
            require(
                _hasAllowedTransfer(_owner, _tokenId, _to),
                "[100] KBT721: Owner is a secure wallet and doesn't have approval for the token"
            );
        }

        super.safeTransferFrom(_from, _to, _tokenId, data);

        if (_sender == _owner) {
            delete _transferConditions[_owner];
        } else {
            if (_numberOfTransfersAllowed[_owner][_sender] != 0) {
                if (_numberOfTransfersAllowed[_owner][_sender] == 1) {
                    _setApprovalForAll(_owner, _sender, false);
                }
                _numberOfTransfersAllowed[_owner][_sender] -= 1;
            }
        }
    }

    function approve(
        address _to,
        uint256 _tokenId
    ) public virtual override(ERC721, IERC721) {
        address _owner = ownerOf(_tokenId);

        if (isSecureWallet(_owner)) {
            require(
                _approvalConditions[_owner].time > 0,
                "[101] KBT721: Spending of funds is not authorized."
            );
            require(
                _isApprovalAllowed(_owner),
                "[102] KBT721: Time has expired for the spending of funds"
            );
        }

        super.approve(_to, _tokenId);

        _numberOfTransfersAllowed[_owner][_to] = _approvalConditions[_owner]
            .numberOfTransfers;

        delete _approvalConditions[_owner];
    }

    function setApprovalForAll(
        address _operator,
        bool _approved
    ) public virtual override(ERC721, IERC721) {
        address _sender = _msgSender();
        if (isSecureWallet(_sender)) {
            require(
                _approvalConditions[_sender].time > 0,
                "[101] KBT721: Spending of funds is not authorized."
            );
            require(
                _isApprovalAllowed(_sender),
                "[102] KBT721: Time has expired for the spending of funds"
            );
        }

        super.setApprovalForAll(_operator, _approved);

        _numberOfTransfersAllowed[_sender][_operator] = _approvalConditions[
            _sender
        ].numberOfTransfers;

        delete _approvalConditions[_sender];
    }

    function _afterTokenTransfer(
        address _from,
        address _to,
        uint256 _firstTokenId,
        uint256 _batchSize
    ) internal virtual override {
        if (_from != address(0)) {
            // region update secureAccounts
            if (isSecureWallet(_from) && balanceOf(_from) == 0) {
                delete _firstAccounts[_holderAccounts[_from].firstWallet];
                delete _secondAccounts[_holderAccounts[_from].secondWallet];
                delete _holderAccounts[_from];
            }
            // endregion
            if (balanceOf(_from) == 0) {
                emit Egress(_from, _firstTokenId);
            }
        }

        if (_to != address(0) && balanceOf(_to) == _batchSize) {
            emit Ingress(_to, _firstTokenId);
        }
    }

    // endregion

    function _hasAllowedTransfer(
        address _account,
        uint256 _tokenId,
        address _to
    ) internal view returns (bool) {
        TransferConditions memory conditions = _transferConditions[_account];

        if (conditions.anyToken) {
            return true;
        }

        if (
            (conditions.tokenId == 0 &&
                conditions.time == 0 &&
                conditions.to == address(0)) ||
            (conditions.tokenId > 0 && conditions.tokenId != _tokenId) ||
            (conditions.time > 0 && conditions.time < block.timestamp) ||
            (conditions.to != address(0) && conditions.to != _to)
        ) {
            return false;
        }

        return true;
    }

    function _isApprovalAllowed(address account) internal view returns (bool) {
        return _approvalConditions[account].time >= block.timestamp;
    }

    function _getAccountHolder() internal view returns (address) {
        address sender = _msgSender();
        return
            _firstAccounts[sender].accountHolderWallet != address(0)
                ? _firstAccounts[sender].accountHolderWallet
                : (
                    _secondAccounts[sender].accountHolderWallet != address(0)
                        ? _secondAccounts[sender].accountHolderWallet
                        : address(0)
                );
    }

    function _getOtherSecureWallet() internal view returns (address) {
        address sender = _msgSender();
        address accountHolder = _getAccountHolder();

        return
            _holderAccounts[accountHolder].firstWallet == sender
                ? _holderAccounts[accountHolder].secondWallet
                : _holderAccounts[accountHolder].firstWallet;
    }
}

File 5 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 20 : 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 7 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

            if (valueIndex != lastIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the lastValue to the index where the value to delete is
                set._values[valueIndex] = lastValue;
                // Update the tracked position of the lastValue (that was just moved)
                set._positions[lastValue] = position;
            }

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

            // Delete the tracked position for the deleted slot
            delete set._positions[value];

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 9 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import "./IERC2981.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(
        uint256 tokenId,
        uint256 numerator,
        uint256 denominator
    );

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) public view virtual returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) /
            _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(
                tokenId,
                feeNumerator,
                denominator
            );
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 10 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(
        address owner
    ) public view virtual override returns (uint256) {
        require(
            owner != address(0),
            "ERC721: address zero is not a valid owner"
        );
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(
        uint256 tokenId
    ) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

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

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(
        uint256 tokenId
    ) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(
        address operator,
        bool approved
    ) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: caller is not token owner or approved"
        );

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: caller is not token owner or approved"
        );
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(
        address spender,
        uint256 tokenId
    ) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner ||
            isApprovedForAll(owner, spender) ||
            getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721.ownerOf(tokenId) == from,
            "ERC721: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(
            ERC721.ownerOf(tokenId) == from,
            "ERC721: transfer from incorrect owner"
        );

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

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 /* firstTokenId */,
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 11 of 20 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(
        address owner,
        uint256 index
    ) public view virtual override returns (uint256) {
        require(
            index < ERC721.balanceOf(owner),
            "ERC721Enumerable: owner index out of bounds"
        );
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(
        uint256 index
    ) public view virtual override returns (uint256) {
        require(
            index < ERC721Enumerable.totalSupply(),
            "ERC721Enumerable: global index out of bounds"
        );
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(
        address from,
        uint256 tokenId
    ) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 12 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 13 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

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

File 14 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 15 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

File 16 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 17 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 of 20 : 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 19 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./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 20 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_originalGuContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_time","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_numberOfTransfers","type":"uint256"}],"name":"AccountEnabledApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_time","type":"uint256"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"bool","name":"_anyToken","type":"bool"}],"name":"AccountEnabledTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"AccountResetBinding","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_noOfTokens","type":"uint256"}],"name":"AccountSecured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Egress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Ingress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"SafeFallbackActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"base64Image","type":"string"}],"name":"TokenEngraved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_keyWallet1","type":"address"},{"internalType":"address","name":"_keyWallet2","type":"address"}],"name":"addBindings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"operators","type":"address[]"}],"name":"addFilterOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"},{"internalType":"uint256","name":"_numberOfTransfers","type":"uint256"}],"name":"allowApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_time","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_anyToken","type":"bool"}],"name":"allowTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"},{"internalType":"string","name":"_suffix","type":"string"}],"name":"changePreffixAndSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableSwitchBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"base64Image","type":"string"}],"name":"engraveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getApprovalConditions","outputs":[{"components":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"numberOfTransfers","type":"uint256"}],"internalType":"struct IKBT721.ApprovalConditions","name":"","type":"tuple"}],"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":"_account","type":"address"}],"name":"getBindings","outputs":[{"components":[{"internalType":"address","name":"firstWallet","type":"address"},{"internalType":"address","name":"secondWallet","type":"address"}],"internalType":"struct IKBT721.AccountHolderBindings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDefaultRoyaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"feeNumerator","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getEngravedData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFilteredOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"getNumberOfTransfersAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTransferableFunds","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"anyToken","type":"bool"}],"internalType":"struct IKBT721.TransferConditions","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isSecureToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isSecureWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSwitchBackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"originalGuContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"originalGuContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"operators","type":"address[]"}],"name":"removeFilterOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetBindings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeFallback","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"swapNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"switchBackNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6013805460ff1916905560e0604052602960808181529062004f2b60a0396015906200002c908262000312565b50604080518082019091526005815264173539b7b760d91b602082015260169062000058908262000312565b503480156200006657600080fd5b5060405162004f5438038062004f548339810160408190526200008991620003de565b6040518060400160405280601181526020017023b2b73ab4b732902ab73232b0b2102b1960791b8152506040518060400160405280600481526020016323aaab1960e11b81525081818160009081620000e3919062000312565b506001620000f2828262000312565b5050506200010f620001096200016a60201b60201c565b6200016e565b50620001209050306101f4620001c0565b60138054610100600160a81b0319166101006001600160a01b039384168102919091179182905560148054919092049092166001600160a01b031990921691909117905562000410565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382168110156200020557604051636f483d0960e01b81526001600160601b0383166004820152602481018290526044015b60405180910390fd5b6001600160a01b0383166200023157604051635b6cc80560e11b815260006004820152602401620001fc565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200029657607f821691505b602082108103620002b757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030d576000816000526020600020601f850160051c81016020861015620002e85750805b601f850160051c820191505b818110156200030957828155600101620002f4565b5050505b505050565b81516001600160401b038111156200032e576200032e6200026b565b62000346816200033f845462000281565b84620002bd565b602080601f8311600181146200037e5760008415620003655750858301515b600019600386901b1c1916600185901b17855562000309565b600085815260208120601f198616915b82811015620003af578886015182559484019460019091019084016200038e565b5085821015620003ce5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620003f157600080fd5b81516001600160a01b03811681146200040957600080fd5b9392505050565b614b0b80620004206000396000f3fe60806040526004361061028b5760003560e01c8063715018a61161015a578063a4d54b1a116100c1578063c87b56dd1161007a578063c87b56dd1461098c578063d8d045b4146109ac578063e54e193c146109cc578063e985e9c5146109ec578063ecbb669f14610a35578063f2fde38b14610a5557600080fd5b8063a4d54b1a146108e0578063ae9805ee14610900578063b1adf02914610920578063b24f2d3914610935578063b88d4fde1461094a578063bf46e2531461096a57600080fd5b80638a084f24116101135780638a084f241461082d5780638da5cb5b1461084d57806395d89b411461086b5780639abb7c9114610880578063a066c42a146108a0578063a22cb465146108c057600080fd5b8063715018a61461077e5780637278c98f146107935780637c9dc1a7146107b85780637d1a5bd1146107d8578063800e9c48146107ed5780638023e7ff1461080d57600080fd5b80632a440d98116101fe57806345e8a3df116101b757806345e8a3df146106cf5780634f6ccce7146106e9578063512cafc2146107095780636352211e14610729578063646ec3d81461074957806370a082311461075e57600080fd5b80632a440d98146105145780632a55205a146105ea5780632f745c59146106295780633cf7b80a146106495780633e794dc01461066957806342842e0e146106af57600080fd5b80630e020296116102505780630e02029614610368578063150b7a02146103f357806318160ddd1461043857806320fb3be31461045757806323b872dd146104d457806327da45c9146104f457600080fd5b8062f714ce1461029757806301ffc9a7146102b957806306fdde03146102ee578063081812fc14610310578063095ea7b31461034857600080fd5b3661029257005b600080fd5b3480156102a357600080fd5b506102b76102b2366004613ea1565b610a75565b005b3480156102c557600080fd5b506102d96102d4366004613ee7565b610b04565b60405190151581526020015b60405180910390f35b3480156102fa57600080fd5b50610303610b15565b6040516102e59190613f54565b34801561031c57600080fd5b5061033061032b366004613f67565b610ba7565b6040516001600160a01b0390911681526020016102e5565b34801561035457600080fd5b506102b7610363366004613f80565b610bce565b34801561037457600080fd5b506103cc610383366004613fac565b604080518082018252600080825260209182018190526001600160a01b039384168152600b82528290208251808401909352805484168352600101549092169181019190915290565b6040805182516001600160a01b0390811682526020938401511692810192909252016102e5565b3480156103ff57600080fd5b5061041f61040e36600461400b565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102e5565b34801561044457600080fd5b506008545b6040519081526020016102e5565b34801561046357600080fd5b506104b9610472366004613fac565b6040805180820190915260008082526020820152506001600160a01b03166000908152600f6020908152604091829020825180840190935280548352600101549082015290565b604080518251815260209283015192810192909252016102e5565b3480156104e057600080fd5b506102b76104ef36600461407e565b610bff565b34801561050057600080fd5b506102b761050f366004614106565b610c4a565b34801561052057600080fd5b506105ac61052f366004613fac565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b039081166000908152600e60209081526040918290208251608081018452815481526001820154928101929092526002015492831691810191909152600160a01b90910460ff161515606082015290565b6040516102e5919081518152602080830151908201526040808301516001600160a01b03169082015260609182015115159181019190915260800190565b3480156105f657600080fd5b5061060a6106053660046141ac565b610e29565b604080516001600160a01b0390931683526020830191909152016102e5565b34801561063557600080fd5b50610449610644366004613f80565b610ed7565b34801561065557600080fd5b506102b76106643660046141ce565b610f6d565b34801561067557600080fd5b50610449610684366004614243565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b3480156106bb57600080fd5b506102b76106ca36600461407e565b610fbb565b3480156106db57600080fd5b506013546102d99060ff1681565b3480156106f557600080fd5b50610449610704366004613f67565b611000565b34801561071557600080fd5b506102b7610724366004614106565b611093565b34801561073557600080fd5b50610330610744366004613f67565b6113f8565b34801561075557600080fd5b506102d9611458565b34801561076a57600080fd5b50610449610779366004613fac565b611559565b34801561078a57600080fd5b506102b76115df565b34801561079f57600080fd5b506013546103309061010090046001600160a01b031681565b3480156107c457600080fd5b506102d96107d336600461427f565b6115f3565b3480156107e457600080fd5b506102d96117c8565b3480156107f957600080fd5b50610303610808366004613f67565b6118e4565b34801561081957600080fd5b506102b76108283660046141ce565b611986565b34801561083957600080fd5b506102b76108483660046142c9565b6119d4565b34801561085957600080fd5b50600a546001600160a01b0316610330565b34801561087757600080fd5b50610303611a99565b34801561088c57600080fd5b506102d961089b3660046141ac565b611aa8565b3480156108ac57600080fd5b506102b76108bb366004614315565b611b93565b3480156108cc57600080fd5b506102b76108db366004614381565b611bbd565b3480156108ec57600080fd5b506102d96108fb366004613f67565b611bee565b34801561090c57600080fd5b50601454610330906001600160a01b031681565b34801561092c57600080fd5b506102b7611c0c565b34801561094157600080fd5b5061060a611c23565b34801561095657600080fd5b506102b76109653660046143af565b611c3c565b34801561097657600080fd5b5061097f611c82565b6040516102e59190614473565b34801561099857600080fd5b506103036109a7366004613f67565b611c93565b3480156109b857600080fd5b506102b76109c7366004613f80565b611cf3565b3480156109d857600080fd5b506102d96109e7366004614243565b611d05565b3480156109f857600080fd5b506102d9610a07366004614243565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4157600080fd5b506102d9610a50366004613fac565b612239565b348015610a6157600080fd5b506102b7610a70366004613fac565b612283565b610a7d6122fc565b47821115610ac95760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610aff573d6000803e3d6000fd5b505050565b6000610b0f82612356565b92915050565b606060008054610b24906144c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b50906144c0565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb28261237b565b506000908152600460205260409020546001600160a01b031690565b81610bd8816123da565b15610bf55760405162461bcd60e51b8152600401610ac0906144fa565b610aff83836123e7565b826001600160a01b038116331480610c1d5750610c1b336123da565b155b610c395760405162461bcd60e51b8152600401610ac0906144fa565b610c448484846124c2565b50505050565b60135460ff161515600114610ca15760405162461bcd60e51b815260206004820152601960248201527f5377697463684261636b206973206e6f7420656e61626c6564000000000000006044820152606401610ac0565b60005b8151811015610d6c576000828281518110610cc157610cc1614531565b602002602001015190506000610cd6826113f8565b90506001600160a01b0381163314610d625760405162461bcd60e51b815260206004820152604360248201527f5377697463684261636b20686173206661696c65642c2073656e64657220697360448201527f206e6f742074686520686f6c646572206f66207468652077686f6c6520746f6b606482015262656e7360e81b608482015260a401610ac0565b5050600101610ca4565b5060005b8151811015610e25576000828281518110610d8d57610d8d614531565b60200260200101519050610da081612694565b601454604051635c46a7ef60e11b81523060048201523360248201526044810183905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b158015610e0057600080fd5b505af1158015610e14573d6000803e3d6000fd5b505060019093019250610d70915050565b5050565b60008281526012602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e9e5750604080518082019091526011546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ebd906001600160601b03168761455d565b610ec79190614574565b91519350909150505b9250929050565b6000610ee283611559565b8210610f445760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ac0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610f756122fc565b60005b81811015610aff57610fb2838383818110610f9557610f95614531565b9050602002016020810190610faa9190613fac565b601890612741565b50600101610f78565b826001600160a01b038116331480610fd95750610fd7336123da565b155b610ff55760405162461bcd60e51b8152600401610ac0906144fa565b610c44848484612756565b600061100b60085490565b821061106e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ac0565b6008828154811061108157611081614531565b90600052602060002001549050919050565b60145460405163e985e9c560e01b81523360048201523060248201526000916001600160a01b03169063e985e9c590604401602060405180830381865afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111069190614596565b905060005b825181101561123057600083828151811061112857611128614531565b60209081029190910101516014546040516331a9108f60e11b8152600481018390529192506000916001600160a01b0390911690636352211e90602401602060405180830381865afa158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a691906145b3565b90506001600160a01b03811633146112265760405162461bcd60e51b815260206004820152603d60248201527f4d696e7420686173206661696c65642c2073656e646572206973206e6f74207460448201527f686520686f6c646572206f66207468652077686f6c6520746f6b656e730000006064820152608401610ac0565b505060010161110b565b50806113415760005b825181101561133f57600083828151811061125657611256614531565b602090810291909101015160145460405163020604bf60e21b8152600481018390529192506000916001600160a01b039091169063081812fc90602401602060405180830381865afa1580156112b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d491906145b3565b90506001600160a01b038116308114906112ed90612771565b6112f630612771565b6040516020016113079291906145d0565b604051602081830303815290604052906113345760405162461bcd60e51b8152600401610ac09190613f54565b505050600101611239565b505b60005b8251811015610aff57600083828151811061136157611361614531565b6020908102919091010151601454604051635c46a7ef60e11b81523360048201523060248201526044810183905260806064820152600060848201529192506001600160a01b03169063b88d4fde9060a401600060405180830381600087803b1580156113cd57600080fd5b505af11580156113e1573d6000803e3d6000fd5b505050506113ef3382612787565b50600101611344565b6000818152600260205260408120546001600160a01b031680610b0f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ac0565b60008061146361292a565b9050600061146f6129b2565b90506001600160a01b0382166114d75760405162461bcd60e51b815260206004820152602760248201527f5b3430305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b60006114e283611559565b905060005b81816114f2816146aa565b9250101561151a576000611507856000610ed7565b9050611514858583612a2b565b506114e7565b6040516001600160a01b038516907f25a2abf52609ac61e3adb8b5b4d53d328d7abb17b8aee9b7b463f4ebedbbca1d90600090a2600194505050505090565b60006001600160a01b0382166115c35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ac0565b506001600160a01b031660009081526003602052604090205490565b6115e76122fc565b6115f16000612ba4565b565b6000806115fe61292a565b90506001600160a01b0381166116665760405162461bcd60e51b815260206004820152602760248201527f5b3530305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b85156116dc576000611677876113f8565b9050816001600160a01b0316816001600160a01b0316146116da5760405162461bcd60e51b815260206004820152601e60248201527f5b3530315d204b42543732313a20496e76616c696420746f6b656e49642e00006044820152606401610ac0565b505b600085116116eb5760006116f5565b6116f585426146c3565b604080516080808201835289825260208083018581526001600160a01b038a81168587018181528b151560608089018281528c86166000818152600e8a528c90209a518b55965160018b015592516002909901805493511515600160a01b026001600160a81b031990941699909516989098179190911790925586519283529282018d9052948101869052928301528101919091529095507f69fcc0e8657da8baee763cbf800b20425094596b4de6dcd49c190d9eed61bdb79060a00160405180910390a160019150505b949350505050565b6000806117d361292a565b90506001600160a01b03811661183b5760405162461bcd60e51b815260206004820152602760248201527f5b3330305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b6001600160a01b038082166000818152600b60208181526040808420805487168552600c835281852080546001600160a01b03199081168255600191820180548216905581830180549099168752600d855283872080548216815590910180548216905586865293909252815483169091558454909116909355915190917f3936b7c77a600cb259c805bd725ee2098b2c99c27a76744d697003aaa5dbc93191a2600191505090565b6000818152601760205260409020805460609190611901906144c0565b80601f016020809104026020016040519081016040528092919081815260200182805461192d906144c0565b801561197a5780601f1061194f5761010080835404028352916020019161197a565b820191906000526020600020905b81548152906001019060200180831161195d57829003601f168201915b50505050509050919050565b61198e6122fc565b60005b81811015610aff576119cb8383838181106119ae576119ae614531565b90506020020160208101906119c39190613fac565b601890612bf6565b50600101611991565b336119de846113f8565b6001600160a01b031614611a405760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e6f7420746865206f776e6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610ac0565b6000838152601760205260409020611a5982848361471e565b50827f0a6ced67ec5a9498f6befbe10293edc7ed755e9dedc774094b3b91dc0dac96c88383604051611a8c9291906147de565b60405180910390a2505050565b606060018054610b24906144c0565b600080611ab361292a565b90506001600160a01b038116611b1b5760405162461bcd60e51b815260206004820152602760248201527f5b3630305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b611b2584426146c3565b6001600160a01b0382166000818152600f60209081526040918290208481556001018790558151928352820183905281018590529094507f5aa44865b966bd9a28e3e814cea0105560fc32a8b8da3e2ce3424e518ea361139060600160405180910390a15060019392505050565b611b9b6122fc565b6015611ba884868361471e565b506016611bb682848361471e565b5050505050565b81611bc7816123da565b15611be45760405162461bcd60e51b8152600401610ac0906144fa565b610aff8383612c0b565b600080611bfa836113f8565b9050611c0581612239565b9392505050565b611c146122fc565b6013805460ff19166001179055565b600080611c336000612710610e29565b90939092509050565b836001600160a01b038116331480611c5a5750611c58336123da565b155b611c765760405162461bcd60e51b8152600401610ac0906144fa565b611bb685858585612c91565b6060611c8e6018612e65565b905090565b60606000611c9f612e72565b90506000815111611cbf5760405180602001604052806000815250611c05565b6015611cca84612e81565b82604051602001611cdd9392919061480d565b6040516020818303038152906040529392505050565b611cfb6122fc565b610e258282612f14565b60003381611d1282611559565b11611d6b5760405162461bcd60e51b8152602060048201526024808201527f5b3230305d204b42543732313a2057616c6c6574206973206e6f74206120686f604482015263363232b960e11b6064820152608401610ac0565b6001600160a01b038181166000908152600b602052604090205416158015611dae57506001600160a01b038181166000908152600b602052604090206001015416155b611e0f5760405162461bcd60e51b815260206004820152602c60248201527f5b3230315d204b42543732313a204b65792077616c6c6574732061726520616c60448201526b1c9958591e48199a5b1b195960a21b6064820152608401610ac0565b6001600160a01b03841615801590611e2f57506001600160a01b03831615155b611e8d5760405162461bcd60e51b815260206004820152602960248201527f5b3230325d204b42543732313a20446f6573206e6f7420666f6c6c6f77203078604482015268081cdd185b99185c9960ba1b6064820152608401610ac0565b826001600160a01b0316846001600160a01b031603611f145760405162461bcd60e51b815260206004820152603e60248201527f5b3230355d204b42543732313a204b65792077616c6c65742031206d7573742060448201527f626520646966666572656e74207468616e206b65792077616c6c6574203200006064820152608401610ac0565b806001600160a01b0316846001600160a01b031603611f9b5760405162461bcd60e51b815260206004820152603c60248201527f5b3230365d204b42543732313a204b65792077616c6c65742031206d7573742060448201527f626520646966666572656e74207468616e207468652073656e646572000000006064820152608401610ac0565b826001600160a01b0316816001600160a01b0316036120225760405162461bcd60e51b815260206004820152603c60248201527f5b3230375d204b42543732313a204b65792077616c6c65742032206d7573742060448201527f626520646966666572656e74207468616e207468652073656e646572000000006064820152608401610ac0565b6001600160a01b038481166000908152600c602052604090205416156120a35760405162461bcd60e51b815260206004820152603060248201527f5b3230335d204b42543732313a204b65792077616c6c6574203120697320616c60448201526f1c9958591e481c9959da5cdd195c995960821b6064820152608401610ac0565b6001600160a01b038381166000908152600d602052604090205416156121245760405162461bcd60e51b815260206004820152603060248201527f5b3230345d204b42543732313a204b65792077616c6c6574203220697320616c60448201526f1c9958591e481c9959da5cdd195c995960821b6064820152608401610ac0565b6040805180820182526001600160a01b0380871680835286821660208085018281528785166000818152600b8452888120975188549088166001600160a01b03199182161789559251600198890180549189169185169190911790558851808a018a52828152808501868152878352600c86528a832091518254908a169086161782555190890180549189169185169190911790558851808a018a52828152808501968752948152600d90935296909120915182549085169082161782559151930180549390921692169190911790557f5807519689a5040d7de09b89689f6b12321ddcee52699d8bb864f4363b8a422061221e83611559565b60405190815260200160405180910390a25060019392505050565b6001600160a01b038181166000908152600b602052604081205490911615801590610b0f5750506001600160a01b039081166000908152600b602052604090206001015416151590565b61228b6122fc565b6001600160a01b0381166122f05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ac0565b6122f981612ba4565b50565b600a546001600160a01b031633146115f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac0565b60006001600160e01b0319821663152a902d60e11b1480610b0f5750610b0f82612fb7565b6000818152600260205260409020546001600160a01b03166122f95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ac0565b6000610b0f601883612fdc565b60006123f2826113f8565b90506123fd81612239565b1561246f576001600160a01b0381166000908152600f60205260409020546124375760405162461bcd60e51b8152600401610ac0906148a8565b6001600160a01b0381166000908152600f602052604090205442111561246f5760405162461bcd60e51b8152600401610ac0906148fa565b6124798383612ffe565b6001600160a01b039081166000818152600f60208181526040808420600181018054601085528387209a9098168652988352908420959095559282529091529081905590915550565b3360006124ce836113f8565b9050806001600160a01b0316826001600160a01b03161480156124f557506124f581612239565b1561258f5761250581848661310e565b61258f5760405162461bcd60e51b815260206004820152604f60248201527f5b3130305d204b42543732313a2053656e64657220697320612073656375726560448201527f2077616c6c657420616e6420646f65736e2774206861766520617070726f766160648201526e36103337b9103a3432903a37b5b2b760891b608482015260a401610ac0565b61259a85858561321f565b806001600160a01b0316826001600160a01b0316036125ec576001600160a01b0381166000908152600e60205260408120818155600181019190915560020180546001600160a81b0319169055611bb6565b6001600160a01b0380821660009081526010602090815260408083209386168352929052205415611bb6576001600160a01b038082166000908152601060209081526040808320938616835292905220546001036126505761265081836000613250565b6001600160a01b0380821660009081526010602090815260408083209386168352929052908120805460019290612688908490614957565b90915550505050505050565b600061269f826113f8565b90506126af81600084600161331e565b6126b8826113f8565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4610e25816000846001613457565b6000611c05836001600160a01b0384166135b9565b610aff83838360405180602001604052806000815250611c3c565b6060610b0f6001600160a01b0383166014613608565b6001600160a01b0382166127dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac0565b6000818152600260205260409020546001600160a01b0316156128425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b61285060008383600161331e565b6000818152600260205260409020546001600160a01b0316156128b55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610e25600083836001613457565b336000818152600c60205260408120549091906001600160a01b0316612990576001600160a01b038181166000908152600d6020526040902054166129705760006129ac565b6001600160a01b038082166000908152600d6020526040902054166129ac565b6001600160a01b038082166000908152600c6020526040902054165b91505090565b600033816129be61292a565b6001600160a01b038181166000908152600b6020526040902054919250838116911614612a05576001600160a01b038082166000908152600b602052604090205416612a24565b6001600160a01b038082166000908152600b6020526040902060010154165b9250505090565b826001600160a01b0316612a3e826113f8565b6001600160a01b031614612a645760405162461bcd60e51b8152600401610ac09061496a565b6001600160a01b038216612ac65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ac0565b612ad3838383600161331e565b826001600160a01b0316612ae6826113f8565b6001600160a01b031614612b0c5760405162461bcd60e51b8152600401610ac09061496a565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610aff8383836001613457565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c05836001600160a01b0384166137a4565b33612c1581612239565b15612c87576001600160a01b0381166000908152600f6020526040902054612c4f5760405162461bcd60e51b8152600401610ac0906148a8565b6001600160a01b0381166000908152600f6020526040902054421115612c875760405162461bcd60e51b8152600401610ac0906148fa565b6124798383613897565b336000612c9d846113f8565b9050806001600160a01b0316826001600160a01b0316148015612cc45750612cc481612239565b15612d5d57612cd481858761310e565b612d5d5760405162461bcd60e51b815260206004820152604e60248201527f5b3130305d204b42543732313a204f776e65722069732061207365637572652060448201527f77616c6c657420616e6420646f65736e2774206861766520617070726f76616c60648201526d103337b9103a3432903a37b5b2b760911b608482015260a401610ac0565b612d69868686866138a2565b806001600160a01b0316826001600160a01b031603612dbb576001600160a01b0381166000908152600e60205260408120818155600181019190915560020180546001600160a81b0319169055612e5d565b6001600160a01b0380821660009081526010602090815260408083209386168352929052205415612e5d576001600160a01b03808216600090815260106020908152604080832093861683529290522054600103612e1f57612e1f81836000613250565b6001600160a01b0380821660009081526010602090815260408083209386168352929052908120805460019290612e57908490614957565b90915550505b505050505050565b60606000611c05836138d4565b606060168054610b24906144c0565b60606000612e8e8361392f565b600101905060008167ffffffffffffffff811115612eae57612eae6140bf565b6040519080825280601f01601f191660200182016040528015612ed8576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612ee257509392505050565b6127106001600160601b038216811015612f5357604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610ac0565b6001600160a01b038316612f7d57604051635b6cc80560e11b815260006004820152602401610ac0565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b60006001600160e01b0319821663780e9d6360e01b1480610b0f5750610b0f82613a07565b6001600160a01b03811660009081526001830160205260408120541515611c05565b6000613009826113f8565b9050806001600160a01b0316836001600160a01b0316036130765760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ac0565b336001600160a01b038216148061309257506130928133610a07565b6131045760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ac0565b610aff8383613a57565b6001600160a01b038381166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015493841690820152600160a01b90920460ff161580156060840152909190613171576001915050611c05565b805115801561318257506020810151155b8015613199575060408101516001600160a01b0316155b806131b057508051158015906131b0575080518414155b806131cd5750600081602001511180156131cd5750428160200151105b80613205575060408101516001600160a01b0316158015906132055750826001600160a01b031681604001516001600160a01b031614155b15613214576000915050611c05565b506001949350505050565b6132293382613ac5565b6132455760405162461bcd60e51b8152600401610ac0906149af565b610aff838383612a2b565b816001600160a01b0316836001600160a01b0316036132b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61332a84848484613b43565b60018111156133995760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610ac0565b816001600160a01b0385166133f5576133f081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613418565b836001600160a01b0316856001600160a01b031614613418576134188582613bcb565b6001600160a01b0384166134345761342f81613c68565b611bb6565b846001600160a01b0316846001600160a01b031614611bb657611bb68482613d17565b6001600160a01b0384161561354d5761346f84612239565b8015613481575061347f84611559565b155b156134fa576001600160a01b038085166000818152600b60208181526040808420805487168552600c835281852080546001600160a01b03199081168255600191820180548216905581830180549099168752600d85529286208054841681550180548316905594909352528154811690915581541690555b61350384611559565b60000361354d57604080516001600160a01b0386168152602081018490527fa9414721b1240ec5c4c6d0f51cf9315b9ae71bcd5a654ce3d88a1534878893e0910160405180910390a15b6001600160a01b0383161580159061356c57508061356a84611559565b145b15610c4457604080516001600160a01b0385168152602081018490527f1841f6b59753ea5f4490c3d74fe8b30c348b0a8f7c3b5ea14ae72e52a04060a4910160405180910390a150505050565b600081815260018301602052604081205461360057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b0f565b506000610b0f565b6060600061361783600261455d565b6136229060026146c3565b67ffffffffffffffff81111561363a5761363a6140bf565b6040519080825280601f01601f191660200182016040528015613664576020820181803683370190505b509050600360fc1b8160008151811061367f5761367f614531565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106136ae576136ae614531565b60200101906001600160f81b031916908160001a90535060006136d284600261455d565b6136dd9060016146c3565b90505b6001811115613755576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061371157613711614531565b1a60f81b82828151811061372757613727614531565b60200101906001600160f81b031916908160001a90535060049490941c9361374e816149fc565b90506136e0565b508315611c055760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac0565b6000818152600183016020526040812054801561388d5760006137c8600183614957565b85549091506000906137dc90600190614957565b90508082146138415760008660000182815481106137fc576137fc614531565b906000526020600020015490508087600001848154811061381f5761381f614531565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061385257613852614a13565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b0f565b6000915050610b0f565b610e25338383613250565b6138ac3383613ac5565b6138c85760405162461bcd60e51b8152600401610ac0906149af565b610c4484848484613d5b565b60608160000180548060200260200160405190810160405280929190818152602001828054801561197a57602002820191906000526020600020905b8154815260200190600101908083116139105750505050509050919050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061396e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061399a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106139b857662386f26fc10000830492506010015b6305f5e10083106139d0576305f5e100830492506008015b61271083106139e457612710830492506004015b606483106139f6576064830492506002015b600a8310610b0f5760010192915050565b60006001600160e01b031982166380ac58cd60e01b1480613a3857506001600160e01b03198216635b5e139f60e01b145b80610b0f57506301ffc9a760e01b6001600160e01b0319831614610b0f565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613a8c826113f8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080613ad1836113f8565b9050806001600160a01b0316846001600160a01b03161480613b1857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806117c05750836001600160a01b0316613b3184610ba7565b6001600160a01b031614949350505050565b6001811115610c44576001600160a01b03841615613b89576001600160a01b03841660009081526003602052604081208054839290613b83908490614957565b90915550505b6001600160a01b03831615610c44576001600160a01b03831660009081526003602052604081208054839290613bc09084906146c3565b909155505050505050565b60006001613bd884611559565b613be29190614957565b600083815260076020526040902054909150808214613c35576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613c7a90600190614957565b60008381526009602052604081205460088054939450909284908110613ca257613ca2614531565b906000526020600020015490508060088381548110613cc357613cc3614531565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613cfb57613cfb614a13565b6001900381819060005260206000200160009055905550505050565b6000613d2283611559565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b613d66848484612a2b565b613d7284848484613d8e565b610c445760405162461bcd60e51b8152600401610ac090614a29565b60006001600160a01b0384163b15613e8457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613dd2903390899088908890600401614a7b565b6020604051808303816000875af1925050508015613e0d575060408051601f3d908101601f19168201909252613e0a91810190614ab8565b60015b613e6a573d808015613e3b576040519150601f19603f3d011682016040523d82523d6000602084013e613e40565b606091505b508051600003613e625760405162461bcd60e51b8152600401610ac090614a29565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117c0565b5060016117c0565b6001600160a01b03811681146122f957600080fd5b60008060408385031215613eb457600080fd5b823591506020830135613ec681613e8c565b809150509250929050565b6001600160e01b0319811681146122f957600080fd5b600060208284031215613ef957600080fd5b8135611c0581613ed1565b60005b83811015613f1f578181015183820152602001613f07565b50506000910152565b60008151808452613f40816020860160208601613f04565b601f01601f19169290920160200192915050565b602081526000611c056020830184613f28565b600060208284031215613f7957600080fd5b5035919050565b60008060408385031215613f9357600080fd5b8235613f9e81613e8c565b946020939093013593505050565b600060208284031215613fbe57600080fd5b8135611c0581613e8c565b60008083601f840112613fdb57600080fd5b50813567ffffffffffffffff811115613ff357600080fd5b602083019150836020828501011115610ed057600080fd5b60008060008060006080868803121561402357600080fd5b853561402e81613e8c565b9450602086013561403e81613e8c565b935060408601359250606086013567ffffffffffffffff81111561406157600080fd5b61406d88828901613fc9565b969995985093965092949392505050565b60008060006060848603121561409357600080fd5b833561409e81613e8c565b925060208401356140ae81613e8c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156140fe576140fe6140bf565b604052919050565b6000602080838503121561411957600080fd5b823567ffffffffffffffff8082111561413157600080fd5b818501915085601f83011261414557600080fd5b813581811115614157576141576140bf565b8060051b91506141688483016140d5565b818152918301840191848101908884111561418257600080fd5b938501935b838510156141a057843582529385019390850190614187565b98975050505050505050565b600080604083850312156141bf57600080fd5b50508035926020909101359150565b600080602083850312156141e157600080fd5b823567ffffffffffffffff808211156141f957600080fd5b818501915085601f83011261420d57600080fd5b81358181111561421c57600080fd5b8660208260051b850101111561423157600080fd5b60209290920196919550909350505050565b6000806040838503121561425657600080fd5b823561426181613e8c565b91506020830135613ec681613e8c565b80151581146122f957600080fd5b6000806000806080858703121561429557600080fd5b843593506020850135925060408501356142ae81613e8c565b915060608501356142be81614271565b939692955090935050565b6000806000604084860312156142de57600080fd5b83359250602084013567ffffffffffffffff8111156142fc57600080fd5b61430886828701613fc9565b9497909650939450505050565b6000806000806040858703121561432b57600080fd5b843567ffffffffffffffff8082111561434357600080fd5b61434f88838901613fc9565b9096509450602087013591508082111561436857600080fd5b5061437587828801613fc9565b95989497509550505050565b6000806040838503121561439457600080fd5b823561439f81613e8c565b91506020830135613ec681614271565b600080600080608085870312156143c557600080fd5b84356143d081613e8c565b93506020858101356143e181613e8c565b935060408601359250606086013567ffffffffffffffff8082111561440557600080fd5b818801915088601f83011261441957600080fd5b81358181111561442b5761442b6140bf565b61443d601f8201601f191685016140d5565b9150808252898482850101111561445357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156144b45783516001600160a01b03168352928401929184019160010161448f565b50909695505050505050565b600181811c908216806144d457607f821691505b6020821081036144f457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f4f70657261746f72206973206e6f7420616c6c6f776564000000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b0f57610b0f614547565b60008261459157634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156145a857600080fd5b8151611c0581614271565b6000602082840312156145c557600080fd5b8151611c0581613e8c565b7f4d696e7420686173206661696c65642c2073656e64657220686173206e6f742081527f617070726f766564207468652063757272656e7420636f6e747261637420617360208201527f2061207370656e64657220666f722074686520746f6b656e732e20417070726f60408201526c03b32b21020b2323932b9b99d1609d1b60608201526000835161466a81606d850160208801613f04565b730161021b7b73a3930b1ba1020b2323932b9b99d160651b606d91840191820152835161469e816081840160208801613f04565b01608101949350505050565b6000600182016146bc576146bc614547565b5060010190565b80820180821115610b0f57610b0f614547565b601f821115610aff576000816000526020600020601f850160051c810160208610156146ff5750805b601f850160051c820191505b81811015612e5d5782815560010161470b565b67ffffffffffffffff831115614736576147366140bf565b61474a8361474483546144c0565b836146d6565b6000601f84116001811461477e57600085156147665750838201355b600019600387901b1c1916600186901b178355611bb6565b600083815260209020601f19861690835b828110156147af578685013582556020948501946001909201910161478f565b50868210156147cc5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600080855461481b816144c0565b60018281168015614833576001811461484857614877565b60ff1984168752821515830287019450614877565b8960005260208060002060005b8581101561486e5781548a820152908401908201614855565b50505082870194505b50505050845161488b818360208901613f04565b845191019061489e818360208801613f04565b0195945050505050565b60208082526032908201527f5b3130315d204b42543732313a205370656e64696e67206f662066756e64732060408201527134b9903737ba1030baba3437b934bd32b21760711b606082015260800190565b60208082526038908201527f5b3130325d204b42543732313a2054696d65206861732065787069726564206660408201527f6f7220746865207370656e64696e67206f662066756e64730000000000000000606082015260800190565b81810381811115610b0f57610b0f614547565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b600081614a0b57614a0b614547565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614aae90830184613f28565b9695505050505050565b600060208284031215614aca57600080fd5b8151611c0581613ed156fea26469706673582212204f2d6bfea0ee1f94a180e3155a75c5429eb9fc8f899e5e33098a22c008dc3b8364736f6c6343000818003368747470733a2f2f726973696e672e67656e75696e65756e646561642e636f6d2f6170692f6e66742f000000000000000000000000209e639a0ec166ac7a1a4ba41968fa967db30221

Deployed Bytecode

0x60806040526004361061028b5760003560e01c8063715018a61161015a578063a4d54b1a116100c1578063c87b56dd1161007a578063c87b56dd1461098c578063d8d045b4146109ac578063e54e193c146109cc578063e985e9c5146109ec578063ecbb669f14610a35578063f2fde38b14610a5557600080fd5b8063a4d54b1a146108e0578063ae9805ee14610900578063b1adf02914610920578063b24f2d3914610935578063b88d4fde1461094a578063bf46e2531461096a57600080fd5b80638a084f24116101135780638a084f241461082d5780638da5cb5b1461084d57806395d89b411461086b5780639abb7c9114610880578063a066c42a146108a0578063a22cb465146108c057600080fd5b8063715018a61461077e5780637278c98f146107935780637c9dc1a7146107b85780637d1a5bd1146107d8578063800e9c48146107ed5780638023e7ff1461080d57600080fd5b80632a440d98116101fe57806345e8a3df116101b757806345e8a3df146106cf5780634f6ccce7146106e9578063512cafc2146107095780636352211e14610729578063646ec3d81461074957806370a082311461075e57600080fd5b80632a440d98146105145780632a55205a146105ea5780632f745c59146106295780633cf7b80a146106495780633e794dc01461066957806342842e0e146106af57600080fd5b80630e020296116102505780630e02029614610368578063150b7a02146103f357806318160ddd1461043857806320fb3be31461045757806323b872dd146104d457806327da45c9146104f457600080fd5b8062f714ce1461029757806301ffc9a7146102b957806306fdde03146102ee578063081812fc14610310578063095ea7b31461034857600080fd5b3661029257005b600080fd5b3480156102a357600080fd5b506102b76102b2366004613ea1565b610a75565b005b3480156102c557600080fd5b506102d96102d4366004613ee7565b610b04565b60405190151581526020015b60405180910390f35b3480156102fa57600080fd5b50610303610b15565b6040516102e59190613f54565b34801561031c57600080fd5b5061033061032b366004613f67565b610ba7565b6040516001600160a01b0390911681526020016102e5565b34801561035457600080fd5b506102b7610363366004613f80565b610bce565b34801561037457600080fd5b506103cc610383366004613fac565b604080518082018252600080825260209182018190526001600160a01b039384168152600b82528290208251808401909352805484168352600101549092169181019190915290565b6040805182516001600160a01b0390811682526020938401511692810192909252016102e5565b3480156103ff57600080fd5b5061041f61040e36600461400b565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102e5565b34801561044457600080fd5b506008545b6040519081526020016102e5565b34801561046357600080fd5b506104b9610472366004613fac565b6040805180820190915260008082526020820152506001600160a01b03166000908152600f6020908152604091829020825180840190935280548352600101549082015290565b604080518251815260209283015192810192909252016102e5565b3480156104e057600080fd5b506102b76104ef36600461407e565b610bff565b34801561050057600080fd5b506102b761050f366004614106565b610c4a565b34801561052057600080fd5b506105ac61052f366004613fac565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b039081166000908152600e60209081526040918290208251608081018452815481526001820154928101929092526002015492831691810191909152600160a01b90910460ff161515606082015290565b6040516102e5919081518152602080830151908201526040808301516001600160a01b03169082015260609182015115159181019190915260800190565b3480156105f657600080fd5b5061060a6106053660046141ac565b610e29565b604080516001600160a01b0390931683526020830191909152016102e5565b34801561063557600080fd5b50610449610644366004613f80565b610ed7565b34801561065557600080fd5b506102b76106643660046141ce565b610f6d565b34801561067557600080fd5b50610449610684366004614243565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b3480156106bb57600080fd5b506102b76106ca36600461407e565b610fbb565b3480156106db57600080fd5b506013546102d99060ff1681565b3480156106f557600080fd5b50610449610704366004613f67565b611000565b34801561071557600080fd5b506102b7610724366004614106565b611093565b34801561073557600080fd5b50610330610744366004613f67565b6113f8565b34801561075557600080fd5b506102d9611458565b34801561076a57600080fd5b50610449610779366004613fac565b611559565b34801561078a57600080fd5b506102b76115df565b34801561079f57600080fd5b506013546103309061010090046001600160a01b031681565b3480156107c457600080fd5b506102d96107d336600461427f565b6115f3565b3480156107e457600080fd5b506102d96117c8565b3480156107f957600080fd5b50610303610808366004613f67565b6118e4565b34801561081957600080fd5b506102b76108283660046141ce565b611986565b34801561083957600080fd5b506102b76108483660046142c9565b6119d4565b34801561085957600080fd5b50600a546001600160a01b0316610330565b34801561087757600080fd5b50610303611a99565b34801561088c57600080fd5b506102d961089b3660046141ac565b611aa8565b3480156108ac57600080fd5b506102b76108bb366004614315565b611b93565b3480156108cc57600080fd5b506102b76108db366004614381565b611bbd565b3480156108ec57600080fd5b506102d96108fb366004613f67565b611bee565b34801561090c57600080fd5b50601454610330906001600160a01b031681565b34801561092c57600080fd5b506102b7611c0c565b34801561094157600080fd5b5061060a611c23565b34801561095657600080fd5b506102b76109653660046143af565b611c3c565b34801561097657600080fd5b5061097f611c82565b6040516102e59190614473565b34801561099857600080fd5b506103036109a7366004613f67565b611c93565b3480156109b857600080fd5b506102b76109c7366004613f80565b611cf3565b3480156109d857600080fd5b506102d96109e7366004614243565b611d05565b3480156109f857600080fd5b506102d9610a07366004614243565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4157600080fd5b506102d9610a50366004613fac565b612239565b348015610a6157600080fd5b506102b7610a70366004613fac565b612283565b610a7d6122fc565b47821115610ac95760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610aff573d6000803e3d6000fd5b505050565b6000610b0f82612356565b92915050565b606060008054610b24906144c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b50906144c0565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb28261237b565b506000908152600460205260409020546001600160a01b031690565b81610bd8816123da565b15610bf55760405162461bcd60e51b8152600401610ac0906144fa565b610aff83836123e7565b826001600160a01b038116331480610c1d5750610c1b336123da565b155b610c395760405162461bcd60e51b8152600401610ac0906144fa565b610c448484846124c2565b50505050565b60135460ff161515600114610ca15760405162461bcd60e51b815260206004820152601960248201527f5377697463684261636b206973206e6f7420656e61626c6564000000000000006044820152606401610ac0565b60005b8151811015610d6c576000828281518110610cc157610cc1614531565b602002602001015190506000610cd6826113f8565b90506001600160a01b0381163314610d625760405162461bcd60e51b815260206004820152604360248201527f5377697463684261636b20686173206661696c65642c2073656e64657220697360448201527f206e6f742074686520686f6c646572206f66207468652077686f6c6520746f6b606482015262656e7360e81b608482015260a401610ac0565b5050600101610ca4565b5060005b8151811015610e25576000828281518110610d8d57610d8d614531565b60200260200101519050610da081612694565b601454604051635c46a7ef60e11b81523060048201523360248201526044810183905260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b158015610e0057600080fd5b505af1158015610e14573d6000803e3d6000fd5b505060019093019250610d70915050565b5050565b60008281526012602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e9e5750604080518082019091526011546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ebd906001600160601b03168761455d565b610ec79190614574565b91519350909150505b9250929050565b6000610ee283611559565b8210610f445760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ac0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610f756122fc565b60005b81811015610aff57610fb2838383818110610f9557610f95614531565b9050602002016020810190610faa9190613fac565b601890612741565b50600101610f78565b826001600160a01b038116331480610fd95750610fd7336123da565b155b610ff55760405162461bcd60e51b8152600401610ac0906144fa565b610c44848484612756565b600061100b60085490565b821061106e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ac0565b6008828154811061108157611081614531565b90600052602060002001549050919050565b60145460405163e985e9c560e01b81523360048201523060248201526000916001600160a01b03169063e985e9c590604401602060405180830381865afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111069190614596565b905060005b825181101561123057600083828151811061112857611128614531565b60209081029190910101516014546040516331a9108f60e11b8152600481018390529192506000916001600160a01b0390911690636352211e90602401602060405180830381865afa158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a691906145b3565b90506001600160a01b03811633146112265760405162461bcd60e51b815260206004820152603d60248201527f4d696e7420686173206661696c65642c2073656e646572206973206e6f74207460448201527f686520686f6c646572206f66207468652077686f6c6520746f6b656e730000006064820152608401610ac0565b505060010161110b565b50806113415760005b825181101561133f57600083828151811061125657611256614531565b602090810291909101015160145460405163020604bf60e21b8152600481018390529192506000916001600160a01b039091169063081812fc90602401602060405180830381865afa1580156112b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d491906145b3565b90506001600160a01b038116308114906112ed90612771565b6112f630612771565b6040516020016113079291906145d0565b604051602081830303815290604052906113345760405162461bcd60e51b8152600401610ac09190613f54565b505050600101611239565b505b60005b8251811015610aff57600083828151811061136157611361614531565b6020908102919091010151601454604051635c46a7ef60e11b81523360048201523060248201526044810183905260806064820152600060848201529192506001600160a01b03169063b88d4fde9060a401600060405180830381600087803b1580156113cd57600080fd5b505af11580156113e1573d6000803e3d6000fd5b505050506113ef3382612787565b50600101611344565b6000818152600260205260408120546001600160a01b031680610b0f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ac0565b60008061146361292a565b9050600061146f6129b2565b90506001600160a01b0382166114d75760405162461bcd60e51b815260206004820152602760248201527f5b3430305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b60006114e283611559565b905060005b81816114f2816146aa565b9250101561151a576000611507856000610ed7565b9050611514858583612a2b565b506114e7565b6040516001600160a01b038516907f25a2abf52609ac61e3adb8b5b4d53d328d7abb17b8aee9b7b463f4ebedbbca1d90600090a2600194505050505090565b60006001600160a01b0382166115c35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ac0565b506001600160a01b031660009081526003602052604090205490565b6115e76122fc565b6115f16000612ba4565b565b6000806115fe61292a565b90506001600160a01b0381166116665760405162461bcd60e51b815260206004820152602760248201527f5b3530305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b85156116dc576000611677876113f8565b9050816001600160a01b0316816001600160a01b0316146116da5760405162461bcd60e51b815260206004820152601e60248201527f5b3530315d204b42543732313a20496e76616c696420746f6b656e49642e00006044820152606401610ac0565b505b600085116116eb5760006116f5565b6116f585426146c3565b604080516080808201835289825260208083018581526001600160a01b038a81168587018181528b151560608089018281528c86166000818152600e8a528c90209a518b55965160018b015592516002909901805493511515600160a01b026001600160a81b031990941699909516989098179190911790925586519283529282018d9052948101869052928301528101919091529095507f69fcc0e8657da8baee763cbf800b20425094596b4de6dcd49c190d9eed61bdb79060a00160405180910390a160019150505b949350505050565b6000806117d361292a565b90506001600160a01b03811661183b5760405162461bcd60e51b815260206004820152602760248201527f5b3330305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b6001600160a01b038082166000818152600b60208181526040808420805487168552600c835281852080546001600160a01b03199081168255600191820180548216905581830180549099168752600d855283872080548216815590910180548216905586865293909252815483169091558454909116909355915190917f3936b7c77a600cb259c805bd725ee2098b2c99c27a76744d697003aaa5dbc93191a2600191505090565b6000818152601760205260409020805460609190611901906144c0565b80601f016020809104026020016040519081016040528092919081815260200182805461192d906144c0565b801561197a5780601f1061194f5761010080835404028352916020019161197a565b820191906000526020600020905b81548152906001019060200180831161195d57829003601f168201915b50505050509050919050565b61198e6122fc565b60005b81811015610aff576119cb8383838181106119ae576119ae614531565b90506020020160208101906119c39190613fac565b601890612bf6565b50600101611991565b336119de846113f8565b6001600160a01b031614611a405760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e6f7420746865206f776e6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610ac0565b6000838152601760205260409020611a5982848361471e565b50827f0a6ced67ec5a9498f6befbe10293edc7ed755e9dedc774094b3b91dc0dac96c88383604051611a8c9291906147de565b60405180910390a2505050565b606060018054610b24906144c0565b600080611ab361292a565b90506001600160a01b038116611b1b5760405162461bcd60e51b815260206004820152602760248201527f5b3630305d204b42543732313a204b657920617574686f72697a6174696f6e206044820152666661696c75726560c81b6064820152608401610ac0565b611b2584426146c3565b6001600160a01b0382166000818152600f60209081526040918290208481556001018790558151928352820183905281018590529094507f5aa44865b966bd9a28e3e814cea0105560fc32a8b8da3e2ce3424e518ea361139060600160405180910390a15060019392505050565b611b9b6122fc565b6015611ba884868361471e565b506016611bb682848361471e565b5050505050565b81611bc7816123da565b15611be45760405162461bcd60e51b8152600401610ac0906144fa565b610aff8383612c0b565b600080611bfa836113f8565b9050611c0581612239565b9392505050565b611c146122fc565b6013805460ff19166001179055565b600080611c336000612710610e29565b90939092509050565b836001600160a01b038116331480611c5a5750611c58336123da565b155b611c765760405162461bcd60e51b8152600401610ac0906144fa565b611bb685858585612c91565b6060611c8e6018612e65565b905090565b60606000611c9f612e72565b90506000815111611cbf5760405180602001604052806000815250611c05565b6015611cca84612e81565b82604051602001611cdd9392919061480d565b6040516020818303038152906040529392505050565b611cfb6122fc565b610e258282612f14565b60003381611d1282611559565b11611d6b5760405162461bcd60e51b8152602060048201526024808201527f5b3230305d204b42543732313a2057616c6c6574206973206e6f74206120686f604482015263363232b960e11b6064820152608401610ac0565b6001600160a01b038181166000908152600b602052604090205416158015611dae57506001600160a01b038181166000908152600b602052604090206001015416155b611e0f5760405162461bcd60e51b815260206004820152602c60248201527f5b3230315d204b42543732313a204b65792077616c6c6574732061726520616c60448201526b1c9958591e48199a5b1b195960a21b6064820152608401610ac0565b6001600160a01b03841615801590611e2f57506001600160a01b03831615155b611e8d5760405162461bcd60e51b815260206004820152602960248201527f5b3230325d204b42543732313a20446f6573206e6f7420666f6c6c6f77203078604482015268081cdd185b99185c9960ba1b6064820152608401610ac0565b826001600160a01b0316846001600160a01b031603611f145760405162461bcd60e51b815260206004820152603e60248201527f5b3230355d204b42543732313a204b65792077616c6c65742031206d7573742060448201527f626520646966666572656e74207468616e206b65792077616c6c6574203200006064820152608401610ac0565b806001600160a01b0316846001600160a01b031603611f9b5760405162461bcd60e51b815260206004820152603c60248201527f5b3230365d204b42543732313a204b65792077616c6c65742031206d7573742060448201527f626520646966666572656e74207468616e207468652073656e646572000000006064820152608401610ac0565b826001600160a01b0316816001600160a01b0316036120225760405162461bcd60e51b815260206004820152603c60248201527f5b3230375d204b42543732313a204b65792077616c6c65742032206d7573742060448201527f626520646966666572656e74207468616e207468652073656e646572000000006064820152608401610ac0565b6001600160a01b038481166000908152600c602052604090205416156120a35760405162461bcd60e51b815260206004820152603060248201527f5b3230335d204b42543732313a204b65792077616c6c6574203120697320616c60448201526f1c9958591e481c9959da5cdd195c995960821b6064820152608401610ac0565b6001600160a01b038381166000908152600d602052604090205416156121245760405162461bcd60e51b815260206004820152603060248201527f5b3230345d204b42543732313a204b65792077616c6c6574203220697320616c60448201526f1c9958591e481c9959da5cdd195c995960821b6064820152608401610ac0565b6040805180820182526001600160a01b0380871680835286821660208085018281528785166000818152600b8452888120975188549088166001600160a01b03199182161789559251600198890180549189169185169190911790558851808a018a52828152808501868152878352600c86528a832091518254908a169086161782555190890180549189169185169190911790558851808a018a52828152808501968752948152600d90935296909120915182549085169082161782559151930180549390921692169190911790557f5807519689a5040d7de09b89689f6b12321ddcee52699d8bb864f4363b8a422061221e83611559565b60405190815260200160405180910390a25060019392505050565b6001600160a01b038181166000908152600b602052604081205490911615801590610b0f5750506001600160a01b039081166000908152600b602052604090206001015416151590565b61228b6122fc565b6001600160a01b0381166122f05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ac0565b6122f981612ba4565b50565b600a546001600160a01b031633146115f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac0565b60006001600160e01b0319821663152a902d60e11b1480610b0f5750610b0f82612fb7565b6000818152600260205260409020546001600160a01b03166122f95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ac0565b6000610b0f601883612fdc565b60006123f2826113f8565b90506123fd81612239565b1561246f576001600160a01b0381166000908152600f60205260409020546124375760405162461bcd60e51b8152600401610ac0906148a8565b6001600160a01b0381166000908152600f602052604090205442111561246f5760405162461bcd60e51b8152600401610ac0906148fa565b6124798383612ffe565b6001600160a01b039081166000818152600f60208181526040808420600181018054601085528387209a9098168652988352908420959095559282529091529081905590915550565b3360006124ce836113f8565b9050806001600160a01b0316826001600160a01b03161480156124f557506124f581612239565b1561258f5761250581848661310e565b61258f5760405162461bcd60e51b815260206004820152604f60248201527f5b3130305d204b42543732313a2053656e64657220697320612073656375726560448201527f2077616c6c657420616e6420646f65736e2774206861766520617070726f766160648201526e36103337b9103a3432903a37b5b2b760891b608482015260a401610ac0565b61259a85858561321f565b806001600160a01b0316826001600160a01b0316036125ec576001600160a01b0381166000908152600e60205260408120818155600181019190915560020180546001600160a81b0319169055611bb6565b6001600160a01b0380821660009081526010602090815260408083209386168352929052205415611bb6576001600160a01b038082166000908152601060209081526040808320938616835292905220546001036126505761265081836000613250565b6001600160a01b0380821660009081526010602090815260408083209386168352929052908120805460019290612688908490614957565b90915550505050505050565b600061269f826113f8565b90506126af81600084600161331e565b6126b8826113f8565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4610e25816000846001613457565b6000611c05836001600160a01b0384166135b9565b610aff83838360405180602001604052806000815250611c3c565b6060610b0f6001600160a01b0383166014613608565b6001600160a01b0382166127dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac0565b6000818152600260205260409020546001600160a01b0316156128425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b61285060008383600161331e565b6000818152600260205260409020546001600160a01b0316156128b55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610e25600083836001613457565b336000818152600c60205260408120549091906001600160a01b0316612990576001600160a01b038181166000908152600d6020526040902054166129705760006129ac565b6001600160a01b038082166000908152600d6020526040902054166129ac565b6001600160a01b038082166000908152600c6020526040902054165b91505090565b600033816129be61292a565b6001600160a01b038181166000908152600b6020526040902054919250838116911614612a05576001600160a01b038082166000908152600b602052604090205416612a24565b6001600160a01b038082166000908152600b6020526040902060010154165b9250505090565b826001600160a01b0316612a3e826113f8565b6001600160a01b031614612a645760405162461bcd60e51b8152600401610ac09061496a565b6001600160a01b038216612ac65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ac0565b612ad3838383600161331e565b826001600160a01b0316612ae6826113f8565b6001600160a01b031614612b0c5760405162461bcd60e51b8152600401610ac09061496a565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610aff8383836001613457565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c05836001600160a01b0384166137a4565b33612c1581612239565b15612c87576001600160a01b0381166000908152600f6020526040902054612c4f5760405162461bcd60e51b8152600401610ac0906148a8565b6001600160a01b0381166000908152600f6020526040902054421115612c875760405162461bcd60e51b8152600401610ac0906148fa565b6124798383613897565b336000612c9d846113f8565b9050806001600160a01b0316826001600160a01b0316148015612cc45750612cc481612239565b15612d5d57612cd481858761310e565b612d5d5760405162461bcd60e51b815260206004820152604e60248201527f5b3130305d204b42543732313a204f776e65722069732061207365637572652060448201527f77616c6c657420616e6420646f65736e2774206861766520617070726f76616c60648201526d103337b9103a3432903a37b5b2b760911b608482015260a401610ac0565b612d69868686866138a2565b806001600160a01b0316826001600160a01b031603612dbb576001600160a01b0381166000908152600e60205260408120818155600181019190915560020180546001600160a81b0319169055612e5d565b6001600160a01b0380821660009081526010602090815260408083209386168352929052205415612e5d576001600160a01b03808216600090815260106020908152604080832093861683529290522054600103612e1f57612e1f81836000613250565b6001600160a01b0380821660009081526010602090815260408083209386168352929052908120805460019290612e57908490614957565b90915550505b505050505050565b60606000611c05836138d4565b606060168054610b24906144c0565b60606000612e8e8361392f565b600101905060008167ffffffffffffffff811115612eae57612eae6140bf565b6040519080825280601f01601f191660200182016040528015612ed8576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612ee257509392505050565b6127106001600160601b038216811015612f5357604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610ac0565b6001600160a01b038316612f7d57604051635b6cc80560e11b815260006004820152602401610ac0565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b60006001600160e01b0319821663780e9d6360e01b1480610b0f5750610b0f82613a07565b6001600160a01b03811660009081526001830160205260408120541515611c05565b6000613009826113f8565b9050806001600160a01b0316836001600160a01b0316036130765760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ac0565b336001600160a01b038216148061309257506130928133610a07565b6131045760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ac0565b610aff8383613a57565b6001600160a01b038381166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015493841690820152600160a01b90920460ff161580156060840152909190613171576001915050611c05565b805115801561318257506020810151155b8015613199575060408101516001600160a01b0316155b806131b057508051158015906131b0575080518414155b806131cd5750600081602001511180156131cd5750428160200151105b80613205575060408101516001600160a01b0316158015906132055750826001600160a01b031681604001516001600160a01b031614155b15613214576000915050611c05565b506001949350505050565b6132293382613ac5565b6132455760405162461bcd60e51b8152600401610ac0906149af565b610aff838383612a2b565b816001600160a01b0316836001600160a01b0316036132b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61332a84848484613b43565b60018111156133995760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610ac0565b816001600160a01b0385166133f5576133f081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613418565b836001600160a01b0316856001600160a01b031614613418576134188582613bcb565b6001600160a01b0384166134345761342f81613c68565b611bb6565b846001600160a01b0316846001600160a01b031614611bb657611bb68482613d17565b6001600160a01b0384161561354d5761346f84612239565b8015613481575061347f84611559565b155b156134fa576001600160a01b038085166000818152600b60208181526040808420805487168552600c835281852080546001600160a01b03199081168255600191820180548216905581830180549099168752600d85529286208054841681550180548316905594909352528154811690915581541690555b61350384611559565b60000361354d57604080516001600160a01b0386168152602081018490527fa9414721b1240ec5c4c6d0f51cf9315b9ae71bcd5a654ce3d88a1534878893e0910160405180910390a15b6001600160a01b0383161580159061356c57508061356a84611559565b145b15610c4457604080516001600160a01b0385168152602081018490527f1841f6b59753ea5f4490c3d74fe8b30c348b0a8f7c3b5ea14ae72e52a04060a4910160405180910390a150505050565b600081815260018301602052604081205461360057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b0f565b506000610b0f565b6060600061361783600261455d565b6136229060026146c3565b67ffffffffffffffff81111561363a5761363a6140bf565b6040519080825280601f01601f191660200182016040528015613664576020820181803683370190505b509050600360fc1b8160008151811061367f5761367f614531565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106136ae576136ae614531565b60200101906001600160f81b031916908160001a90535060006136d284600261455d565b6136dd9060016146c3565b90505b6001811115613755576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061371157613711614531565b1a60f81b82828151811061372757613727614531565b60200101906001600160f81b031916908160001a90535060049490941c9361374e816149fc565b90506136e0565b508315611c055760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac0565b6000818152600183016020526040812054801561388d5760006137c8600183614957565b85549091506000906137dc90600190614957565b90508082146138415760008660000182815481106137fc576137fc614531565b906000526020600020015490508087600001848154811061381f5761381f614531565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061385257613852614a13565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b0f565b6000915050610b0f565b610e25338383613250565b6138ac3383613ac5565b6138c85760405162461bcd60e51b8152600401610ac0906149af565b610c4484848484613d5b565b60608160000180548060200260200160405190810160405280929190818152602001828054801561197a57602002820191906000526020600020905b8154815260200190600101908083116139105750505050509050919050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061396e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061399a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106139b857662386f26fc10000830492506010015b6305f5e10083106139d0576305f5e100830492506008015b61271083106139e457612710830492506004015b606483106139f6576064830492506002015b600a8310610b0f5760010192915050565b60006001600160e01b031982166380ac58cd60e01b1480613a3857506001600160e01b03198216635b5e139f60e01b145b80610b0f57506301ffc9a760e01b6001600160e01b0319831614610b0f565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613a8c826113f8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080613ad1836113f8565b9050806001600160a01b0316846001600160a01b03161480613b1857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806117c05750836001600160a01b0316613b3184610ba7565b6001600160a01b031614949350505050565b6001811115610c44576001600160a01b03841615613b89576001600160a01b03841660009081526003602052604081208054839290613b83908490614957565b90915550505b6001600160a01b03831615610c44576001600160a01b03831660009081526003602052604081208054839290613bc09084906146c3565b909155505050505050565b60006001613bd884611559565b613be29190614957565b600083815260076020526040902054909150808214613c35576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613c7a90600190614957565b60008381526009602052604081205460088054939450909284908110613ca257613ca2614531565b906000526020600020015490508060088381548110613cc357613cc3614531565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613cfb57613cfb614a13565b6001900381819060005260206000200160009055905550505050565b6000613d2283611559565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b613d66848484612a2b565b613d7284848484613d8e565b610c445760405162461bcd60e51b8152600401610ac090614a29565b60006001600160a01b0384163b15613e8457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613dd2903390899088908890600401614a7b565b6020604051808303816000875af1925050508015613e0d575060408051601f3d908101601f19168201909252613e0a91810190614ab8565b60015b613e6a573d808015613e3b576040519150601f19603f3d011682016040523d82523d6000602084013e613e40565b606091505b508051600003613e625760405162461bcd60e51b8152600401610ac090614a29565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117c0565b5060016117c0565b6001600160a01b03811681146122f957600080fd5b60008060408385031215613eb457600080fd5b823591506020830135613ec681613e8c565b809150509250929050565b6001600160e01b0319811681146122f957600080fd5b600060208284031215613ef957600080fd5b8135611c0581613ed1565b60005b83811015613f1f578181015183820152602001613f07565b50506000910152565b60008151808452613f40816020860160208601613f04565b601f01601f19169290920160200192915050565b602081526000611c056020830184613f28565b600060208284031215613f7957600080fd5b5035919050565b60008060408385031215613f9357600080fd5b8235613f9e81613e8c565b946020939093013593505050565b600060208284031215613fbe57600080fd5b8135611c0581613e8c565b60008083601f840112613fdb57600080fd5b50813567ffffffffffffffff811115613ff357600080fd5b602083019150836020828501011115610ed057600080fd5b60008060008060006080868803121561402357600080fd5b853561402e81613e8c565b9450602086013561403e81613e8c565b935060408601359250606086013567ffffffffffffffff81111561406157600080fd5b61406d88828901613fc9565b969995985093965092949392505050565b60008060006060848603121561409357600080fd5b833561409e81613e8c565b925060208401356140ae81613e8c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156140fe576140fe6140bf565b604052919050565b6000602080838503121561411957600080fd5b823567ffffffffffffffff8082111561413157600080fd5b818501915085601f83011261414557600080fd5b813581811115614157576141576140bf565b8060051b91506141688483016140d5565b818152918301840191848101908884111561418257600080fd5b938501935b838510156141a057843582529385019390850190614187565b98975050505050505050565b600080604083850312156141bf57600080fd5b50508035926020909101359150565b600080602083850312156141e157600080fd5b823567ffffffffffffffff808211156141f957600080fd5b818501915085601f83011261420d57600080fd5b81358181111561421c57600080fd5b8660208260051b850101111561423157600080fd5b60209290920196919550909350505050565b6000806040838503121561425657600080fd5b823561426181613e8c565b91506020830135613ec681613e8c565b80151581146122f957600080fd5b6000806000806080858703121561429557600080fd5b843593506020850135925060408501356142ae81613e8c565b915060608501356142be81614271565b939692955090935050565b6000806000604084860312156142de57600080fd5b83359250602084013567ffffffffffffffff8111156142fc57600080fd5b61430886828701613fc9565b9497909650939450505050565b6000806000806040858703121561432b57600080fd5b843567ffffffffffffffff8082111561434357600080fd5b61434f88838901613fc9565b9096509450602087013591508082111561436857600080fd5b5061437587828801613fc9565b95989497509550505050565b6000806040838503121561439457600080fd5b823561439f81613e8c565b91506020830135613ec681614271565b600080600080608085870312156143c557600080fd5b84356143d081613e8c565b93506020858101356143e181613e8c565b935060408601359250606086013567ffffffffffffffff8082111561440557600080fd5b818801915088601f83011261441957600080fd5b81358181111561442b5761442b6140bf565b61443d601f8201601f191685016140d5565b9150808252898482850101111561445357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156144b45783516001600160a01b03168352928401929184019160010161448f565b50909695505050505050565b600181811c908216806144d457607f821691505b6020821081036144f457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f4f70657261746f72206973206e6f7420616c6c6f776564000000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b0f57610b0f614547565b60008261459157634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156145a857600080fd5b8151611c0581614271565b6000602082840312156145c557600080fd5b8151611c0581613e8c565b7f4d696e7420686173206661696c65642c2073656e64657220686173206e6f742081527f617070726f766564207468652063757272656e7420636f6e747261637420617360208201527f2061207370656e64657220666f722074686520746f6b656e732e20417070726f60408201526c03b32b21020b2323932b9b99d1609d1b60608201526000835161466a81606d850160208801613f04565b730161021b7b73a3930b1ba1020b2323932b9b99d160651b606d91840191820152835161469e816081840160208801613f04565b01608101949350505050565b6000600182016146bc576146bc614547565b5060010190565b80820180821115610b0f57610b0f614547565b601f821115610aff576000816000526020600020601f850160051c810160208610156146ff5750805b601f850160051c820191505b81811015612e5d5782815560010161470b565b67ffffffffffffffff831115614736576147366140bf565b61474a8361474483546144c0565b836146d6565b6000601f84116001811461477e57600085156147665750838201355b600019600387901b1c1916600186901b178355611bb6565b600083815260209020601f19861690835b828110156147af578685013582556020948501946001909201910161478f565b50868210156147cc5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600080855461481b816144c0565b60018281168015614833576001811461484857614877565b60ff1984168752821515830287019450614877565b8960005260208060002060005b8581101561486e5781548a820152908401908201614855565b50505082870194505b50505050845161488b818360208901613f04565b845191019061489e818360208801613f04565b0195945050505050565b60208082526032908201527f5b3130315d204b42543732313a205370656e64696e67206f662066756e64732060408201527134b9903737ba1030baba3437b934bd32b21760711b606082015260800190565b60208082526038908201527f5b3130325d204b42543732313a2054696d65206861732065787069726564206660408201527f6f7220746865207370656e64696e67206f662066756e64730000000000000000606082015260800190565b81810381811115610b0f57610b0f614547565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b600081614a0b57614a0b614547565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614aae90830184613f28565b9695505050505050565b600060208284031215614aca57600080fd5b8151611c0581613ed156fea26469706673582212204f2d6bfea0ee1f94a180e3155a75c5429eb9fc8f899e5e33098a22c008dc3b8364736f6c63430008180033

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

000000000000000000000000209e639a0ec166ac7a1a4ba41968fa967db30221

-----Decoded View---------------
Arg [0] : _originalGuContractAddress (address): 0x209e639a0EC166Ac7a1A4bA41968fa967dB30221

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000209e639a0ec166ac7a1a4ba41968fa967db30221


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.