ETH Price: $3,284.43 (-2.12%)

Token

Old Master Memes (OMM)
 

Overview

Max Total Supply

946 OMM

Holders

319

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Hbbt2HBB: Deployer
Balance
1 OMM
0xb34E24ba5c8d0bB5c06F2afBf472a2e08E133A11
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

In ancient culture, painters expressed their view of the world in oil paintings. Some paintings from ancient times contain outrageous criticism in form of irony or hidden messages only insiders understood.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OldMasterMemes

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 50000 runs

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

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Frames.sol";

/**
 * @title OldMasterMemes contract
 */
contract OldMasterMemes is ERC721Enumerable, ERC721URIStorage, Ownable {
    string public provenanceHash = "";
    uint256 public maxOmm;
    uint256 public maxOmmPresale;
    bool public metadataFrozen;
    bool public provenanceFrozen;

    uint256 public mintIndex;

    string public baseUri;
    bool public burnIsActive;
    bool public saleIsActive;
    bool public presaleIsActive;
    uint256 public mintPricePresale;
    uint256 public mintPrice;
    uint256 public mintInterval;
    uint256 public maxPerMint;
    uint256 public maxPerUser;
    address public presaleSigner;

    bool public revealed;
    string public unrevealedTokenUri;

    mapping(address => uint256) public lastPurchase;
    mapping(bytes32 => bool) public usedLink;

    Frames public framesContract;

    event SetBaseUri(string indexed baseUri);

    modifier whenBurnIsActive() {
        require(burnIsActive, "OldMasterMemes: Burn is not active");
        _;
    }

    modifier whenSaleIsActive() {
        require(saleIsActive, "OldMasterMemes: Sale is not active");
        _;
    }

    modifier whenPresaleIsActive() {
        require(presaleIsActive, "OldMasterMemes: Presale is not active");
        _;
    }

    modifier whenMetadataIsNotFrozen() {
        require(!metadataFrozen, "OldMasterMemes: Metadata already frozen");
        _;
    }

    modifier whenProvenanceIsNotFrozen() {
        require(!provenanceFrozen, "OldMasterMemes: Provenance already frozen");
        _;
    }

    constructor() ERC721("Old Master Memes", "OMM") {
        burnIsActive = false;
        saleIsActive = false;
        presaleIsActive = false;
        maxOmm = 10000;
        maxOmmPresale = 6150;
        mintPricePresale = 69000000000000000; // 0.069 ETH
        mintPrice = 80000000000000000; // 0.08 ETH
        mintInterval = 172800;
        maxPerMint = 5;
        maxPerUser = 20;
        metadataFrozen = false;
        provenanceFrozen = false;
        revealed = false;
    }

    // ------------------
    // Explicit overrides
    // ------------------

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId) public view virtual override(ERC721URIStorage, ERC721) returns (string memory) {
        if (revealed) {
            return super.tokenURI(tokenId);
        } else {
            return unrevealedTokenUri;
        }
    }

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

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    // ------------------
    // Public functions
    // ------------------

    function mintOMM(uint256 amount) external payable whenSaleIsActive {
        require(amount <= maxPerMint, "OldMasterMemes: Amount exceeds max per mint");
        require(mintIndex + amount <= maxOmm, "OldMasterMemes: Purchase would exceed cap");
        require(mintPrice * amount <= msg.value, "OldMasterMemes: Ether value sent is not correct");
        require(
            lastPurchase[msg.sender] < block.timestamp - mintInterval,
            "OldMasterMemes: relax and wait a little. It will be a little while before you can mint again"
        );

        for (uint256 i = 0; i < amount; i++) {
            mintIndex += 1;
            _safeMint(msg.sender, mintIndex);
        }
        lastPurchase[msg.sender] = block.timestamp;
    }

    function presaleMintOMM(
        address wallet,
        uint256 maxAmount,
        uint256 timestamp,
        bytes memory signature,
        uint256 amount
    ) external payable whenPresaleIsActive {
        require(balanceOf(msg.sender) + amount <= maxPerUser, "OldMasterMemes: Amount exceeds max presale amount per user");
        require(amount <= maxAmount, "OldMasterMemes: Amount exceeds max");
        require(mintIndex + amount <= maxOmmPresale, "OldMasterMemes: Purchase would exceed presale cap");
        require(mintPricePresale * amount <= msg.value, "OldMasterMemes: Ether value sent is not correct");
        require(msg.sender == wallet, "OldMasterMemes: Wallet from signature does not match message sender");
        require(_verifySignature(wallet, maxAmount, timestamp, signature), "OldMasterMemes: Invalid signature");
        bytes32 linkHash = keccak256(signature);
        require(!usedLink[linkHash],
            "OldMasterMemes: The presale link has already been used. Please request a new one"
        );

        for (uint256 i = 0; i < amount; i++) {
            mintIndex += 1;
            _safeMint(msg.sender, mintIndex);
        }
        usedLink[linkHash] = true;
    }

    function burnForFrames(uint256 tokenId) external {
        require(ownerOf(tokenId) == msg.sender, "OldMasterMemes: Only the owner is allowed to burn his token");
        _burn(tokenId);
        framesContract.mintFrames(msg.sender);
    }

    function burn(uint256 tokenId) external whenBurnIsActive {
        require(ownerOf(tokenId) == msg.sender, "OldMasterMemes: Only the owner is allowed to burn his token");
        _burn(tokenId);
    }

    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            for (uint256 index; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(owner, index);
            }
            return result;
        }
    }

    // ------------------
    // Owner functions
    // ------------------

    function setMaxPerMint(uint256 _maxPerMint) external onlyOwner {
        maxPerMint = _maxPerMint;
    }

    function setMintPricePresale(uint256 _mintPricePresale) external onlyOwner {
        mintPricePresale = _mintPricePresale;
    }

    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

    function setMintInterval(uint256 _mintInterval) external onlyOwner {
        mintInterval = _mintInterval;
    }

    function setMaxPerUser(uint256 _maxPerUser) external onlyOwner {
        maxPerUser = _maxPerUser;
    }

    function setBaseUri(string memory _baseUri) external onlyOwner whenMetadataIsNotFrozen {
        baseUri = _baseUri;
        emit SetBaseUri(baseUri);
    }

    function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyOwner whenMetadataIsNotFrozen {
        super._setTokenURI(tokenId, _tokenURI);
    }

    function setPresaleSigner(address _presaleSigner) external onlyOwner {
        presaleSigner = _presaleSigner;
    }

    function mintForCommunity(address to, uint256 numberOfTokens) external onlyOwner {
        require(to != address(0), "OldMasterMemes: Cannot mint to zero address");
        require(mintIndex + numberOfTokens <= maxOmm, "OldMasterMemes: Minting would exceed cap");

        for (uint256 i = 0; i < numberOfTokens; i++) {
            mintIndex += 1;
            _safeMint(to, mintIndex);
        }
    }

    function setProvenanceHash(string memory _provenanceHash) external onlyOwner whenProvenanceIsNotFrozen {
        provenanceHash = _provenanceHash;
    }

    function setFramesContract(Frames _framesContract) external onlyOwner {
        framesContract = _framesContract;
    }

    function setMaxOmmPresale(uint256 _maxOmmPresale) external onlyOwner {
        maxOmmPresale = _maxOmmPresale;
    }

    function setUnrevealedTokenUri(string memory _unrevealedTokenUri) external onlyOwner whenMetadataIsNotFrozen {
        unrevealedTokenUri = _unrevealedTokenUri;
    }

    function reveal() external onlyOwner {
        revealed = true;
    }

    function toggleBurnState() external onlyOwner {
        burnIsActive = !burnIsActive;
    }

    function toggleSaleState() external onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function togglePresaleState() external onlyOwner {
        presaleIsActive = !presaleIsActive;
    }

    function withdraw(
        address mainShareholder1,
        address mainShareholder2,
        address fivePercentShareholder1,
        address onePercentShareholder1,
        address onePercentShareholder2
    ) external onlyOwner {
        uint256 balance = address(this).balance;
        uint256 fivePercentShare = (balance * 5) / 100;
        payable(fivePercentShareholder1).transfer(fivePercentShare);
        uint256 onePercentShare = balance / 100;
        payable(onePercentShareholder1).transfer(onePercentShare);
        payable(onePercentShareholder2).transfer(onePercentShare);
        uint256 restShare = (balance - fivePercentShare - 2 * onePercentShare) / 2;
        payable(mainShareholder1).transfer(restShare);
        payable(mainShareholder2).transfer(restShare);
    }

    function emergencyWithdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function emergencyRecoverTokens(
        IERC20 token,
        address receiver,
        uint256 amount
    ) external onlyOwner {
        require(receiver != address(0), "Cannot recover tokens to the 0 address");
        token.transfer(receiver, amount);
    }

    function freezeMetadata() external onlyOwner whenMetadataIsNotFrozen {
        metadataFrozen = true;
    }

    function freezeProvenance() external onlyOwner whenProvenanceIsNotFrozen {
        provenanceFrozen = true;
    }

    // ------------------
    // Internal functions
    // ------------------

    function _splitSignature(bytes memory signature)
        private
        pure
        returns (
            uint8,
            bytes32,
            bytes32
        )
    {
        bytes32 sigR;
        bytes32 sigS;
        uint8 sigV;
        assembly {
            sigR := mload(add(signature, 32))
            sigS := mload(add(signature, 64))
            sigV := byte(0, mload(add(signature, 96)))
        }
        return (sigV, sigR, sigS);
    }

    /**
     * Restores the signer of the signed message and checks if it was signed by the trusted signer and also
     * contains the parameters.
     */
    function _verifySignature(
        address wallet,
        uint256 maxAmount,
        uint256 timestamp,
        bytes memory signature
    ) private view returns (bool) {
        bytes32 sigR;
        bytes32 sigS;
        uint8 sigV;
        (sigV, sigR, sigS) = _splitSignature(signature);
        bytes32 message = keccak256(abi.encodePacked(wallet, maxAmount, timestamp));
        return presaleSigner == ecrecover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", message)), sigV, sigR, sigS);
    }
}

