ETH Price: $3,135.48 (+1.94%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize155390502022-09-15 12:18:59867 days ago1663244339IN
0x054cD938...d419418eE
0 ETH0.003247078.97124398

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Quantum

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : Quantum.sol
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "./SignatureVerifier.sol";
import "./Strings.sol";

library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        ProxyRegistry registry;
        assembly {
            switch chainid()
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
        }

        return
            address(registry) != address(0) &&
            address(registry.proxies(owner)) == operator;
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract Quantum is
    ERC721Upgradeable,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable,
    PausableUpgradeable,
    SignatureVerifier
{
    using Strings for uint256;

    uint16 public publicSupply;
    uint16 public privateSupply;
    uint16 public publicSupplyLimit;
    uint16 public privateSupplyLimit;
    bool public publicMintActive;
    bool public isRevealed;
    bool public privateMintActive;

    address public regularSigner;
    address public privateSigner;
    string public baseURI;
    string public notRevealedUri;
    string public baseExtension;

    mapping(address => bool) public mintingLedger;
    address[3000] public tokenLedger; // reserved storage in case of a pivotal expansion.

    event tokenMinted(address, uint256);
    string public whaleURI;
    string public normalURI;
    address proxyRegistryAddress;

    mapping(address => bool) public privateMintingLedger;

    function initialize() external initializer {
        __Ownable_init();
        __Pausable_init();
        __ReentrancyGuard_init();
        __ERC721_init("Quantum", "QUANTUM");

        publicMintActive = false;
        isRevealed = true;
        normalURI = "ipfs://QmYpKcCC4e7JLXwbMwPCfQJMf86LmxCZyMQkHw3xRa7Ffc";
        whaleURI = "ipfs://QmT4WWqgsiyERPkb9txCQgCzgaPwZob8UNaK7Q8V5A8iM8";
        privateMintActive = false;
        regularSigner = 0xB3BA692696A60271b2f2D2917c20E14c32cA74d7;
        privateSigner = 0xc9c3B4587fcD88E463Cd3c86B4C6594709f22c12;
        baseExtension = ".json";
        proxyRegistryAddress = 0xe850eB266384A133844976aC66B98A44eDBFCb0d;
        /* we are keeping track of two different counters.
         * privateSupply, which is limited by the privateSupplyLimit.
         * and publicSupply, which is limited by the privateSupplyLimit.
         * publicSupply is incremented in the mint function, and it starts from 0 up to limit.
         * privateSupply is incremented in the privateMint funciton, and starts from 2000 up to limit.
         * the totalSupply function returns  ( publicSupply + ( privateSupply - 2000),
         * effectivly giving us the total minted supply.
         * both limits can be modified in their respective functions.
         */
        privateSupply = 2000;
        publicSupply = 0;
        publicSupplyLimit = 2000;
        privateSupplyLimit = 2100;
    }

    function mint(bytes calldata sig)
        external
        payable
        nonReentrant
        whenNotPaused
        mintingChecks(sig, publicMintActive, regularSigner, false)
    {
        _safeMint(msg.sender, ++publicSupply);
        emit tokenMinted(msg.sender, publicSupply);
    }

    function privateMint(bytes calldata sig)
        external
        payable
        nonReentrant
        whenNotPaused
        mintingChecks(sig, privateMintActive, privateSigner, true)
    {
        _safeMint(msg.sender, ++privateSupply);
        emit tokenMinted(msg.sender, privateSupply);
    }

    function ownerMint(address _reciever, uint256[] memory tokenIds)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _safeMint(_reciever, tokenIds[i]);
            if (tokenIds[i] <= 2000) ++publicSupply;
            else {
                require(
                    privateSupply + 1 <= privateSupplyLimit,
                    "private supply reached"
                );
                ++privateSupply;
            }
            emit tokenMinted(_reciever, publicSupply);
        }
    }

    /* 
    * @param sig, the signature to verify
    * @param mintActive, the mint access control paramter
    * @param signer, the public key to verify the signature against
    * @param privateSector, if it is true, that means the private mint functions
    * is being called. otherwise it is the public mint functions being called.

    * @notice the modifier checks if the publicSupply counter is below 2000 if privateSector is false
    * it verifies that we are still within the public mint limits
    * if the privateSector paramter is true, it checks if the privateSupply is <= 2100
    * privateSupply starts at 2000. This way, the privateMint function ALWAYS mint 
    * between 2000 (exclusive) and 2100 (inclusive). 
    */
    modifier mintingChecks(
        bytes calldata sig,
        bool mintActive,
        address signer,
        bool privateSector
    ) {
        require(mintActive, "minting not active");
        
        if(!privateSector)
        require(!mintingLedger[msg.sender], "already minted");
    
        else 
        require(!privateMintingLedger[msg.sender], "already minted private");

        require(tx.origin == msg.sender, "only accounts");

        bool verification = verify(msg.sender, sig, signer);
        require(verification, "you are not whitlisted");

        if (privateSector)
            require(
                privateSupply + 1 <= privateSupplyLimit,
                "no more private supply"
            );
        else
            require(
                publicSupply + 1 <= publicSupplyLimit,
                "no more public supply"
            );
        if(!privateSector)
            mintingLedger[msg.sender] = true;
        else privateMintingLedger[msg.sender] = true;
        _;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId));

        if (isRevealed == true) {
            if (tokenId <= 2000) return normalURI;
            else return whaleURI;
        } else return notRevealedUri;
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        return
            (OpenSeaGasFreeListing.isApprovedForAll(owner, operator) ||
                address(proxyRegistry.proxies(owner)) == operator) ||
            super.isApprovedForAll(owner, operator);
    }

    // @notice, tokenLedger is updated after minting and tokenTransfers
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._afterTokenTransfer(from, to, tokenId);
        tokenLedger[tokenId] = to;
    }

    function toggleMint() external onlyOwner {
        privateMintActive = !privateMintActive;
        publicMintActive = !publicMintActive;
    }

    function setIsRevealed(bool _state) external onlyOwner {
        isRevealed = _state;
    }

    function setNotRevealedURI(string memory _notRevealedURI)
        external
        onlyOwner
    {
        notRevealedUri = _notRevealedURI;
    }

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

    function setBaseExtension(string memory _base) external onlyOwner {
        baseExtension = _base;
    }

    function setPublicSupplyLimit(uint16 _newLimit) external onlyOwner {
        publicSupplyLimit = _newLimit;
    }

    function setPrivateSupplyLimit(uint16 _newLimit) external onlyOwner {
        privateSupplyLimit = _newLimit;
    }

    function setPublicMintActive(bool _state) external onlyOwner {
        publicMintActive = _state;
    }

    function setRegularSigner(address _signer) external onlyOwner {
        regularSigner = _signer;
    }

    function setPrivateSigner(address _signer) external onlyOwner {
        privateSigner = _signer;
    }

    function setPrivateMintActive(bool _state) external onlyOwner {
        privateMintActive = _state;
    }

    function totalSupply() public view returns (uint256) {
        return publicSupply + (privateSupply - 2000);
    }

    function getTokenLedger() external view returns (address[3000] memory) {
        return tokenLedger;
    }

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

    function setNormalURI(string memory _uri) external onlyOwner {
        normalURI = _uri;
    }

    function setWhaleURI(string memory _uri) external onlyOwner {
        whaleURI = _uri;
    }

    function withdraw(address[] memory _payees, uint256[] memory _shares)
        public
        onlyOwner
    {
        require(address(this).balance > 0, "No balance to withdraw");
        require(_shares.length == _payees.length);
        uint256 totalShares;

        for (uint256 i; i < _shares.length; i++) totalShares += _shares[i];

        require(totalShares == 1000, "invalid shares");
        delete totalShares;

        uint256 contractBalance = address(this).balance;
        for (uint256 i; i < _shares.length; i++)
            _withdraw(_payees[i], (contractBalance * _shares[i]) / 1000);
    }

    function _withdraw(address _address, uint256 _amount) internal {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    receive() external payable {}
}