File 2 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 3 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 4 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title Frames contract
 */
contract Frames is ERC721Enumerable, ERC721URIStorage, Ownable {
    bool public metadataFrozen;

    mapping(uint256 => bool) claimedFrames;

    string public baseUri;
    address public ommContractAddress;

    event SetBaseUri(string indexed baseUri);
    event MintFrame(uint256 frameId);

    modifier whenMetadataIsNotFrozen() {
        require(!metadataFrozen, "Frames: Metadata already frozen.");
        _;
    }

    modifier onlyOMMContract() {
        require(msg.sender == ommContractAddress, "Frames: Only the OMM Contract is allowed to call this function.");
        _;
    }

    constructor(address _ommContractAddress) ERC721("Frame", "FRM") {
        metadataFrozen = false;
        ommContractAddress = _ommContractAddress;
    }

    // ------------------
    // Explicit overrides
    // ------------------

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId) public view virtual override(ERC721URIStorage, ERC721) returns (string memory) {
        return super.tokenURI(tokenId);
    }

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

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    // ------------------
    // Public functions
    // ------------------

    /**
     * Receive two frames when burning one OMM
     */
    function mintFrames(address owner) external onlyOMMContract {
        _mintFrame(owner);
        _mintFrame(owner);
    }

    function claimFreeFrame(uint256 ommTokenId) external {
        require(!claimedFrames[ommTokenId], "Frames: The free frame has already been claimed for the OMM.");
        require(IERC721(ommContractAddress).ownerOf(ommTokenId) == msg.sender, "Frames: The sender does not own the OMM.");

        _mintFrame(msg.sender);
        claimedFrames[ommTokenId] = true;
    }

    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            for (uint256 index; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(owner, index);
            }
            return result;
        }
    }

    // ------------------
    // Internal functions
    // ------------------

    function _mintFrame(address owner) internal {
        uint256 mintIndex = totalSupply() + 1;
        _safeMint(owner, mintIndex);
        emit MintFrame(mintIndex);
    }

    // ------------------
    // Owner functions
    // ------------------

    function setOmmContractAddress(address _ommContractAddress) external onlyOwner {
        ommContractAddress = _ommContractAddress;
    }

    function setBaseUri(string memory _baseUri) external onlyOwner whenMetadataIsNotFrozen {
        baseUri = _baseUri;
        emit SetBaseUri(baseUri);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI) external onlyOwner whenMetadataIsNotFrozen {
        super._setTokenURI(tokenId, tokenURI);
    }

    function freezeMetadata() external onlyOwner whenMetadataIsNotFrozen {
        metadataFrozen = true;
    }
}

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 = ERC721.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //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 = ERC721.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);
    }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        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);
    }

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

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

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 13 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 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"baseUri","type":"string"}],"name":"SetBaseUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"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":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnForFrames","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyRecoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"framesContract","outputs":[{"internalType":"contract Frames","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOmm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOmmPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintForCommunity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintOMM","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPricePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"presaleMintOMM","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract Frames","name":"_framesContract","type":"address"}],"name":"setFramesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxOmmPresale","type":"uint256"}],"name":"setMaxOmmPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerMint","type":"uint256"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerUser","type":"uint256"}],"name":"setMaxPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintInterval","type":"uint256"}],"name":"setMintInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPricePresale","type":"uint256"}],"name":"setMintPricePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_presaleSigner","type":"address"}],"name":"setPresaleSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedTokenUri","type":"string"}],"name":"setUnrevealedTokenUri","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":"toggleBurnState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedLink","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mainShareholder1","type":"address"},{"internalType":"address","name":"mainShareholder2","type":"address"},{"internalType":"address","name":"fivePercentShareholder1","type":"address"},{"internalType":"address","name":"onePercentShareholder1","type":"address"},{"internalType":"address","name":"onePercentShareholder2","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040819052600060808190526200001b91600c9162000164565b503480156200002957600080fd5b50604080518082018252601081526f4f6c64204d6173746572204d656d657360801b6020808301918252835180850190945260038452624f4d4d60e81b9084015281519192916200007d9160009162000164565b5080516200009390600190602084019062000164565b505050620000b0620000aa6200010e60201b60201c565b62000112565b6012805462ffffff19169055612710600d55611806600e5566f523226980800060135567011c37937e08000060149081556202a3006015556005601655601755600f805461ffff191690556018805460ff60a01b1916905562000247565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000172906200020a565b90600052602060002090601f016020900481019282620001965760008555620001e1565b82601f10620001b157805160ff1916838001178555620001e1565b82800160010185558215620001e1579182015b82811115620001e1578251825591602001919060010190620001c4565b50620001ef929150620001f3565b5090565b5b80821115620001ef5760008155600101620001f4565b600181811c908216806200021f57607f821691505b602082108114156200024157634e487b7160e01b600052602260045260246000fd5b50919050565b6152e480620002576000396000f3fe60806040526004361061042f5760003560e01c80638462151c11610228578063d37ae3bc11610128578063e985e9c5116100bb578063f4a0a5281161008a578063fb3cc6c21161006f578063fb3cc6c214610c36578063fcf0623e14610c50578063fde9ea2b14610c7057600080fd5b8063f4a0a52814610c00578063f74f9bfd14610c2057600080fd5b8063e985e9c514610b56578063eb8d244414610bac578063f285e69e14610bcb578063f2fde38b14610be057600080fd5b8063db6242c3116100f7578063db6242c314610ae1578063e110976f14610b01578063e1abf5d314610b21578063e7d773a014610b4157600080fd5b8063d37ae3bc14610a8e578063d67507a314610aa4578063daaeec8614610ab7578063db2e21bc14610acc57600080fd5b8063a475b5dd116101bb578063be99aaa71161018a578063c87b56dd1161016f578063c87b56dd14610a39578063cada2a1814610a59578063d111515d14610a7957600080fd5b8063be99aaa714610a0f578063c6ab67a314610a2457600080fd5b8063a475b5dd146109a4578063b0cbd80c146109b9578063b88d4fde146109cf578063b9f67b25146109ef57600080fd5b806395d89b41116101f757806395d89b411461093a5780639abc83201461094f578063a0bcfc7f14610964578063a22cb4651461098457600080fd5b80638462151c146108af5780638b88c76d146108dc5780638d94c9c2146108fc5780638da5cb5b1461090f57600080fd5b8063421da68a116103335780636352211e116102c657806370a08231116102955780637f0ef0331161027a5780637f0ef033146108425780638091c00e1461086f578063813dcee71461088f57600080fd5b806370a082311461080d578063715018a61461082d57600080fd5b80636352211e146107a757806366caa6ab146107c75780636817c76c146107e157806369a788c4146107f757600080fd5b80634f558e79116103025780634f558e791461071f5780634f6ccce71461073f578063507e094f1461075f578063518302271461077557600080fd5b8063421da68a1461069257806342842e0e146106bf57806342966c68146106df5780634e114e19146106ff57600080fd5b8063131fd84d116103c657806323b872dd116103955780632f745c591161037a5780632f745c591461062557806330f72cd4146106455780633ea85b901461066557600080fd5b806323b872dd146105e5578063273ba2691461060557600080fd5b8063131fd84d1461056157806314ea928a14610591578063162094c4146105b057806318160ddd146105d057600080fd5b8063081812fc11610402578063081812fc146104c4578063095ea7b3146105095780630e726e6b1461052b578063109695231461054157600080fd5b806301ffc9a71461043457806306c536ab1461046957806306d586bb1461048b57806306fdde03146104af575b600080fd5b34801561044057600080fd5b5061045461044f366004614d7c565b610c90565b60405190151581526020015b60405180910390f35b34801561047557600080fd5b5061047e610cec565b604051610460919061500b565b34801561049757600080fd5b506104a160175481565b604051908152602001610460565b3480156104bb57600080fd5b5061047e610d7a565b3480156104d057600080fd5b506104e46104df366004614d63565b610e0c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610460565b34801561051557600080fd5b50610529610524366004614caf565b610ed1565b005b34801561053757600080fd5b506104a160155481565b34801561054d57600080fd5b5061052961055c366004614db6565b61102a565b34801561056d57600080fd5b5061045461057c366004614d63565b601b6020526000908152604090205460ff1681565b34801561059d57600080fd5b50600f5461045490610100900460ff1681565b3480156105bc57600080fd5b506105296105cb366004614deb565b611126565b3480156105dc57600080fd5b506008546104a1565b3480156105f157600080fd5b50610529610600366004614bd4565b611210565b34801561061157600080fd5b50610529610620366004614b0d565b611297565b34801561063157600080fd5b506104a1610640366004614caf565b611345565b34801561065157600080fd5b506012546104549062010000900460ff1681565b34801561067157600080fd5b506018546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b34801561069e57600080fd5b506104a16106ad366004614b0d565b601a6020526000908152604090205481565b3480156106cb57600080fd5b506105296106da366004614bd4565b6113fa565b3480156106eb57600080fd5b506105296106fa366004614d63565b611415565b34801561070b57600080fd5b5061052961071a366004614caf565b61152c565b34801561072b57600080fd5b5061045461073a366004614d63565b6116e4565b34801561074b57600080fd5b506104a161075a366004614d63565b611710565b34801561076b57600080fd5b506104a160165481565b34801561078157600080fd5b506018546104549074010000000000000000000000000000000000000000900460ff1681565b3480156107b357600080fd5b506104e46107c2366004614d63565b6117b4565b3480156107d357600080fd5b506012546104549060ff1681565b3480156107ed57600080fd5b506104a160145481565b34801561080357600080fd5b506104a1600d5481565b34801561081957600080fd5b506104a1610828366004614b0d565b61184c565b34801561083957600080fd5b50610529611900565b34801561084e57600080fd5b50601c546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b34801561087b57600080fd5b5061052961088a366004614b63565b611973565b34801561089b57600080fd5b506105296108aa366004614d63565b611b95565b3480156108bb57600080fd5b506108cf6108ca366004614b0d565b611c01565b6040516104609190614fc7565b3480156108e857600080fd5b506105296108f7366004614d63565b611cc0565b61052961090a366004614cdb565b611d2c565b34801561091b57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff166104e4565b34801561094657600080fd5b5061047e61221b565b34801561095b57600080fd5b5061047e61222a565b34801561097057600080fd5b5061052961097f366004614db6565b612237565b34801561099057600080fd5b5061052961099f366004614c81565b61236d565b3480156109b057600080fd5b5061052961246a565b3480156109c557600080fd5b506104a1600e5481565b3480156109db57600080fd5b506105296109ea366004614c15565b612512565b3480156109fb57600080fd5b50610529610a0a366004614b0d565b6125a0565b348015610a1b57600080fd5b5061052961264e565b348015610a3057600080fd5b5061047e6126e7565b348015610a4557600080fd5b5061047e610a54366004614d63565b6126f4565b348015610a6557600080fd5b50610529610a74366004614d63565b6127b5565b348015610a8557600080fd5b50610529612821565b348015610a9a57600080fd5b506104a160135481565b610529610ab2366004614d63565b61292e565b348015610ac357600080fd5b50610529612c3a565b348015610ad857600080fd5b50610529612cdb565b348015610aed57600080fd5b50610529610afc366004614d63565b612d71565b348015610b0d57600080fd5b50610529610b1c366004614bd4565b612ddd565b348015610b2d57600080fd5b50610529610b3c366004614db6565b612f75565b348015610b4d57600080fd5b50610529613068565b348015610b6257600080fd5b50610454610b71366004614b2a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bb857600080fd5b5060125461045490610100900460ff1681565b348015610bd757600080fd5b5061052961317b565b348015610bec57600080fd5b50610529610bfb366004614b0d565b61321d565b348015610c0c57600080fd5b50610529610c1b366004614d63565b613316565b348015610c2c57600080fd5b506104a160105481565b348015610c4257600080fd5b50600f546104549060ff1681565b348015610c5c57600080fd5b50610529610c6b366004614d63565b613382565b348015610c7c57600080fd5b50610529610c8b366004614d63565b6134a4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ce65750610ce682613510565b92915050565b60198054610cf9906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610d25906150ca565b8015610d725780601f10610d4757610100808354040283529160200191610d72565b820191906000526020600020905b815481529060010190602001808311610d5557829003601f168201915b505050505081565b606060008054610d89906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610db5906150ca565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610ea85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610edc826117b4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f805760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610fa95750610fa98133610b71565b61101b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e9f565b6110258383613566565b505050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146110915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f54610100900460ff161561110f5760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a2050726f76656e616e636520616c72656160448201527f64792066726f7a656e00000000000000000000000000000000000000000000006064820152608401610e9f565b805161112290600c906020840190614993565b5050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461118d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156112065760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b6111228282613606565b61121a33826136bc565b61128c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e9f565b611025838383613812565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146112fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006113508361184c565b82106113c45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610e9f565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b61102583838360405180602001604052806000815250612512565b60125460ff1661148d5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a204275726e206973206e6f74206163746960448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b33611497826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146115205760405162461bcd60e51b815260206004820152603b60248201527f4f6c644d61737465724d656d65733a204f6e6c7920746865206f776e6572206960448201527f7320616c6c6f77656420746f206275726e2068697320746f6b656e00000000006064820152608401610e9f565b61152981613a50565b50565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146115935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff821661161c5760405162461bcd60e51b815260206004820152602b60248201527f4f6c644d61737465724d656d65733a2043616e6e6f74206d696e7420746f207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610e9f565b600d548160105461162d919061501e565b11156116a15760405162461bcd60e51b815260206004820152602860248201527f4f6c644d61737465724d656d65733a204d696e74696e6720776f756c6420657860448201527f63656564206361700000000000000000000000000000000000000000000000006064820152608401610e9f565b60005b81811015611025576001601060008282546116bf919061501e565b925050819055506116d283601054613a59565b806116dc81615118565b9150506116a4565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff161515610ce6565b600061171b60085490565b821061178f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610e9f565b600882815481106117a2576117a26151f2565b90600052602060002001549050919050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610ce65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610e9f565b600073ffffffffffffffffffffffffffffffffffffffff82166118d75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610e9f565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146119675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b6119716000613a73565b565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146119da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b47600060646119ea83600561504a565b6119f49190615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f19350505050158015611a3a573d6000803e3d6000fd5b506000611a48606484615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f19350505050158015611a8e573d6000803e3d6000fd5b5060405173ffffffffffffffffffffffffffffffffffffffff85169082156108fc029083906000818181858888f19350505050158015611ad2573d6000803e3d6000fd5b5060006002611ae1838261504a565b611aeb8587615087565b611af59190615087565b611aff9190615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff8a169082156108fc029083906000818181858888f19350505050158015611b45573d6000803e3d6000fd5b5060405173ffffffffffffffffffffffffffffffffffffffff89169082156108fc029083906000818181858888f19350505050158015611b89573d6000803e3d6000fd5b50505050505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611bfc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601755565b60606000611c0e8361184c565b905080611c2f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611c4a57611c4a615221565b604051908082528060200260200182016040528015611c73578160200160208202803683370190505b50905060005b82811015611c2757611c8b8582611345565b828281518110611c9d57611c9d6151f2565b602090810291909101015280611cb281615118565b915050611c79565b50919050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611d275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600e55565b60125462010000900460ff16611daa5760405162461bcd60e51b815260206004820152602560248201527f4f6c644d61737465724d656d65733a2050726573616c65206973206e6f74206160448201527f63746976650000000000000000000000000000000000000000000000000000006064820152608401610e9f565b60175481611db73361184c565b611dc1919061501e565b1115611e355760405162461bcd60e51b815260206004820152603a60248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f61782070726573616c6520616d6f756e742070657220757365720000000000006064820152608401610e9f565b83811115611eab5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f61780000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b600e5481601054611ebc919061501e565b1115611f305760405162461bcd60e51b815260206004820152603160248201527f4f6c644d61737465724d656d65733a20507572636861736520776f756c64206560448201527f78636565642070726573616c65206361700000000000000000000000000000006064820152608401610e9f565b3481601354611f3f919061504a565b1115611fb35760405162461bcd60e51b815260206004820152602f60248201527f4f6c644d61737465724d656d65733a2045746865722076616c75652073656e7460448201527f206973206e6f7420636f727265637400000000000000000000000000000000006064820152608401610e9f565b3373ffffffffffffffffffffffffffffffffffffffff8616146120645760405162461bcd60e51b815260206004820152604360248201527f4f6c644d61737465724d656d65733a2057616c6c65742066726f6d207369676e60448201527f617475726520646f6573206e6f74206d61746368206d6573736167652073656e60648201527f6465720000000000000000000000000000000000000000000000000000000000608482015260a401610e9f565b61207085858585613aea565b6120e25760405162461bcd60e51b815260206004820152602160248201527f4f6c644d61737465724d656d65733a20496e76616c6964207369676e6174757260448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b81516020808401919091206000818152601b90925260409091205460ff16156121995760405162461bcd60e51b815260206004820152605060248201527f4f6c644d61737465724d656d65733a205468652070726573616c65206c696e6b60448201527f2068617320616c7265616479206265656e20757365642e20506c65617365207260648201527f6571756573742061206e6577206f6e6500000000000000000000000000000000608482015260a401610e9f565b60005b828110156121dc576001601060008282546121b7919061501e565b925050819055506121ca33601054613a59565b806121d481615118565b91505061219c565b506000908152601b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b606060018054610d89906150ca565b60118054610cf9906150ca565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461229e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156123175760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b805161232a906011906020840190614993565b50601160405161233a9190614eab565b604051908190038120907fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d590600090a250565b73ffffffffffffffffffffffffffffffffffffffff82163314156123d35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e9f565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146124d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b61251c33836136bc565b61258e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e9f565b61259a84848484613c7f565b50505050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b600c8054610cf9906150ca565b60185460609074010000000000000000000000000000000000000000900460ff161561272357610ce682613d08565b60198054612730906150ca565b80601f016020809104026020016040519081016040528092919081815260200182805461275c906150ca565b80156127a95780601f1061277e576101008083540402835291602001916127a9565b820191906000526020600020905b81548152906001019060200180831161278c57829003601f168201915b50505050509050919050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461281c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601555565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146128885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156129015760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b601254610100900460ff166129ab5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a2053616c65206973206e6f74206163746960448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b601654811115612a235760405162461bcd60e51b815260206004820152602b60248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f617820706572206d696e740000000000000000000000000000000000000000006064820152608401610e9f565b600d5481601054612a34919061501e565b1115612aa85760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a20507572636861736520776f756c64206560448201527f78636565642063617000000000000000000000000000000000000000000000006064820152608401610e9f565b3481601454612ab7919061504a565b1115612b2b5760405162461bcd60e51b815260206004820152602f60248201527f4f6c644d61737465724d656d65733a2045746865722076616c75652073656e7460448201527f206973206e6f7420636f727265637400000000000000000000000000000000006064820152608401610e9f565b601554612b389042615087565b336000908152601a602052604090205410612be15760405162461bcd60e51b815260206004820152605c60248201527f4f6c644d61737465724d656d65733a2072656c617820616e642077616974206160448201527f206c6974746c652e2049742077696c6c2062652061206c6974746c652077686960648201527f6c65206265666f726520796f752063616e206d696e7420616761696e00000000608482015260a401610e9f565b60005b81811015612c2457600160106000828254612bff919061501e565b92505081905550612c1233601054613a59565b80612c1c81615118565b915050612be4565b5050336000908152601a60205260409020429055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612ca15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612d425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b6040514790339082156108fc029083906000818181858888f19350505050158015611122573d6000803e3d6000fd5b600b5473ffffffffffffffffffffffffffffffffffffffff163314612dd85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601655565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612e445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff8216612ecd5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74207265636f76657220746f6b656e7320746f207468652030206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e9f565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b158015612f3d57600080fd5b505af1158015612f51573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259a9190614d46565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612fdc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156130555760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b8051611122906019906020840190614993565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146130cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f54610100900460ff161561314d5760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a2050726f76656e616e636520616c72656160448201527f64792066726f7a656e00000000000000000000000000000000000000000000006064820152608401610e9f565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146131e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146132845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff811661330d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e9f565b61152981613a73565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461337d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601455565b3361338c826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146134155760405162461bcd60e51b815260206004820152603b60248201527f4f6c644d61737465724d656d65733a204f6e6c7920746865206f776e6572206960448201527f7320616c6c6f77656420746f206275726e2068697320746f6b656e00000000006064820152608401610e9f565b61341e81613a50565b601c546040517f610bdd0500000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff9091169063610bdd0590602401600060405180830381600087803b15801561348957600080fd5b505af115801561349d573d6000803e3d6000fd5b5050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461350b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601355565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ce65750610ce682613e93565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906135c0826117b4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1661369d5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610e9f565b6000828152600a60209081526040909120825161102592840190614993565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166137535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610e9f565b600061375e836117b4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806137cd57508373ffffffffffffffffffffffffffffffffffffffff166137b584610e0c565b73ffffffffffffffffffffffffffffffffffffffff16145b8061380a575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613832826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146138bb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610e9f565b73ffffffffffffffffffffffffffffffffffffffff82166139435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b61394e838383613f76565b613959600082613566565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061398f908490615087565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906139ca90849061501e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61152981613f81565b611122828260405180602001604052806000815250613fc1565b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080600080613b0d856020810151604082015160609092015160001a92909190565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608d901b166020820152603481018b9052605481018a90529195509350909150600090607401604051602081830303815290604052805190602001209050600181604051602001613baf91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613c2b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015160185473ffffffffffffffffffffffffffffffffffffffff9182169116149a9950505050505050505050565b613c8a848484613812565b613c968484848461404a565b61259a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613da25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610e9f565b6000828152600a602052604081208054613dbb906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054613de7906150ca565b8015613e345780601f10613e0957610100808354040283529160200191613e34565b820191906000526020600020905b815481529060010190602001808311613e1757829003601f168201915b505050505090506000613e4561422c565b9050805160001415613e58575092915050565b815115613e8a578082604051602001613e72929190614e7c565b60405160208183030381529060405292505050919050565b61380a8461423b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613f2657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ce657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610ce6565b611025838383614331565b613f8a81614437565b6000818152600a602052604090208054613fa3906150ca565b159050611529576000818152600a6020526040812061152991614a17565b613fcb8383614510565b613fd8600084848461404a565b6110255760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614224576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906140c1903390899088908890600401614f7e565b602060405180830381600087803b1580156140db57600080fd5b505af1925050508015614129575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261412691810190614d99565b60015b6141d9573d808015614157576040519150601f19603f3d011682016040523d82523d6000602084013e61415c565b606091505b5080516141d15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061380a565b50600161380a565b606060118054610d89906150ca565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166142d55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e9f565b60006142df61422c565b905060008151116142ff576040518060200160405280600081525061432a565b80614309846146aa565b60405160200161431a929190614e7c565b6040516020818303038152906040525b9392505050565b73ffffffffffffffffffffffffffffffffffffffff83166143995761439481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6143d6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146143d6576143d683826147dc565b73ffffffffffffffffffffffffffffffffffffffff82166143fa5761102581614893565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611025576110258282614942565b6000614442826117b4565b905061445081600084613f76565b61445b600083613566565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290614491908490615087565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b73ffffffffffffffffffffffffffffffffffffffff82166145735760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e9f565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156145e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e9f565b6145f160008383613f76565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061462790849061501e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816146ea57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561471457806146fe81615118565b915061470d9050600a83615036565b91506146ee565b60008167ffffffffffffffff81111561472f5761472f615221565b6040519080825280601f01601f191660200182016040528015614759576020820181803683370190505b5090505b841561380a5761476e600183615087565b915061477b600a86615151565b61478690603061501e565b60f81b81838151811061479b5761479b6151f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506147d5600a86615036565b945061475d565b600060016147e98461184c565b6147f39190615087565b6000838152600760205260409020549091508082146148535773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906148a590600190615087565b600083815260096020526040812054600880549394509092849081106148cd576148cd6151f2565b9060005260206000200154905080600883815481106148ee576148ee6151f2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614926576149266151c3565b6001900381819060005260206000200160009055905550505050565b600061494d8361184c565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461499f906150ca565b90600052602060002090601f0160209004810192826149c15760008555614a07565b82601f106149da57805160ff1916838001178555614a07565b82800160010185558215614a07579182015b82811115614a075782518255916020019190600101906149ec565b50614a13929150614a4d565b5090565b508054614a23906150ca565b6000825580601f10614a33575050565b601f01602090049060005260206000209081019061152991905b5b80821115614a135760008155600101614a4e565b600082601f830112614a7357600080fd5b813567ffffffffffffffff80821115614a8e57614a8e615221565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715614ad457614ad4615221565b81604052838152866020858801011115614aed57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215614b1f57600080fd5b813561432a81615250565b60008060408385031215614b3d57600080fd5b8235614b4881615250565b91506020830135614b5881615250565b809150509250929050565b600080600080600060a08688031215614b7b57600080fd5b8535614b8681615250565b94506020860135614b9681615250565b93506040860135614ba681615250565b92506060860135614bb681615250565b91506080860135614bc681615250565b809150509295509295909350565b600080600060608486031215614be957600080fd5b8335614bf481615250565b92506020840135614c0481615250565b929592945050506040919091013590565b60008060008060808587031215614c2b57600080fd5b8435614c3681615250565b93506020850135614c4681615250565b925060408501359150606085013567ffffffffffffffff811115614c6957600080fd5b614c7587828801614a62565b91505092959194509250565b60008060408385031215614c9457600080fd5b8235614c9f81615250565b91506020830135614b5881615272565b60008060408385031215614cc257600080fd5b8235614ccd81615250565b946020939093013593505050565b600080600080600060a08688031215614cf357600080fd5b8535614cfe81615250565b94506020860135935060408601359250606086013567ffffffffffffffff811115614d2857600080fd5b614d3488828901614a62565b95989497509295608001359392505050565b600060208284031215614d5857600080fd5b815161432a81615272565b600060208284031215614d7557600080fd5b5035919050565b600060208284031215614d8e57600080fd5b813561432a81615280565b600060208284031215614dab57600080fd5b815161432a81615280565b600060208284031215614dc857600080fd5b813567ffffffffffffffff811115614ddf57600080fd5b61380a84828501614a62565b60008060408385031215614dfe57600080fd5b82359150602083013567ffffffffffffffff811115614e1c57600080fd5b614e2885828601614a62565b9150509250929050565b60008151808452614e4a81602086016020860161509e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351614e8e81846020880161509e565b835190830190614ea281836020880161509e565b01949350505050565b600080835481600182811c915080831680614ec757607f831692505b6020808410821415614f00577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015614f145760018114614f4357614f70565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614f70565b60008a81526020902060005b86811015614f685781548b820152908501908301614f4f565b505084890196505b509498975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614fbd6080830184614e32565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614fff57835183529284019291840191600101614fe3565b50909695505050505050565b60208152600061432a6020830184614e32565b6000821982111561503157615031615165565b500190565b60008261504557615045615194565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561508257615082615165565b500290565b60008282101561509957615099615165565b500390565b60005b838110156150b95781810151838201526020016150a1565b8381111561259a5750506000910152565b600181811c908216806150de57607f821691505b60208210811415611cba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561514a5761514a615165565b5060010190565b60008261516057615160615194565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461152957600080fd5b801515811461152957600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461152957600080fdfea264697066735822122066bb9bb9d0c2645515c7ecfe1a3b48cfdb9683ef8072aef8f0974ad279780d1064736f6c63430008070033

Deployed Bytecode

0x60806040526004361061042f5760003560e01c80638462151c11610228578063d37ae3bc11610128578063e985e9c5116100bb578063f4a0a5281161008a578063fb3cc6c21161006f578063fb3cc6c214610c36578063fcf0623e14610c50578063fde9ea2b14610c7057600080fd5b8063f4a0a52814610c00578063f74f9bfd14610c2057600080fd5b8063e985e9c514610b56578063eb8d244414610bac578063f285e69e14610bcb578063f2fde38b14610be057600080fd5b8063db6242c3116100f7578063db6242c314610ae1578063e110976f14610b01578063e1abf5d314610b21578063e7d773a014610b4157600080fd5b8063d37ae3bc14610a8e578063d67507a314610aa4578063daaeec8614610ab7578063db2e21bc14610acc57600080fd5b8063a475b5dd116101bb578063be99aaa71161018a578063c87b56dd1161016f578063c87b56dd14610a39578063cada2a1814610a59578063d111515d14610a7957600080fd5b8063be99aaa714610a0f578063c6ab67a314610a2457600080fd5b8063a475b5dd146109a4578063b0cbd80c146109b9578063b88d4fde146109cf578063b9f67b25146109ef57600080fd5b806395d89b41116101f757806395d89b411461093a5780639abc83201461094f578063a0bcfc7f14610964578063a22cb4651461098457600080fd5b80638462151c146108af5780638b88c76d146108dc5780638d94c9c2146108fc5780638da5cb5b1461090f57600080fd5b8063421da68a116103335780636352211e116102c657806370a08231116102955780637f0ef0331161027a5780637f0ef033146108425780638091c00e1461086f578063813dcee71461088f57600080fd5b806370a082311461080d578063715018a61461082d57600080fd5b80636352211e146107a757806366caa6ab146107c75780636817c76c146107e157806369a788c4146107f757600080fd5b80634f558e79116103025780634f558e791461071f5780634f6ccce71461073f578063507e094f1461075f578063518302271461077557600080fd5b8063421da68a1461069257806342842e0e146106bf57806342966c68146106df5780634e114e19146106ff57600080fd5b8063131fd84d116103c657806323b872dd116103955780632f745c591161037a5780632f745c591461062557806330f72cd4146106455780633ea85b901461066557600080fd5b806323b872dd146105e5578063273ba2691461060557600080fd5b8063131fd84d1461056157806314ea928a14610591578063162094c4146105b057806318160ddd146105d057600080fd5b8063081812fc11610402578063081812fc146104c4578063095ea7b3146105095780630e726e6b1461052b578063109695231461054157600080fd5b806301ffc9a71461043457806306c536ab1461046957806306d586bb1461048b57806306fdde03146104af575b600080fd5b34801561044057600080fd5b5061045461044f366004614d7c565b610c90565b60405190151581526020015b60405180910390f35b34801561047557600080fd5b5061047e610cec565b604051610460919061500b565b34801561049757600080fd5b506104a160175481565b604051908152602001610460565b3480156104bb57600080fd5b5061047e610d7a565b3480156104d057600080fd5b506104e46104df366004614d63565b610e0c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610460565b34801561051557600080fd5b50610529610524366004614caf565b610ed1565b005b34801561053757600080fd5b506104a160155481565b34801561054d57600080fd5b5061052961055c366004614db6565b61102a565b34801561056d57600080fd5b5061045461057c366004614d63565b601b6020526000908152604090205460ff1681565b34801561059d57600080fd5b50600f5461045490610100900460ff1681565b3480156105bc57600080fd5b506105296105cb366004614deb565b611126565b3480156105dc57600080fd5b506008546104a1565b3480156105f157600080fd5b50610529610600366004614bd4565b611210565b34801561061157600080fd5b50610529610620366004614b0d565b611297565b34801561063157600080fd5b506104a1610640366004614caf565b611345565b34801561065157600080fd5b506012546104549062010000900460ff1681565b34801561067157600080fd5b506018546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b34801561069e57600080fd5b506104a16106ad366004614b0d565b601a6020526000908152604090205481565b3480156106cb57600080fd5b506105296106da366004614bd4565b6113fa565b3480156106eb57600080fd5b506105296106fa366004614d63565b611415565b34801561070b57600080fd5b5061052961071a366004614caf565b61152c565b34801561072b57600080fd5b5061045461073a366004614d63565b6116e4565b34801561074b57600080fd5b506104a161075a366004614d63565b611710565b34801561076b57600080fd5b506104a160165481565b34801561078157600080fd5b506018546104549074010000000000000000000000000000000000000000900460ff1681565b3480156107b357600080fd5b506104e46107c2366004614d63565b6117b4565b3480156107d357600080fd5b506012546104549060ff1681565b3480156107ed57600080fd5b506104a160145481565b34801561080357600080fd5b506104a1600d5481565b34801561081957600080fd5b506104a1610828366004614b0d565b61184c565b34801561083957600080fd5b50610529611900565b34801561084e57600080fd5b50601c546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b34801561087b57600080fd5b5061052961088a366004614b63565b611973565b34801561089b57600080fd5b506105296108aa366004614d63565b611b95565b3480156108bb57600080fd5b506108cf6108ca366004614b0d565b611c01565b6040516104609190614fc7565b3480156108e857600080fd5b506105296108f7366004614d63565b611cc0565b61052961090a366004614cdb565b611d2c565b34801561091b57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff166104e4565b34801561094657600080fd5b5061047e61221b565b34801561095b57600080fd5b5061047e61222a565b34801561097057600080fd5b5061052961097f366004614db6565b612237565b34801561099057600080fd5b5061052961099f366004614c81565b61236d565b3480156109b057600080fd5b5061052961246a565b3480156109c557600080fd5b506104a1600e5481565b3480156109db57600080fd5b506105296109ea366004614c15565b612512565b3480156109fb57600080fd5b50610529610a0a366004614b0d565b6125a0565b348015610a1b57600080fd5b5061052961264e565b348015610a3057600080fd5b5061047e6126e7565b348015610a4557600080fd5b5061047e610a54366004614d63565b6126f4565b348015610a6557600080fd5b50610529610a74366004614d63565b6127b5565b348015610a8557600080fd5b50610529612821565b348015610a9a57600080fd5b506104a160135481565b610529610ab2366004614d63565b61292e565b348015610ac357600080fd5b50610529612c3a565b348015610ad857600080fd5b50610529612cdb565b348015610aed57600080fd5b50610529610afc366004614d63565b612d71565b348015610b0d57600080fd5b50610529610b1c366004614bd4565b612ddd565b348015610b2d57600080fd5b50610529610b3c366004614db6565b612f75565b348015610b4d57600080fd5b50610529613068565b348015610b6257600080fd5b50610454610b71366004614b2a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bb857600080fd5b5060125461045490610100900460ff1681565b348015610bd757600080fd5b5061052961317b565b348015610bec57600080fd5b50610529610bfb366004614b0d565b61321d565b348015610c0c57600080fd5b50610529610c1b366004614d63565b613316565b348015610c2c57600080fd5b506104a160105481565b348015610c4257600080fd5b50600f546104549060ff1681565b348015610c5c57600080fd5b50610529610c6b366004614d63565b613382565b348015610c7c57600080fd5b50610529610c8b366004614d63565b6134a4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ce65750610ce682613510565b92915050565b60198054610cf9906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610d25906150ca565b8015610d725780601f10610d4757610100808354040283529160200191610d72565b820191906000526020600020905b815481529060010190602001808311610d5557829003601f168201915b505050505081565b606060008054610d89906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610db5906150ca565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610ea85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610edc826117b4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f805760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610fa95750610fa98133610b71565b61101b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e9f565b6110258383613566565b505050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146110915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f54610100900460ff161561110f5760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a2050726f76656e616e636520616c72656160448201527f64792066726f7a656e00000000000000000000000000000000000000000000006064820152608401610e9f565b805161112290600c906020840190614993565b5050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461118d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156112065760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b6111228282613606565b61121a33826136bc565b61128c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e9f565b611025838383613812565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146112fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006113508361184c565b82106113c45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610e9f565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b61102583838360405180602001604052806000815250612512565b60125460ff1661148d5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a204275726e206973206e6f74206163746960448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b33611497826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146115205760405162461bcd60e51b815260206004820152603b60248201527f4f6c644d61737465724d656d65733a204f6e6c7920746865206f776e6572206960448201527f7320616c6c6f77656420746f206275726e2068697320746f6b656e00000000006064820152608401610e9f565b61152981613a50565b50565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146115935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff821661161c5760405162461bcd60e51b815260206004820152602b60248201527f4f6c644d61737465724d656d65733a2043616e6e6f74206d696e7420746f207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610e9f565b600d548160105461162d919061501e565b11156116a15760405162461bcd60e51b815260206004820152602860248201527f4f6c644d61737465724d656d65733a204d696e74696e6720776f756c6420657860448201527f63656564206361700000000000000000000000000000000000000000000000006064820152608401610e9f565b60005b81811015611025576001601060008282546116bf919061501e565b925050819055506116d283601054613a59565b806116dc81615118565b9150506116a4565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff161515610ce6565b600061171b60085490565b821061178f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610e9f565b600882815481106117a2576117a26151f2565b90600052602060002001549050919050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610ce65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610e9f565b600073ffffffffffffffffffffffffffffffffffffffff82166118d75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610e9f565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146119675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b6119716000613a73565b565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146119da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b47600060646119ea83600561504a565b6119f49190615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f19350505050158015611a3a573d6000803e3d6000fd5b506000611a48606484615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f19350505050158015611a8e573d6000803e3d6000fd5b5060405173ffffffffffffffffffffffffffffffffffffffff85169082156108fc029083906000818181858888f19350505050158015611ad2573d6000803e3d6000fd5b5060006002611ae1838261504a565b611aeb8587615087565b611af59190615087565b611aff9190615036565b60405190915073ffffffffffffffffffffffffffffffffffffffff8a169082156108fc029083906000818181858888f19350505050158015611b45573d6000803e3d6000fd5b5060405173ffffffffffffffffffffffffffffffffffffffff89169082156108fc029083906000818181858888f19350505050158015611b89573d6000803e3d6000fd5b50505050505050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611bfc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601755565b60606000611c0e8361184c565b905080611c2f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611c4a57611c4a615221565b604051908082528060200260200182016040528015611c73578160200160208202803683370190505b50905060005b82811015611c2757611c8b8582611345565b828281518110611c9d57611c9d6151f2565b602090810291909101015280611cb281615118565b915050611c79565b50919050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611d275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600e55565b60125462010000900460ff16611daa5760405162461bcd60e51b815260206004820152602560248201527f4f6c644d61737465724d656d65733a2050726573616c65206973206e6f74206160448201527f63746976650000000000000000000000000000000000000000000000000000006064820152608401610e9f565b60175481611db73361184c565b611dc1919061501e565b1115611e355760405162461bcd60e51b815260206004820152603a60248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f61782070726573616c6520616d6f756e742070657220757365720000000000006064820152608401610e9f565b83811115611eab5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f61780000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b600e5481601054611ebc919061501e565b1115611f305760405162461bcd60e51b815260206004820152603160248201527f4f6c644d61737465724d656d65733a20507572636861736520776f756c64206560448201527f78636565642070726573616c65206361700000000000000000000000000000006064820152608401610e9f565b3481601354611f3f919061504a565b1115611fb35760405162461bcd60e51b815260206004820152602f60248201527f4f6c644d61737465724d656d65733a2045746865722076616c75652073656e7460448201527f206973206e6f7420636f727265637400000000000000000000000000000000006064820152608401610e9f565b3373ffffffffffffffffffffffffffffffffffffffff8616146120645760405162461bcd60e51b815260206004820152604360248201527f4f6c644d61737465724d656d65733a2057616c6c65742066726f6d207369676e60448201527f617475726520646f6573206e6f74206d61746368206d6573736167652073656e60648201527f6465720000000000000000000000000000000000000000000000000000000000608482015260a401610e9f565b61207085858585613aea565b6120e25760405162461bcd60e51b815260206004820152602160248201527f4f6c644d61737465724d656d65733a20496e76616c6964207369676e6174757260448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b81516020808401919091206000818152601b90925260409091205460ff16156121995760405162461bcd60e51b815260206004820152605060248201527f4f6c644d61737465724d656d65733a205468652070726573616c65206c696e6b60448201527f2068617320616c7265616479206265656e20757365642e20506c65617365207260648201527f6571756573742061206e6577206f6e6500000000000000000000000000000000608482015260a401610e9f565b60005b828110156121dc576001601060008282546121b7919061501e565b925050819055506121ca33601054613a59565b806121d481615118565b91505061219c565b506000908152601b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b606060018054610d89906150ca565b60118054610cf9906150ca565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461229e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156123175760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b805161232a906011906020840190614993565b50601160405161233a9190614eab565b604051908190038120907fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d590600090a250565b73ffffffffffffffffffffffffffffffffffffffff82163314156123d35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e9f565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146124d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b61251c33836136bc565b61258e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e9f565b61259a84848484613c7f565b50505050565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b600c8054610cf9906150ca565b60185460609074010000000000000000000000000000000000000000900460ff161561272357610ce682613d08565b60198054612730906150ca565b80601f016020809104026020016040519081016040528092919081815260200182805461275c906150ca565b80156127a95780601f1061277e576101008083540402835291602001916127a9565b820191906000526020600020905b81548152906001019060200180831161278c57829003601f168201915b50505050509050919050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461281c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601555565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146128885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156129015760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b601254610100900460ff166129ab5760405162461bcd60e51b815260206004820152602260248201527f4f6c644d61737465724d656d65733a2053616c65206973206e6f74206163746960448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b601654811115612a235760405162461bcd60e51b815260206004820152602b60248201527f4f6c644d61737465724d656d65733a20416d6f756e742065786365656473206d60448201527f617820706572206d696e740000000000000000000000000000000000000000006064820152608401610e9f565b600d5481601054612a34919061501e565b1115612aa85760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a20507572636861736520776f756c64206560448201527f78636565642063617000000000000000000000000000000000000000000000006064820152608401610e9f565b3481601454612ab7919061504a565b1115612b2b5760405162461bcd60e51b815260206004820152602f60248201527f4f6c644d61737465724d656d65733a2045746865722076616c75652073656e7460448201527f206973206e6f7420636f727265637400000000000000000000000000000000006064820152608401610e9f565b601554612b389042615087565b336000908152601a602052604090205410612be15760405162461bcd60e51b815260206004820152605c60248201527f4f6c644d61737465724d656d65733a2072656c617820616e642077616974206160448201527f206c6974746c652e2049742077696c6c2062652061206c6974746c652077686960648201527f6c65206265666f726520796f752063616e206d696e7420616761696e00000000608482015260a401610e9f565b60005b81811015612c2457600160106000828254612bff919061501e565b92505081905550612c1233601054613a59565b80612c1c81615118565b915050612be4565b5050336000908152601a60205260409020429055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612ca15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612d425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b6040514790339082156108fc029083906000818181858888f19350505050158015611122573d6000803e3d6000fd5b600b5473ffffffffffffffffffffffffffffffffffffffff163314612dd85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601655565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612e445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff8216612ecd5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74207265636f76657220746f6b656e7320746f207468652030206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e9f565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b158015612f3d57600080fd5b505af1158015612f51573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259a9190614d46565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612fdc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f5460ff16156130555760405162461bcd60e51b815260206004820152602760248201527f4f6c644d61737465724d656d65733a204d6574616461746120616c726561647960448201527f2066726f7a656e000000000000000000000000000000000000000000000000006064820152608401610e9f565b8051611122906019906020840190614993565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146130cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b600f54610100900460ff161561314d5760405162461bcd60e51b815260206004820152602960248201527f4f6c644d61737465724d656d65733a2050726f76656e616e636520616c72656160448201527f64792066726f7a656e00000000000000000000000000000000000000000000006064820152608401610e9f565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146131e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146132845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b73ffffffffffffffffffffffffffffffffffffffff811661330d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e9f565b61152981613a73565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461337d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601455565b3361338c826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146134155760405162461bcd60e51b815260206004820152603b60248201527f4f6c644d61737465724d656d65733a204f6e6c7920746865206f776e6572206960448201527f7320616c6c6f77656420746f206275726e2068697320746f6b656e00000000006064820152608401610e9f565b61341e81613a50565b601c546040517f610bdd0500000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff9091169063610bdd0590602401600060405180830381600087803b15801561348957600080fd5b505af115801561349d573d6000803e3d6000fd5b5050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461350b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e9f565b601355565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ce65750610ce682613e93565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906135c0826117b4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1661369d5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610e9f565b6000828152600a60209081526040909120825161102592840190614993565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166137535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610e9f565b600061375e836117b4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806137cd57508373ffffffffffffffffffffffffffffffffffffffff166137b584610e0c565b73ffffffffffffffffffffffffffffffffffffffff16145b8061380a575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613832826117b4565b73ffffffffffffffffffffffffffffffffffffffff16146138bb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610e9f565b73ffffffffffffffffffffffffffffffffffffffff82166139435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e9f565b61394e838383613f76565b613959600082613566565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061398f908490615087565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906139ca90849061501e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61152981613f81565b611122828260405180602001604052806000815250613fc1565b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080600080613b0d856020810151604082015160609092015160001a92909190565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608d901b166020820152603481018b9052605481018a90529195509350909150600090607401604051602081830303815290604052805190602001209050600181604051602001613baf91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613c2b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015160185473ffffffffffffffffffffffffffffffffffffffff9182169116149a9950505050505050505050565b613c8a848484613812565b613c968484848461404a565b61259a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613da25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610e9f565b6000828152600a602052604081208054613dbb906150ca565b80601f0160208091040260200160405190810160405280929190818152602001828054613de7906150ca565b8015613e345780601f10613e0957610100808354040283529160200191613e34565b820191906000526020600020905b815481529060010190602001808311613e1757829003601f168201915b505050505090506000613e4561422c565b9050805160001415613e58575092915050565b815115613e8a578082604051602001613e72929190614e7c565b60405160208183030381529060405292505050919050565b61380a8461423b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613f2657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ce657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610ce6565b611025838383614331565b613f8a81614437565b6000818152600a602052604090208054613fa3906150ca565b159050611529576000818152600a6020526040812061152991614a17565b613fcb8383614510565b613fd8600084848461404a565b6110255760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614224576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906140c1903390899088908890600401614f7e565b602060405180830381600087803b1580156140db57600080fd5b505af1925050508015614129575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261412691810190614d99565b60015b6141d9573d808015614157576040519150601f19603f3d011682016040523d82523d6000602084013e61415c565b606091505b5080516141d15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e9f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061380a565b50600161380a565b606060118054610d89906150ca565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166142d55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e9f565b60006142df61422c565b905060008151116142ff576040518060200160405280600081525061432a565b80614309846146aa565b60405160200161431a929190614e7c565b6040516020818303038152906040525b9392505050565b73ffffffffffffffffffffffffffffffffffffffff83166143995761439481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6143d6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146143d6576143d683826147dc565b73ffffffffffffffffffffffffffffffffffffffff82166143fa5761102581614893565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611025576110258282614942565b6000614442826117b4565b905061445081600084613f76565b61445b600083613566565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290614491908490615087565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b73ffffffffffffffffffffffffffffffffffffffff82166145735760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e9f565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156145e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e9f565b6145f160008383613f76565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061462790849061501e565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816146ea57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561471457806146fe81615118565b915061470d9050600a83615036565b91506146ee565b60008167ffffffffffffffff81111561472f5761472f615221565b6040519080825280601f01601f191660200182016040528015614759576020820181803683370190505b5090505b841561380a5761476e600183615087565b915061477b600a86615151565b61478690603061501e565b60f81b81838151811061479b5761479b6151f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506147d5600a86615036565b945061475d565b600060016147e98461184c565b6147f39190615087565b6000838152600760205260409020549091508082146148535773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906148a590600190615087565b600083815260096020526040812054600880549394509092849081106148cd576148cd6151f2565b9060005260206000200154905080600883815481106148ee576148ee6151f2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614926576149266151c3565b6001900381819060005260206000200160009055905550505050565b600061494d8361184c565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461499f906150ca565b90600052602060002090601f0160209004810192826149c15760008555614a07565b82601f106149da57805160ff1916838001178555614a07565b82800160010185558215614a07579182015b82811115614a075782518255916020019190600101906149ec565b50614a13929150614a4d565b5090565b508054614a23906150ca565b6000825580601f10614a33575050565b601f01602090049060005260206000209081019061152991905b5b80821115614a135760008155600101614a4e565b600082601f830112614a7357600080fd5b813567ffffffffffffffff80821115614a8e57614a8e615221565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715614ad457614ad4615221565b81604052838152866020858801011115614aed57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215614b1f57600080fd5b813561432a81615250565b60008060408385031215614b3d57600080fd5b8235614b4881615250565b91506020830135614b5881615250565b809150509250929050565b600080600080600060a08688031215614b7b57600080fd5b8535614b8681615250565b94506020860135614b9681615250565b93506040860135614ba681615250565b92506060860135614bb681615250565b91506080860135614bc681615250565b809150509295509295909350565b600080600060608486031215614be957600080fd5b8335614bf481615250565b92506020840135614c0481615250565b929592945050506040919091013590565b60008060008060808587031215614c2b57600080fd5b8435614c3681615250565b93506020850135614c4681615250565b925060408501359150606085013567ffffffffffffffff811115614c6957600080fd5b614c7587828801614a62565b91505092959194509250565b60008060408385031215614c9457600080fd5b8235614c9f81615250565b91506020830135614b5881615272565b60008060408385031215614cc257600080fd5b8235614ccd81615250565b946020939093013593505050565b600080600080600060a08688031215614cf357600080fd5b8535614cfe81615250565b94506020860135935060408601359250606086013567ffffffffffffffff811115614d2857600080fd5b614d3488828901614a62565b95989497509295608001359392505050565b600060208284031215614d5857600080fd5b815161432a81615272565b600060208284031215614d7557600080fd5b5035919050565b600060208284031215614d8e57600080fd5b813561432a81615280565b600060208284031215614dab57600080fd5b815161432a81615280565b600060208284031215614dc857600080fd5b813567ffffffffffffffff811115614ddf57600080fd5b61380a84828501614a62565b60008060408385031215614dfe57600080fd5b82359150602083013567ffffffffffffffff811115614e1c57600080fd5b614e2885828601614a62565b9150509250929050565b60008151808452614e4a81602086016020860161509e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351614e8e81846020880161509e565b835190830190614ea281836020880161509e565b01949350505050565b600080835481600182811c915080831680614ec757607f831692505b6020808410821415614f00577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015614f145760018114614f4357614f70565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614f70565b60008a81526020902060005b86811015614f685781548b820152908501908301614f4f565b505084890196505b509498975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614fbd6080830184614e32565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614fff57835183529284019291840191600101614fe3565b50909695505050505050565b60208152600061432a6020830184614e32565b6000821982111561503157615031615165565b500190565b60008261504557615045615194565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561508257615082615165565b500290565b60008282101561509957615099615165565b500390565b60005b838110156150b95781810151838201526020016150a1565b8381111561259a5750506000910152565b600181811c908216806150de57607f821691505b60208210811415611cba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561514a5761514a615165565b5060010190565b60008261516057615160615194565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461152957600080fd5b801515811461152957600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461152957600080fdfea264697066735822122066bb9bb9d0c2645515c7ecfe1a3b48cfdb9683ef8072aef8f0974ad279780d1064736f6c63430008070033

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

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