File 2 of 16 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        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: transfer caller is not owner nor 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: transfer caller is not owner nor 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 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 _owners[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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

    /**
     * @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(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {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 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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 3 of 16 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 4 of 16 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 5 of 16 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 6 of 16 : SignatureVerifier.sol
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;

contract SignatureVerifier {
    function getMessageHash(address _addr)
        internal
        pure
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(_addr));
    }

    function getEthSignedMessageHash(bytes32 _messageHash)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    _messageHash
                )
            );
    }

    function verify(
        address _addr,
        bytes memory signature,
        address signer
    ) public pure returns (bool) {
        bytes32 messageHash = getMessageHash(_addr);
        bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);

        return recoverSigner(ethSignedMessageHash, signature) == signer;
    }

    function recoverSigner(
        bytes32 _ethSignedMessageHash,
        bytes memory _signature
    ) public pure returns (address) {
        (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);

        return ecrecover(_ethSignedMessageHash, v, r, s);
    }

    function splitSignature(bytes memory sig)
        internal
        pure
        returns (
            bytes32 r,
            bytes32 s,
            uint8 v
        )
    {
        require(sig.length == 65, "invalid signature length");

        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))
            v := byte(0, mload(add(sig, 96)))
        }
    }
}

File 7 of 16 : Strings.sol
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 16 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

File 9 of 16 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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 11 of 16 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 13 of 16 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 15 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 16 of 16 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMinted","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenLedger","outputs":[{"internalType":"address[3000]","name":"","type":"address[3000]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintingLedger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_reciever","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateMintingLedger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSupplyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupplyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"regularSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setNormalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPrivateMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setPrivateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newLimit","type":"uint16"}],"name":"setPrivateSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newLimit","type":"uint16"}],"name":"setPublicSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setRegularSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setWhaleURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLedger","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_addr","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"whaleURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50614266806100206000396000f3fe60806040526004361061036f5760003560e01c806377bfed70116101c6578063b67c25a3116100f7578063d97d28d211610095578063e985e9c51161006f578063e985e9c514610a0e578063f2c4ce1e14610a2e578063f2fde38b14610a4e578063f6ebf9a414610a6e57610376565b8063d97d28d2146109ad578063da3ef23f146109ce578063de6d6d96146109ee57610376565b8063c6682862116100d1578063c668286214610943578063c87b56dd14610958578063d3dd5fe014610978578063d62e82a91461098d57610376565b8063b67c25a3146108cb578063b764abe7146108f2578063b88d4fde1461092357610376565b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610856578063a3488b0014610876578063b01a79bc14610896578063b2267b94146108b657610376565b806395d89b41146107fb57806397aba7f9146108105780639bd6c3381461083057610376565b80638585e590116101a05780638585e5901461077d578063867d9dce1461079d57806387c575e7146107bd5780638da5cb5b146107dd57610376565b806377bfed70146107255780637ba0e2e7146107555780638129fc1c1461076857610376565b806342842e0e116102a05780635c975abb1161023e5780636c0360eb116102185780636c0360eb146106bb57806370a08231146106d0578063715018a6146106f05780637264854f1461070557610376565b80635c975abb146106675780635e84d7231461067f5780636352211e1461069b57610376565b806354214f691161027a57806354214f69146105d457806355f804b3146105fc57806356bd182d1461061c57806357b734f41461063e57610376565b806342842e0e146105745780634511dcfb1461059457806349a5980a146105b457610376565b80631b2bcba71161030d5780632b707c71116102e75780632b707c71146104dd57806332ec6b50146104fd57806336fbe78f1461051d5780633740cc941461053d57610376565b80631b2bcba7146104955780631f32ca10146104a857806323b872dd146104bd57610376565b8063081812fc11610349578063081812fc14610403578063081c8c441461043b578063095ea7b31461045057806318160ddd1461047257610376565b806301ffc9a71461037b57806305092707146103b057806306fdde03146103e157610376565b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004613db3565b610a90565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b5061039b6103cb366004613a9b565b6101326020526000908152604090205460ff1681565b3480156103ed57600080fd5b506103f6610b2f565b6040516103a79190613fb8565b34801561040f57600080fd5b5061042361041e366004613edc565b610bc1565b6040516001600160a01b0390911681526020016103a7565b34801561044757600080fd5b506103f6610c5b565b34801561045c57600080fd5b5061047061046b366004613c7d565b610cea565b005b34801561047e57600080fd5b50610487610e1c565b6040519081526020016103a7565b6104706104a3366004613deb565b610e55565b3480156104b457600080fd5b506103f66112e3565b3480156104c957600080fd5b506104706104d8366004613aef565b6112f1565b3480156104e957600080fd5b506104706104f8366004613d5e565b611378565b34801561050957600080fd5b50610470610518366004613e74565b6113e9565b34801561052957600080fd5b50610423610538366004613edc565b611449565b34801561054957600080fd5b5061012d5461056190640100000000900461ffff1681565b60405161ffff90911681526020016103a7565b34801561058057600080fd5b5061047061058f366004613aef565b61146b565b3480156105a057600080fd5b506104706105af366004613d5e565b611486565b3480156105c057600080fd5b506104706105cf366004613d5e565b6114fb565b3480156105e057600080fd5b5061012d5461039b906901000000000000000000900460ff1681565b34801561060857600080fd5b50610470610617366004613e74565b61156e565b34801561062857600080fd5b5061012d546105619062010000900461ffff1681565b34801561064a57600080fd5b5061012d5461039b906a0100000000000000000000900460ff1681565b34801561067357600080fd5b5060fb5460ff1661039b565b34801561068b57600080fd5b5061012d546105619061ffff1681565b3480156106a757600080fd5b506104236106b6366004613edc565b6115ca565b3480156106c757600080fd5b506103f6611655565b3480156106dc57600080fd5b506104876106eb366004613a9b565b611663565b3480156106fc57600080fd5b506104706116fd565b34801561071157600080fd5b50610470610720366004613eba565b611751565b34801561073157600080fd5b5061012d54610423906b01000000000000000000000090046001600160a01b031681565b610470610763366004613deb565b6117be565b34801561077457600080fd5b50610470611c14565b34801561078957600080fd5b5061039b610798366004613c1b565b611f0a565b3480156107a957600080fd5b506104706107b8366004613a9b565b611f4d565b3480156107c957600080fd5b506104706107d8366004613a9b565b611fdf565b3480156107e957600080fd5b506097546001600160a01b0316610423565b34801561080757600080fd5b506103f661204a565b34801561081c57600080fd5b5061042361082b366004613d78565b612059565b34801561083c57600080fd5b5061012d54610561906601000000000000900461ffff1681565b34801561086257600080fd5b50610470610871366004613be7565b6120d8565b34801561088257600080fd5b50610470610891366004613b99565b6120e3565b3480156108a257600080fd5b506104706108b1366004613e74565b6122d7565b3480156108c257600080fd5b506103f6612333565b3480156108d757600080fd5b5061012d5461039b9068010000000000000000900460ff1681565b3480156108fe57600080fd5b5061039b61090d366004613a9b565b610cee6020526000908152604090205460ff1681565b34801561092f57600080fd5b5061047061093e366004613b2f565b612341565b34801561094f57600080fd5b506103f66123cf565b34801561096457600080fd5b506103f6610973366004613edc565b6123dd565b34801561098457600080fd5b506104706124d7565b34801561099957600080fd5b506104706109a8366004613eba565b612572565b3480156109b957600080fd5b5061012e54610423906001600160a01b031681565b3480156109da57600080fd5b506104706109e9366004613e74565b6125e3565b3480156109fa57600080fd5b50610470610a09366004613ca8565b61263f565b348015610a1a57600080fd5b5061039b610a29366004613ab7565b612823565b348015610a3a57600080fd5b50610470610a49366004613e74565b612904565b348015610a5a57600080fd5b50610470610a69366004613a9b565b612960565b348015610a7a57600080fd5b50610a83612a2d565b6040516103a79190613f7b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610af357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b2757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b606060658054610b3e906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6a906140d7565b8015610bb75780601f10610b8c57610100808354040283529160200191610bb7565b820191906000526020600020905b815481529060010190602001808311610b9a57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c3f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6101308054610c69906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610c95906140d7565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b505050505081565b6000610cf5826115ca565b9050806001600160a01b0316836001600160a01b03161415610d7f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c36565b336001600160a01b0382161480610d9b5750610d9b8133610a29565b610e0d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c36565b610e178383612a76565b505050565b61012d54600090610e3a906107d09062010000900461ffff1661409d565b61012d54610e4c919061ffff16614020565b61ffff16905090565b600260c9541415610ea85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c36565b600260c95560fb5460ff1615610f005760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c36565b61012d5461012e54839183916a010000000000000000000090910460ff16906001600160a01b0316600182610f775760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610c36565b80610fe257336000908152610132602052604090205460ff1615610fdd5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610c36565b611043565b336000908152610cee602052604090205460ff16156110435760405162461bcd60e51b815260206004820152601660248201527f616c7265616479206d696e7465642070726976617465000000000000000000006044820152606401610c36565b3233146110825760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610c36565b60006110c63387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611f0a915050565b9050806111155760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610c36565b81156111995761012d5461ffff660100000000000082048116916111429162010000909104166001614020565b61ffff1611156111945760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610c36565b611209565b61012d5461ffff64010000000082048116916111b791166001614020565b61ffff1611156112095760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610c36565b8161122e5733600090815261013260205260409020805460ff1916600117905561124a565b336000908152610cee60205260409020805460ff191660011790555b61128d3361012d600281819054906101000a900461ffff1661126b90614112565b91906101000a81548161ffff021916908361ffff160217905561ffff16612ae4565b61012d54604080513381526201000090920461ffff1660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091015b60405180910390a15050600160c955505050505050565b610ceb8054610c69906140d7565b6112fb3382612afe565b61136d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c36565b610e17838383612bcd565b6097546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d8054911515680100000000000000000268ff000000000000000019909216919091179055565b6097546001600160a01b031633146114315760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b805161144590610cec9060208401906138e7565b5050565b61013381610bb8811061145b57600080fd5b01546001600160a01b0316905081565b610e1783838360405180602001604052806000815250612341565b6097546001600160a01b031633146114ce5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80549115156a0100000000000000000000026aff0000000000000000000019909216919091179055565b6097546001600160a01b031633146115435760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805491151569010000000000000000000269ff00000000000000000019909216919091179055565b6097546001600160a01b031633146115b65760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b80516114459061012f9060208401906138e7565b6000818152606760205260408120546001600160a01b031680610b275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c36565b61012f8054610c69906140d7565b60006001600160a01b0382166116e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c36565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146117455760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61174f6000612da0565b565b6097546001600160a01b031633146117995760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805461ffff9092166401000000000265ffff0000000019909216919091179055565b600260c95414156118115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c36565b600260c95560fb5460ff16156118695760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c36565b61012d548290829068010000000000000000810460ff16906b01000000000000000000000090046001600160a01b03166000826118e85760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610c36565b8061195357336000908152610132602052604090205460ff161561194e5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610c36565b6119b4565b336000908152610cee602052604090205460ff16156119b45760405162461bcd60e51b815260206004820152601660248201527f616c7265616479206d696e7465642070726976617465000000000000000000006044820152606401610c36565b3233146119f35760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610c36565b6000611a373387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611f0a915050565b905080611a865760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610c36565b8115611b0a5761012d5461ffff66010000000000008204811691611ab39162010000909104166001614020565b61ffff161115611b055760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610c36565b611b7a565b61012d5461ffff6401000000008204811691611b2891166001614020565b61ffff161115611b7a5760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610c36565b81611b9f5733600090815261013260205260409020805460ff19166001179055611bbb565b336000908152610cee60205260409020805460ff191660011790555b61012d8054611bd691339160009061126b9061ffff16614112565b61012d546040805133815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091016112cc565b600054610100900460ff16611c2f5760005460ff1615611c33565b303b155b611ca55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610c36565b600054610100900460ff16158015611cd0576000805460ff1961ff0019909116610100171660011790555b611cd8612df2565b611ce0612e65565b611ce8612ed8565b611d5c6040518060400160405280600781526020017f5175616e74756d000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f5155414e54554d00000000000000000000000000000000000000000000000000815250612f4b565b61012d805469ffff000000000000000019166901000000000000000000179055604080516060810190915260358082526141dc60208301398051611da991610cec916020909101906138e7565b506040518060600160405280603581526020016141a7603591398051611dd891610ceb916020909101906138e7565b5061012d80547eb3ba692696a60271b2f2d2917c20e14c32ca74d700000000000000000000007fff000000000000000000000000000000000000000000ffffffffffffffffffff90911617905561012e80546001600160a01b03191673c9c3b4587fcd88e463cd3c86b4c6594709f22c121790556040805180820190915260058082527f2e6a736f6e0000000000000000000000000000000000000000000000000000006020909201918252611e9191610131916138e7565b50610ced805473e850eb266384a133844976ac66b98a44edbfcb0d6001600160a01b031990911617905561012d805463ffff000019166307d000001765ffff0000ffff19166507d0000000001767ffff00000000000019166708340000000000001790558015611f07576000805461ff00191690555b50565b600080611f1685612fc0565b90506000611f2382613000565b9050836001600160a01b0316611f398287612059565b6001600160a01b0316149695505050505050565b6097546001600160a01b03163314611f955760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80546001600160a01b039092166b010000000000000000000000027fff0000000000000000000000000000000000000000ffffffffffffffffffffff909216919091179055565b6097546001600160a01b031633146120275760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610b3e906140d7565b6000806000806120688561303b565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa1580156120c3573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6114453383836130af565b6097546001600160a01b0316331461212b5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b60005b8151811015610e17576121688383838151811061215b57634e487b7160e01b600052603260045260246000fd5b6020026020010151612ae4565b6107d082828151811061218b57634e487b7160e01b600052603260045260246000fd5b6020026020010151116121cc5761012d80546000906121ad9061ffff16614112565b91906101000a81548161ffff021916908361ffff16021790555061227b565b61012d5461ffff660100000000000082048116916121f39162010000909104166001614020565b61ffff1611156122455760405162461bcd60e51b815260206004820152601660248201527f7072697661746520737570706c792072656163686564000000000000000000006044820152606401610c36565b61012d80546002906122609062010000900461ffff16614112565b91906101000a81548161ffff021916908361ffff1602179055505b61012d54604080516001600160a01b038616815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f0910160405180910390a1806122cf81614134565b91505061212e565b6097546001600160a01b0316331461231f5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b805161144590610ceb9060208401906138e7565b610cec8054610c69906140d7565b61234b3383612afe565b6123bd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c36565b6123c98484848461317e565b50505050565b6101318054610c69906140d7565b6000818152606760205260409020546060906001600160a01b031661240157600080fd5b61012d546901000000000000000000900460ff161515600114156124c9576107d082116124bb57610cec8054612436906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054612462906140d7565b80156124af5780601f10612484576101008083540402835291602001916124af565b820191906000526020600020905b81548152906001019060200180831161249257829003601f168201915b50505050509050610b2a565b610ceb8054612436906140d7565b6101308054612436906140d7565b6097546001600160a01b0316331461251f5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80546801000000000000000060ff6a0100000000000000000000808404821615026aff000000000000000000001990931692909217818104909216150268ff000000000000000019909116179055565b6097546001600160a01b031633146125ba5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b6097546001600160a01b0316331461262b5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b8051611445906101319060208401906138e7565b6097546001600160a01b031633146126875760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b600047116126d75760405162461bcd60e51b815260206004820152601660248201527f4e6f2062616c616e636520746f207769746864726177000000000000000000006044820152606401610c36565b81518151146126e557600080fd5b6000805b82518110156127395782818151811061271257634e487b7160e01b600052603260045260246000fd5b6020026020010151826127259190614046565b91508061273181614134565b9150506126e9565b50806103e81461278b5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207368617265730000000000000000000000000000000000006044820152606401610c36565b50600047815b835181101561281c5761280a8582815181106127bd57634e487b7160e01b600052603260045260246000fd5b60200260200101516103e88684815181106127e857634e487b7160e01b600052603260045260246000fd5b6020026020010151856127fb919061407e565b612805919061405e565b6131fc565b8061281481614134565b915050612791565b5050505050565b610ced546000906001600160a01b031661283d848461329f565b806128cc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561288957600080fd5b505afa15801561289d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c19190613e58565b6001600160a01b0316145b806128fc57506001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b6097546001600160a01b0316331461294c5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b8051611445906101309060208401906138e7565b6097546001600160a01b031633146129a85760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b6001600160a01b038116612a245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c36565b611f0781612da0565b612a3561396b565b60408051620177008101918290529061013390610bb89082845b81546001600160a01b03168152600190910190602001808311612a4f575050505050905090565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612aab826115ca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611445828260405180602001604052806000815250613390565b6000818152606760205260408120546001600160a01b0316612b775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c36565b6000612b82836115ca565b9050806001600160a01b0316846001600160a01b03161480612bbd5750836001600160a01b0316612bb284610bc1565b6001600160a01b0316145b806128fc57506128fc8185612823565b826001600160a01b0316612be0826115ca565b6001600160a01b031614612c5c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c36565b6001600160a01b038216612cd75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c36565b612ce2600082612a76565b6001600160a01b0383166000908152606860205260408120805460019290612d0b9084906140c0565b90915550506001600160a01b0382166000908152606860205260408120805460019290612d39908490614046565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610e1783838361340e565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612e5d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f613456565b600054610100900460ff16612ed05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f6134ca565b600054610100900460ff16612f435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f613541565b600054610100900460ff16612fb65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61144582826135b3565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612fe3565b600080600083516041146130915760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c36565b50505060208101516040820151606090920151909260009190911a90565b816001600160a01b0316836001600160a01b031614156131115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c36565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613189848484612bcd565b61319584848484613645565b6123c95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613249576040519150601f19603f3d011682016040523d82523d6000602084013e61324e565b606091505b5050905080610e175760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610c36565b60008046600181146132b857600481146132d4576132ec565b73a5409ec958c83c3f309868babaca7c86dcb077c191506132ec565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906128fc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561334657600080fd5b505afa15801561335a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337e9190613e58565b6001600160a01b031614949350505050565b61339a838361379d565b6133a76000848484613645565b610e175760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b8161013382610bb8811061343257634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b600054610100900460ff166134c15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f33612da0565b600054610100900460ff166135355760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b60fb805460ff19169055565b600054610100900460ff166135ac5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b600160c955565b600054610100900460ff1661361e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b81516136319060659060208501906138e7565b508051610e179060669060208401906138e7565b60006001600160a01b0384163b1561379257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613689903390899088908890600401613f3f565b602060405180830381600087803b1580156136a357600080fd5b505af19250505080156136d3575060408051601f3d908101601f191682019092526136d091810190613dcf565b60015b613778573d808015613701576040519150601f19603f3d011682016040523d82523d6000602084013e613706565b606091505b5080516137705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128fc565b506001949350505050565b6001600160a01b0382166137f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c36565b6000818152606760205260409020546001600160a01b0316156138585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c36565b6001600160a01b0382166000908152606860205260408120805460019290613881908490614046565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114456000838361340e565b8280546138f3906140d7565b90600052602060002090601f016020900481019282613915576000855561395b565b82601f1061392e57805160ff191683800117855561395b565b8280016001018555821561395b579182015b8281111561395b578251825591602001919060010190613940565b5061396792915061398c565b5090565b60405180620177000160405280610bb8906020820280368337509192915050565b5b80821115613967576000815560010161398d565b600067ffffffffffffffff8311156139bb576139bb614165565b6139ce601f8401601f1916602001613fcb565b90508281528383830111156139e257600080fd5b828260208301376000602084830101529392505050565b600082601f830112613a09578081fd5b81356020613a1e613a1983613ffc565b613fcb565b8281528181019085830183850287018401881015613a3a578586fd5b855b85811015613a5857813584529284019290840190600101613a3c565b5090979650505050505050565b80358015158114610b2a57600080fd5b600082601f830112613a85578081fd5b613a94838335602085016139a1565b9392505050565b600060208284031215613aac578081fd5b8135613a948161417b565b60008060408385031215613ac9578081fd5b8235613ad48161417b565b91506020830135613ae48161417b565b809150509250929050565b600080600060608486031215613b03578081fd5b8335613b0e8161417b565b92506020840135613b1e8161417b565b929592945050506040919091013590565b60008060008060808587031215613b44578081fd5b8435613b4f8161417b565b93506020850135613b5f8161417b565b925060408501359150606085013567ffffffffffffffff811115613b81578182fd5b613b8d87828801613a75565b91505092959194509250565b60008060408385031215613bab578182fd5b8235613bb68161417b565b9150602083013567ffffffffffffffff811115613bd1578182fd5b613bdd858286016139f9565b9150509250929050565b60008060408385031215613bf9578182fd5b8235613c048161417b565b9150613c1260208401613a65565b90509250929050565b600080600060608486031215613c2f578283fd5b8335613c3a8161417b565b9250602084013567ffffffffffffffff811115613c55578283fd5b613c6186828701613a75565b9250506040840135613c728161417b565b809150509250925092565b60008060408385031215613c8f578182fd5b8235613c9a8161417b565b946020939093013593505050565b60008060408385031215613cba578182fd5b823567ffffffffffffffff80821115613cd1578384fd5b818501915085601f830112613ce4578384fd5b81356020613cf4613a1983613ffc565b82815281810190858301838502870184018b1015613d10578889fd5b8896505b84871015613d3b578035613d278161417b565b835260019690960195918301918301613d14565b5096505086013592505080821115613d51578283fd5b50613bdd858286016139f9565b600060208284031215613d6f578081fd5b613a9482613a65565b60008060408385031215613d8a578182fd5b82359150602083013567ffffffffffffffff811115613da7578182fd5b613bdd85828601613a75565b600060208284031215613dc4578081fd5b8135613a9481614190565b600060208284031215613de0578081fd5b8151613a9481614190565b60008060208385031215613dfd578182fd5b823567ffffffffffffffff80821115613e14578384fd5b818501915085601f830112613e27578384fd5b813581811115613e35578485fd5b866020828501011115613e46578485fd5b60209290920196919550909350505050565b600060208284031215613e69578081fd5b8151613a948161417b565b600060208284031215613e85578081fd5b813567ffffffffffffffff811115613e9b578182fd5b8201601f81018413613eab578182fd5b6128fc848235602084016139a1565b600060208284031215613ecb578081fd5b813561ffff81168114613a94578182fd5b600060208284031215613eed578081fd5b5035919050565b60008151808452815b81811015613f1957602081850181015186830182015201613efd565b81811115613f2a5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f716080830184613ef4565b9695505050505050565b620177008101818360005b610bb8811015613faf5781516001600160a01b0316835260209283019290910190600101613f86565b50505092915050565b600060208252613a946020830184613ef4565b604051601f8201601f1916810167ffffffffffffffff81118282101715613ff457613ff4614165565b604052919050565b600067ffffffffffffffff82111561401657614016614165565b5060209081020190565b600061ffff80831681851680830382111561403d5761403d61414f565b01949350505050565b600082198211156140595761405961414f565b500190565b60008261407957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156140985761409861414f565b500290565b600061ffff838116908316818110156140b8576140b861414f565b039392505050565b6000828210156140d2576140d261414f565b500390565b6002810460018216806140eb57607f821691505b6020821081141561410c57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561412a5761412a61414f565b6001019392505050565b60006000198214156141485761414861414f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f0757600080fd5b6001600160e01b031981168114611f0757600080fdfe697066733a2f2f516d5434575771677369794552506b62397478435167437a676150775a6f6238554e614b37513856354138694d38697066733a2f2f516d59704b6343433465374a4c5877624d77504366514a4d6638364c6d78435a794d516b487733785261374666634f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203f76f552669595e176e28285a7b5b87335a78f0e1670de95855617c0f34cd62b64736f6c63430008020033

Deployed Bytecode

0x60806040526004361061036f5760003560e01c806377bfed70116101c6578063b67c25a3116100f7578063d97d28d211610095578063e985e9c51161006f578063e985e9c514610a0e578063f2c4ce1e14610a2e578063f2fde38b14610a4e578063f6ebf9a414610a6e57610376565b8063d97d28d2146109ad578063da3ef23f146109ce578063de6d6d96146109ee57610376565b8063c6682862116100d1578063c668286214610943578063c87b56dd14610958578063d3dd5fe014610978578063d62e82a91461098d57610376565b8063b67c25a3146108cb578063b764abe7146108f2578063b88d4fde1461092357610376565b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610856578063a3488b0014610876578063b01a79bc14610896578063b2267b94146108b657610376565b806395d89b41146107fb57806397aba7f9146108105780639bd6c3381461083057610376565b80638585e590116101a05780638585e5901461077d578063867d9dce1461079d57806387c575e7146107bd5780638da5cb5b146107dd57610376565b806377bfed70146107255780637ba0e2e7146107555780638129fc1c1461076857610376565b806342842e0e116102a05780635c975abb1161023e5780636c0360eb116102185780636c0360eb146106bb57806370a08231146106d0578063715018a6146106f05780637264854f1461070557610376565b80635c975abb146106675780635e84d7231461067f5780636352211e1461069b57610376565b806354214f691161027a57806354214f69146105d457806355f804b3146105fc57806356bd182d1461061c57806357b734f41461063e57610376565b806342842e0e146105745780634511dcfb1461059457806349a5980a146105b457610376565b80631b2bcba71161030d5780632b707c71116102e75780632b707c71146104dd57806332ec6b50146104fd57806336fbe78f1461051d5780633740cc941461053d57610376565b80631b2bcba7146104955780631f32ca10146104a857806323b872dd146104bd57610376565b8063081812fc11610349578063081812fc14610403578063081c8c441461043b578063095ea7b31461045057806318160ddd1461047257610376565b806301ffc9a71461037b57806305092707146103b057806306fdde03146103e157610376565b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004613db3565b610a90565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b5061039b6103cb366004613a9b565b6101326020526000908152604090205460ff1681565b3480156103ed57600080fd5b506103f6610b2f565b6040516103a79190613fb8565b34801561040f57600080fd5b5061042361041e366004613edc565b610bc1565b6040516001600160a01b0390911681526020016103a7565b34801561044757600080fd5b506103f6610c5b565b34801561045c57600080fd5b5061047061046b366004613c7d565b610cea565b005b34801561047e57600080fd5b50610487610e1c565b6040519081526020016103a7565b6104706104a3366004613deb565b610e55565b3480156104b457600080fd5b506103f66112e3565b3480156104c957600080fd5b506104706104d8366004613aef565b6112f1565b3480156104e957600080fd5b506104706104f8366004613d5e565b611378565b34801561050957600080fd5b50610470610518366004613e74565b6113e9565b34801561052957600080fd5b50610423610538366004613edc565b611449565b34801561054957600080fd5b5061012d5461056190640100000000900461ffff1681565b60405161ffff90911681526020016103a7565b34801561058057600080fd5b5061047061058f366004613aef565b61146b565b3480156105a057600080fd5b506104706105af366004613d5e565b611486565b3480156105c057600080fd5b506104706105cf366004613d5e565b6114fb565b3480156105e057600080fd5b5061012d5461039b906901000000000000000000900460ff1681565b34801561060857600080fd5b50610470610617366004613e74565b61156e565b34801561062857600080fd5b5061012d546105619062010000900461ffff1681565b34801561064a57600080fd5b5061012d5461039b906a0100000000000000000000900460ff1681565b34801561067357600080fd5b5060fb5460ff1661039b565b34801561068b57600080fd5b5061012d546105619061ffff1681565b3480156106a757600080fd5b506104236106b6366004613edc565b6115ca565b3480156106c757600080fd5b506103f6611655565b3480156106dc57600080fd5b506104876106eb366004613a9b565b611663565b3480156106fc57600080fd5b506104706116fd565b34801561071157600080fd5b50610470610720366004613eba565b611751565b34801561073157600080fd5b5061012d54610423906b01000000000000000000000090046001600160a01b031681565b610470610763366004613deb565b6117be565b34801561077457600080fd5b50610470611c14565b34801561078957600080fd5b5061039b610798366004613c1b565b611f0a565b3480156107a957600080fd5b506104706107b8366004613a9b565b611f4d565b3480156107c957600080fd5b506104706107d8366004613a9b565b611fdf565b3480156107e957600080fd5b506097546001600160a01b0316610423565b34801561080757600080fd5b506103f661204a565b34801561081c57600080fd5b5061042361082b366004613d78565b612059565b34801561083c57600080fd5b5061012d54610561906601000000000000900461ffff1681565b34801561086257600080fd5b50610470610871366004613be7565b6120d8565b34801561088257600080fd5b50610470610891366004613b99565b6120e3565b3480156108a257600080fd5b506104706108b1366004613e74565b6122d7565b3480156108c257600080fd5b506103f6612333565b3480156108d757600080fd5b5061012d5461039b9068010000000000000000900460ff1681565b3480156108fe57600080fd5b5061039b61090d366004613a9b565b610cee6020526000908152604090205460ff1681565b34801561092f57600080fd5b5061047061093e366004613b2f565b612341565b34801561094f57600080fd5b506103f66123cf565b34801561096457600080fd5b506103f6610973366004613edc565b6123dd565b34801561098457600080fd5b506104706124d7565b34801561099957600080fd5b506104706109a8366004613eba565b612572565b3480156109b957600080fd5b5061012e54610423906001600160a01b031681565b3480156109da57600080fd5b506104706109e9366004613e74565b6125e3565b3480156109fa57600080fd5b50610470610a09366004613ca8565b61263f565b348015610a1a57600080fd5b5061039b610a29366004613ab7565b612823565b348015610a3a57600080fd5b50610470610a49366004613e74565b612904565b348015610a5a57600080fd5b50610470610a69366004613a9b565b612960565b348015610a7a57600080fd5b50610a83612a2d565b6040516103a79190613f7b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610af357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b2757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b606060658054610b3e906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6a906140d7565b8015610bb75780601f10610b8c57610100808354040283529160200191610bb7565b820191906000526020600020905b815481529060010190602001808311610b9a57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c3f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6101308054610c69906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610c95906140d7565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b505050505081565b6000610cf5826115ca565b9050806001600160a01b0316836001600160a01b03161415610d7f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c36565b336001600160a01b0382161480610d9b5750610d9b8133610a29565b610e0d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c36565b610e178383612a76565b505050565b61012d54600090610e3a906107d09062010000900461ffff1661409d565b61012d54610e4c919061ffff16614020565b61ffff16905090565b600260c9541415610ea85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c36565b600260c95560fb5460ff1615610f005760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c36565b61012d5461012e54839183916a010000000000000000000090910460ff16906001600160a01b0316600182610f775760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610c36565b80610fe257336000908152610132602052604090205460ff1615610fdd5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610c36565b611043565b336000908152610cee602052604090205460ff16156110435760405162461bcd60e51b815260206004820152601660248201527f616c7265616479206d696e7465642070726976617465000000000000000000006044820152606401610c36565b3233146110825760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610c36565b60006110c63387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611f0a915050565b9050806111155760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610c36565b81156111995761012d5461ffff660100000000000082048116916111429162010000909104166001614020565b61ffff1611156111945760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610c36565b611209565b61012d5461ffff64010000000082048116916111b791166001614020565b61ffff1611156112095760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610c36565b8161122e5733600090815261013260205260409020805460ff1916600117905561124a565b336000908152610cee60205260409020805460ff191660011790555b61128d3361012d600281819054906101000a900461ffff1661126b90614112565b91906101000a81548161ffff021916908361ffff160217905561ffff16612ae4565b61012d54604080513381526201000090920461ffff1660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091015b60405180910390a15050600160c955505050505050565b610ceb8054610c69906140d7565b6112fb3382612afe565b61136d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c36565b610e17838383612bcd565b6097546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d8054911515680100000000000000000268ff000000000000000019909216919091179055565b6097546001600160a01b031633146114315760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b805161144590610cec9060208401906138e7565b5050565b61013381610bb8811061145b57600080fd5b01546001600160a01b0316905081565b610e1783838360405180602001604052806000815250612341565b6097546001600160a01b031633146114ce5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80549115156a0100000000000000000000026aff0000000000000000000019909216919091179055565b6097546001600160a01b031633146115435760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805491151569010000000000000000000269ff00000000000000000019909216919091179055565b6097546001600160a01b031633146115b65760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b80516114459061012f9060208401906138e7565b6000818152606760205260408120546001600160a01b031680610b275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c36565b61012f8054610c69906140d7565b60006001600160a01b0382166116e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c36565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146117455760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61174f6000612da0565b565b6097546001600160a01b031633146117995760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805461ffff9092166401000000000265ffff0000000019909216919091179055565b600260c95414156118115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c36565b600260c95560fb5460ff16156118695760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c36565b61012d548290829068010000000000000000810460ff16906b01000000000000000000000090046001600160a01b03166000826118e85760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610c36565b8061195357336000908152610132602052604090205460ff161561194e5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610c36565b6119b4565b336000908152610cee602052604090205460ff16156119b45760405162461bcd60e51b815260206004820152601660248201527f616c7265616479206d696e7465642070726976617465000000000000000000006044820152606401610c36565b3233146119f35760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610c36565b6000611a373387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611f0a915050565b905080611a865760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610c36565b8115611b0a5761012d5461ffff66010000000000008204811691611ab39162010000909104166001614020565b61ffff161115611b055760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610c36565b611b7a565b61012d5461ffff6401000000008204811691611b2891166001614020565b61ffff161115611b7a5760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610c36565b81611b9f5733600090815261013260205260409020805460ff19166001179055611bbb565b336000908152610cee60205260409020805460ff191660011790555b61012d8054611bd691339160009061126b9061ffff16614112565b61012d546040805133815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091016112cc565b600054610100900460ff16611c2f5760005460ff1615611c33565b303b155b611ca55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610c36565b600054610100900460ff16158015611cd0576000805460ff1961ff0019909116610100171660011790555b611cd8612df2565b611ce0612e65565b611ce8612ed8565b611d5c6040518060400160405280600781526020017f5175616e74756d000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f5155414e54554d00000000000000000000000000000000000000000000000000815250612f4b565b61012d805469ffff000000000000000019166901000000000000000000179055604080516060810190915260358082526141dc60208301398051611da991610cec916020909101906138e7565b506040518060600160405280603581526020016141a7603591398051611dd891610ceb916020909101906138e7565b5061012d80547eb3ba692696a60271b2f2d2917c20e14c32ca74d700000000000000000000007fff000000000000000000000000000000000000000000ffffffffffffffffffff90911617905561012e80546001600160a01b03191673c9c3b4587fcd88e463cd3c86b4c6594709f22c121790556040805180820190915260058082527f2e6a736f6e0000000000000000000000000000000000000000000000000000006020909201918252611e9191610131916138e7565b50610ced805473e850eb266384a133844976ac66b98a44edbfcb0d6001600160a01b031990911617905561012d805463ffff000019166307d000001765ffff0000ffff19166507d0000000001767ffff00000000000019166708340000000000001790558015611f07576000805461ff00191690555b50565b600080611f1685612fc0565b90506000611f2382613000565b9050836001600160a01b0316611f398287612059565b6001600160a01b0316149695505050505050565b6097546001600160a01b03163314611f955760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80546001600160a01b039092166b010000000000000000000000027fff0000000000000000000000000000000000000000ffffffffffffffffffffff909216919091179055565b6097546001600160a01b031633146120275760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610b3e906140d7565b6000806000806120688561303b565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa1580156120c3573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6114453383836130af565b6097546001600160a01b0316331461212b5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b60005b8151811015610e17576121688383838151811061215b57634e487b7160e01b600052603260045260246000fd5b6020026020010151612ae4565b6107d082828151811061218b57634e487b7160e01b600052603260045260246000fd5b6020026020010151116121cc5761012d80546000906121ad9061ffff16614112565b91906101000a81548161ffff021916908361ffff16021790555061227b565b61012d5461ffff660100000000000082048116916121f39162010000909104166001614020565b61ffff1611156122455760405162461bcd60e51b815260206004820152601660248201527f7072697661746520737570706c792072656163686564000000000000000000006044820152606401610c36565b61012d80546002906122609062010000900461ffff16614112565b91906101000a81548161ffff021916908361ffff1602179055505b61012d54604080516001600160a01b038616815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f0910160405180910390a1806122cf81614134565b91505061212e565b6097546001600160a01b0316331461231f5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b805161144590610ceb9060208401906138e7565b610cec8054610c69906140d7565b61234b3383612afe565b6123bd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c36565b6123c98484848461317e565b50505050565b6101318054610c69906140d7565b6000818152606760205260409020546060906001600160a01b031661240157600080fd5b61012d546901000000000000000000900460ff161515600114156124c9576107d082116124bb57610cec8054612436906140d7565b80601f0160208091040260200160405190810160405280929190818152602001828054612462906140d7565b80156124af5780601f10612484576101008083540402835291602001916124af565b820191906000526020600020905b81548152906001019060200180831161249257829003601f168201915b50505050509050610b2a565b610ceb8054612436906140d7565b6101308054612436906140d7565b6097546001600160a01b0316331461251f5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d80546801000000000000000060ff6a0100000000000000000000808404821615026aff000000000000000000001990931692909217818104909216150268ff000000000000000019909116179055565b6097546001600160a01b031633146125ba5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b61012d805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b6097546001600160a01b0316331461262b5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b8051611445906101319060208401906138e7565b6097546001600160a01b031633146126875760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b600047116126d75760405162461bcd60e51b815260206004820152601660248201527f4e6f2062616c616e636520746f207769746864726177000000000000000000006044820152606401610c36565b81518151146126e557600080fd5b6000805b82518110156127395782818151811061271257634e487b7160e01b600052603260045260246000fd5b6020026020010151826127259190614046565b91508061273181614134565b9150506126e9565b50806103e81461278b5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207368617265730000000000000000000000000000000000006044820152606401610c36565b50600047815b835181101561281c5761280a8582815181106127bd57634e487b7160e01b600052603260045260246000fd5b60200260200101516103e88684815181106127e857634e487b7160e01b600052603260045260246000fd5b6020026020010151856127fb919061407e565b612805919061405e565b6131fc565b8061281481614134565b915050612791565b5050505050565b610ced546000906001600160a01b031661283d848461329f565b806128cc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561288957600080fd5b505afa15801561289d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c19190613e58565b6001600160a01b0316145b806128fc57506001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b6097546001600160a01b0316331461294c5760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b8051611445906101309060208401906138e7565b6097546001600160a01b031633146129a85760405162461bcd60e51b815260206004820181905260248201526000805160206142118339815191526044820152606401610c36565b6001600160a01b038116612a245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c36565b611f0781612da0565b612a3561396b565b60408051620177008101918290529061013390610bb89082845b81546001600160a01b03168152600190910190602001808311612a4f575050505050905090565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612aab826115ca565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611445828260405180602001604052806000815250613390565b6000818152606760205260408120546001600160a01b0316612b775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c36565b6000612b82836115ca565b9050806001600160a01b0316846001600160a01b03161480612bbd5750836001600160a01b0316612bb284610bc1565b6001600160a01b0316145b806128fc57506128fc8185612823565b826001600160a01b0316612be0826115ca565b6001600160a01b031614612c5c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c36565b6001600160a01b038216612cd75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c36565b612ce2600082612a76565b6001600160a01b0383166000908152606860205260408120805460019290612d0b9084906140c0565b90915550506001600160a01b0382166000908152606860205260408120805460019290612d39908490614046565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610e1783838361340e565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612e5d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f613456565b600054610100900460ff16612ed05760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f6134ca565b600054610100900460ff16612f435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f613541565b600054610100900460ff16612fb65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61144582826135b3565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612fe3565b600080600083516041146130915760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c36565b50505060208101516040820151606090920151909260009190911a90565b816001600160a01b0316836001600160a01b031614156131115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c36565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613189848484612bcd565b61319584848484613645565b6123c95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613249576040519150601f19603f3d011682016040523d82523d6000602084013e61324e565b606091505b5050905080610e175760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610c36565b60008046600181146132b857600481146132d4576132ec565b73a5409ec958c83c3f309868babaca7c86dcb077c191506132ec565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906128fc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561334657600080fd5b505afa15801561335a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337e9190613e58565b6001600160a01b031614949350505050565b61339a838361379d565b6133a76000848484613645565b610e175760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b8161013382610bb8811061343257634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b600054610100900460ff166134c15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b61174f33612da0565b600054610100900460ff166135355760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b60fb805460ff19169055565b600054610100900460ff166135ac5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b600160c955565b600054610100900460ff1661361e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610c36565b81516136319060659060208501906138e7565b508051610e179060669060208401906138e7565b60006001600160a01b0384163b1561379257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613689903390899088908890600401613f3f565b602060405180830381600087803b1580156136a357600080fd5b505af19250505080156136d3575060408051601f3d908101601f191682019092526136d091810190613dcf565b60015b613778573d808015613701576040519150601f19603f3d011682016040523d82523d6000602084013e613706565b606091505b5080516137705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128fc565b506001949350505050565b6001600160a01b0382166137f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c36565b6000818152606760205260409020546001600160a01b0316156138585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c36565b6001600160a01b0382166000908152606860205260408120805460019290613881908490614046565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114456000838361340e565b8280546138f3906140d7565b90600052602060002090601f016020900481019282613915576000855561395b565b82601f1061392e57805160ff191683800117855561395b565b8280016001018555821561395b579182015b8281111561395b578251825591602001919060010190613940565b5061396792915061398c565b5090565b60405180620177000160405280610bb8906020820280368337509192915050565b5b80821115613967576000815560010161398d565b600067ffffffffffffffff8311156139bb576139bb614165565b6139ce601f8401601f1916602001613fcb565b90508281528383830111156139e257600080fd5b828260208301376000602084830101529392505050565b600082601f830112613a09578081fd5b81356020613a1e613a1983613ffc565b613fcb565b8281528181019085830183850287018401881015613a3a578586fd5b855b85811015613a5857813584529284019290840190600101613a3c565b5090979650505050505050565b80358015158114610b2a57600080fd5b600082601f830112613a85578081fd5b613a94838335602085016139a1565b9392505050565b600060208284031215613aac578081fd5b8135613a948161417b565b60008060408385031215613ac9578081fd5b8235613ad48161417b565b91506020830135613ae48161417b565b809150509250929050565b600080600060608486031215613b03578081fd5b8335613b0e8161417b565b92506020840135613b1e8161417b565b929592945050506040919091013590565b60008060008060808587031215613b44578081fd5b8435613b4f8161417b565b93506020850135613b5f8161417b565b925060408501359150606085013567ffffffffffffffff811115613b81578182fd5b613b8d87828801613a75565b91505092959194509250565b60008060408385031215613bab578182fd5b8235613bb68161417b565b9150602083013567ffffffffffffffff811115613bd1578182fd5b613bdd858286016139f9565b9150509250929050565b60008060408385031215613bf9578182fd5b8235613c048161417b565b9150613c1260208401613a65565b90509250929050565b600080600060608486031215613c2f578283fd5b8335613c3a8161417b565b9250602084013567ffffffffffffffff811115613c55578283fd5b613c6186828701613a75565b9250506040840135613c728161417b565b809150509250925092565b60008060408385031215613c8f578182fd5b8235613c9a8161417b565b946020939093013593505050565b60008060408385031215613cba578182fd5b823567ffffffffffffffff80821115613cd1578384fd5b818501915085601f830112613ce4578384fd5b81356020613cf4613a1983613ffc565b82815281810190858301838502870184018b1015613d10578889fd5b8896505b84871015613d3b578035613d278161417b565b835260019690960195918301918301613d14565b5096505086013592505080821115613d51578283fd5b50613bdd858286016139f9565b600060208284031215613d6f578081fd5b613a9482613a65565b60008060408385031215613d8a578182fd5b82359150602083013567ffffffffffffffff811115613da7578182fd5b613bdd85828601613a75565b600060208284031215613dc4578081fd5b8135613a9481614190565b600060208284031215613de0578081fd5b8151613a9481614190565b60008060208385031215613dfd578182fd5b823567ffffffffffffffff80821115613e14578384fd5b818501915085601f830112613e27578384fd5b813581811115613e35578485fd5b866020828501011115613e46578485fd5b60209290920196919550909350505050565b600060208284031215613e69578081fd5b8151613a948161417b565b600060208284031215613e85578081fd5b813567ffffffffffffffff811115613e9b578182fd5b8201601f81018413613eab578182fd5b6128fc848235602084016139a1565b600060208284031215613ecb578081fd5b813561ffff81168114613a94578182fd5b600060208284031215613eed578081fd5b5035919050565b60008151808452815b81811015613f1957602081850181015186830182015201613efd565b81811115613f2a5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f716080830184613ef4565b9695505050505050565b620177008101818360005b610bb8811015613faf5781516001600160a01b0316835260209283019290910190600101613f86565b50505092915050565b600060208252613a946020830184613ef4565b604051601f8201601f1916810167ffffffffffffffff81118282101715613ff457613ff4614165565b604052919050565b600067ffffffffffffffff82111561401657614016614165565b5060209081020190565b600061ffff80831681851680830382111561403d5761403d61414f565b01949350505050565b600082198211156140595761405961414f565b500190565b60008261407957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156140985761409861414f565b500290565b600061ffff838116908316818110156140b8576140b861414f565b039392505050565b6000828210156140d2576140d261414f565b500390565b6002810460018216806140eb57607f821691505b6020821081141561410c57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561412a5761412a61414f565b6001019392505050565b60006000198214156141485761414861414f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f0757600080fd5b6001600160e01b031981168114611f0757600080fdfe697066733a2f2f516d5434575771677369794552506b62397478435167437a676150775a6f6238554e614b37513856354138694d38697066733a2f2f516d59704b6343433465374a4c5877624d77504366514a4d6638364c6d78435a794d516b487733785261374666634f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203f76f552669595e176e28285a7b5b87335a78f0e1670de95855617c0f34cd62b64736f6c63430008020033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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