ETH Price: $3,861.41 (+0.36%)

Token

Blockheads (BLOK)
 

Overview

Max Total Supply

3,985 BLOK

Holders

1,027

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
danreich.eth
Balance
1 BLOK
0x5828ecba6057de39da53b5fab9b27114aaae8541
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Blockheads are uniquely generated characters stored entirely on-chain. No pngs, no jpegs, no IPFS. Attributes can be swapped between different Blockheads in the same wallet. Series v1.0

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Blockheads

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 22 : Blockheads.sol
// //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./ERC2981ContractWideRoyalties.sol";
import "./Utils.sol";
import "./ERC721Tradable.sol";

/**************                                                                                             
                                                                                                                                                                                                                                     




                                                                
                                ████████████████                                
                                ██            ██                                
                           ▐████████████████████████▌                           
                         ▐██                        ▐██                         
                       ██                              ██                       
                       ██                              ██                       
                       ██                              ██                       
                       ██       ████▌                  ██                       
                       ██       ████▌       ████▌      ██                       
                       ██                              ██                       
                       ██                              ██                       
                       ██          ██       ██         ██                       
                       ██            ███████           ██
                       ██                              ██                       
                         ▐██                        ▐██            
                            ▐███████████████████████▌                         
                                ██            ██
                  █████  ▐████████████████████████████▌  █████                
                ██     ██                              ██     ██  
              ██       ██                              ██       ██             
              ██       ██                              ██       ██            
           ▐██       ██                                  ██▌      ██▌           
                                                                                
     ▄▄▄▄▄   ▄▄▄  ▄▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄  ▄▄▄▄▄▄   ▄▄▄▄ ▄▄▄▄▄▄    ▄▄▄▄     
    █     █ █   █▀    █▄█▀   ▐█  █   █   █  ▀▄█▌     ██▀    █       ██▀    ▐█   
   █▌ ▀▀  ██  ▄█▌ ██▌  █   ████    ▄██      ▐██   ▀▀██   █  █  ▐██   ██  ▀▀█▄   
   █  ▀▀  █▌  ▀▀▌      ██     █▌     █   ██  █   ▀▀▀█▌  ▄▄  ██      █▌  ▀   █▌  
   ▀█▄▄▄▄█▀█▄▄▄█▀█▄▄▄██▀▀██▄▄█▀█▄██▄███▄█▀█▄▀▀█▄▄▄▄▄█▀██▀█▄███▄▄▄▄▄███▄▄▄▄██▀   
                                                                                





******************/

// Interface that all the data blocks exported from figma fulfill
interface ImageDataBlock {
    // Provide a renderable SVG string at the given slot
    function getData(uint256 slot) external pure returns (bytes memory);

    // Provide a human readable name at the given slot
    function getLabel(uint256 slot) external pure returns (string memory);
}

// ERC20 used for the 'withdrawERC20' just-in-case function, there is no actual erc20 involved here.
interface IERC20 {
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    function balanceOf(address account) external view returns (uint256);
}

contract Blockheads is ERC721Tradable, ERC2981ContractWideRoyalties {
    event BlockheadReconfigured(uint256 tokenId);

    // Max there will ever be available
    uint256 public constant totalAvailable = 10000;
    // currentlyAvailable for releasing in batches
    uint256 public currentlyAvailable = 1;
    uint256 public mintCost = 0.05 ether;
    uint256 public nextTokenId = 1; // 1, for friendship
    bool public mintingEnabled = false;

    /**
    Attributes can be referenced by an index into the labels and image data
    the xxxIndex(uint256) functions will return what index that particular trait should be for a token.  It can be
    used to find image data or labels via the blocks of data exported from figma at the bottom.
    It default to a random value, but can be swapped and overridden using the maps below.
     */

    // Override mappings for each attribute.
    // If there is an override we use that, otherwise we fall back to `initialValueFor`
    // Since all values are initialized to 0, we need a flag to know if we've actually set
    // the override.
    struct Overrides {
        // Storing uint32s is cheaper and should be enough for representing all options for each slot
        uint32 background;
        uint32 body;
        uint32 arms;
        uint32 head;
        uint32 face;
        uint32 headwear;
        bool backgroundOverridden;
        bool bodyOverridden;
        bool armsOverridden;
        bool headOverridden;
        bool faceOverridden;
        bool headwearOverridden;
    }

    // If we store the profession override in the struct above it bumps it over the size limit for a single slot and makes
    // a few of the swap calls ~50% more expensive to call
    struct ProfessionOverride {
        uint32 profession;
        bool overridden;
    }

    // Storing 1 big mapping instead of different mappings for everything makes successive
    // swaps much cheaper since we don't need to call the expensive random function
    mapping(uint256 => Overrides) public overrides;
    mapping(uint256 => ProfessionOverride) public professionOverrides;
    mapping(uint256 => string) public nameOverrides;
    // Birth registry is a mapping of taken names so each blockhead has a unique name.
    mapping(string => bool) birthRegistry;

    // All the data blocks are deployed to separate contracts because its too big to put all this data in one contract.
    // They're deployed separately and referenced here, to be used with the ImageDataBlock interface.
    address backgroundDataBlock;
    address bodyDataBlock;
    address armsDataBlock;
    address headDataBlock;
    address faceDataBlock;
    address headwearDataBlock;

    // Constructor requires the proxy for opensea, and all the data blocks
    constructor(
        address proxyRegistryAddress,
        address _backgroundDataBlock,
        address _bodyDataBlock,
        address _armsDataBlock,
        address _headDataBlock,
        address _faceDataBlock,
        address _headwearDataBlock
    ) ERC721Tradable("Blockheads", "BLOK", proxyRegistryAddress) {
        // 10% royalties for ERC2981.  Not sure if anyone supports this yet.
        _setRoyalties(msg.sender, 1000);
        backgroundDataBlock = _backgroundDataBlock;
        bodyDataBlock = _bodyDataBlock;
        armsDataBlock = _armsDataBlock;
        headDataBlock = _headDataBlock;
        faceDataBlock = _faceDataBlock;
        headwearDataBlock = _headwearDataBlock;
    }

    // Mint a single blockhead
    function mint() public payable {
        require(mintingEnabled);
        require(msg.value >= mintCost, "Save up your quarters");
        require(nextTokenId <= currentlyAvailable, "Batch Sold Out");
        require(nextTokenId <= totalAvailable, "Sold out");
        _safeMint(msg.sender, nextTokenId);
        nextTokenId++;
    }

    // Mint 5 for the price of 4
    function buy4get1free() public payable {
        require(mintingEnabled);
        // Ensure they've paid for 4
        require(msg.value >= mintCost * 4, "Save up your quarters");
        require(nextTokenId + 5 < totalAvailable, "Sold out");
        require(nextTokenId + 5 <= currentlyAvailable, "Batch Sold Out");
        // But give them 5
        for (uint256 i = 0; i < 5; i++) {
            _safeMint(msg.sender, nextTokenId);
            nextTokenId++;
        }
    }

    function setMintingEnabled(bool _enabled) public onlyOwner {
        mintingEnabled = _enabled;
    }

    function setCurrentlyAvailable(uint256 available) public onlyOwner {
        require(available > nextTokenId);
        require(available <= totalAvailable);
        currentlyAvailable = available;
    }

    // Allow owners to update the mint cost if needed
    function setMintCost(uint256 newCost) public onlyOwner {
        mintCost = newCost;
    }

    // Withdraw balance to the owners
    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function withdrawToContract() external onlyOwner {
        // This forwards all available gas. Be sure to check the return value!
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function withdrawERC20(address tokenContract) external onlyOwner {
        IERC20 tc = IERC20(tokenContract);
        tc.transfer(owner(), tc.balanceOf(address(this)));
    }

    //
    // xxxIndex functions will return the current index of this tokens property.
    // If there is an override we'll use that otherwise we'll fall back to the pseudorandom `initialValueFor`.
    //

    function backgroundIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].backgroundOverridden) {
            return overrides[tokenId].background;
        }
        return initialValueFor(tokenId, "bg");
    }

    function bodyIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].bodyOverridden) {
            return overrides[tokenId].body;
        }
        return initialValueFor(tokenId, "body");
    }

    function armsIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].armsOverridden) {
            return overrides[tokenId].arms;
        }
        return initialValueFor(tokenId, "arms");
    }

    function headIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].headOverridden) {
            return overrides[tokenId].head;
        }
        return initialValueFor(tokenId, "head");
    }

    function faceIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].faceOverridden) {
            return overrides[tokenId].face;
        }
        return initialValueFor(tokenId, "face");
    }

    function headwearIndex(uint256 tokenId) public view returns (uint32) {
        if (overrides[tokenId].headwearOverridden) {
            return overrides[tokenId].headwear;
        }
        return initialValueFor(tokenId, "headwear");
    }

    function professionIndex(uint256 tokenId) public view returns (uint32) {
        if (professionOverrides[tokenId].overridden) {
            return professionOverrides[tokenId].profession;
        }
        return initialValueFor(tokenId, "profession");
    }

    function random(bytes memory input) internal pure returns (uint256) {
        return uint256(keccak256(input));
    }

    // The randomly selected initial value for this token.
    // Can be overridden by overrides.
    function initialValueFor(uint256 tokenId, string memory keyPrefix)
        private
        pure
        returns (uint32)
    {
        // It's ok to downcast this since its just random numbers and its downcast predictably
        return uint32(random(abi.encodePacked(keyPrefix, tokenId)));
    }

    modifier ownsBoth(uint256 token1, uint256 token2) {
        require(ownerOf(token1) == msg.sender);
        require(ownerOf(token2) == msg.sender);
        _;
    }

    function swapParts(
        uint256 token1,
        uint256 token2,
        bool background,
        bool body,
        bool arms,
        bool heads,
        bool faces,
        bool headwear
    ) public ownsBoth(token1, token2) {
        require(background || body || arms || heads || faces || headwear);
        if (background) {
            uint32 newBG1 = backgroundIndex(token2);
            uint32 newBG2 = backgroundIndex(token1);
            overrides[token1].background = newBG1;
            overrides[token2].background = newBG2;
            overrides[token1].backgroundOverridden = true;
            overrides[token2].backgroundOverridden = true;
        }
        if (body) {
            uint32 newBody1 = bodyIndex(token2);
            uint32 newBody2 = bodyIndex(token1);
            overrides[token1].body = newBody1;
            overrides[token2].body = newBody2;
            overrides[token1].bodyOverridden = true;
            overrides[token2].bodyOverridden = true;
        }
        if (arms) {
            uint32 newArm1 = armsIndex(token2);
            uint32 newArm2 = armsIndex(token1);
            overrides[token1].arms = newArm1;
            overrides[token2].arms = newArm2;
            overrides[token1].armsOverridden = true;
            overrides[token2].armsOverridden = true;
        }
        if (heads) {
            uint32 newHead1 = headIndex(token2);
            uint32 newHead2 = headIndex(token1);
            overrides[token1].head = newHead1;
            overrides[token2].head = newHead2;
            overrides[token1].headOverridden = true;
            overrides[token2].headOverridden = true;
        }
        if (faces) {
            uint32 newFace1 = faceIndex(token2);
            uint32 newFace2 = faceIndex(token1);
            overrides[token1].face = newFace1;
            overrides[token2].face = newFace2;
            overrides[token1].faceOverridden = true;
            overrides[token2].faceOverridden = true;
        }
        if (headwear) {
            uint32 newHeadwear1 = headwearIndex(token2);
            uint32 newHeadwear2 = headwearIndex(token1);
            overrides[token1].headwear = newHeadwear1;
            overrides[token2].headwear = newHeadwear2;
            overrides[token1].headwearOverridden = true;
            overrides[token2].headwearOverridden = true;
        }
        emit BlockheadReconfigured(token1);
        emit BlockheadReconfigured(token2);
    }

    function swapProfessions(uint256 token1, uint256 token2)
        public
        ownsBoth(token1, token2)
    {
        uint32 newProfession1 = professionIndex(token2);
        uint32 newProfession2 = professionIndex(token1);
        professionOverrides[token1].profession = newProfession1;
        professionOverrides[token2].profession = newProfession2;
        professionOverrides[token1].overridden = true;
        professionOverrides[token2].overridden = true;
        emit BlockheadReconfigured(token1);
        emit BlockheadReconfigured(token2);
    }

    function setName(uint256 tokenId, string memory name) public {
        require(ownerOf(tokenId) == msg.sender);
        require(bytes(name).length > 0);
        require(!birthRegistry[name]);
        birthRegistry[nameOverrides[tokenId]] = false;
        nameOverrides[tokenId] = name;
        birthRegistry[name] = true;
        emit BlockheadReconfigured(tokenId);
    }

    function getName(uint256 tokenId) public view returns (string memory) {
        if (bytes(nameOverrides[tokenId]).length > 0) {
            return nameOverrides[tokenId];
        }
        return string(abi.encodePacked("Blockhead #", Utils.toString(tokenId)));
    }

    function getProfession(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        // Storing these here saves a good amount of gas by not needing to create storage slots for them
        // Since you can't really do constants for string arrays
        string[71] memory professions = [
            "Firefighter",
            "Teacher",
            "Solidity Engineer",
            "Architect",
            "Philosopher",
            "Dog Trainer",
            "Pilot",
            "Spy",
            "Astronaut",
            "Groundskeeper",
            "Doctor",
            "Investor",
            "Curator",
            "Chef",
            "Artist",
            "Police Officer",
            "Fisherman",
            "Nurse",
            "Botanist",
            "Influencer",
            "Graphic Designer",
            "Businessman",
            "Podcaster",
            "Racecar Driver",
            "Midwife",
            "Plumber",
            "Product Manager",
            "Founder",
            "Comedian",
            "Super Hero",
            "Scuba Diver",
            "Photographer",
            "Yoga Instructor",
            "Carpenter",
            "Singer",
            "Therapist",
            "Mycologist",
            "Forest Ranger",
            "Mail Carrier",
            "Secret Agent",
            "DJ",
            "Magician",
            "Dog Whisperer",
            "Zookeeper",
            "Shaman",
            "Curator",
            "Bus Driver",
            "Construction Worker",
            "Train Conductor",
            "Archeologist",
            "Hockey Player",
            "Basketball Player",
            "Baseball Player",
            "Golfer",
            "Scientist",
            "Florist",
            "Farmer",
            "Ski Instructor",
            "Pet Groomer",
            "Concierge",
            "Dentist",
            "Billionaire",
            "Psychoanalyst",
            "Mayor",
            "Retired",
            "Dogecoin Investor",
            "Psychic",
            "Uber Driver",
            "Game Designer",
            "President",
            "Vice President"
        ];
        return professions[professionIndex(tokenId) % professions.length];
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        bytes
            memory svg = "<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMinYMin meet' viewBox='0 0 25 25' width='500' height='500'>";
        svg = abi.encodePacked(svg, getBgData(tokenId));
        svg = abi.encodePacked(svg, getBodyData(tokenId));
        svg = abi.encodePacked(svg, getArmsData(tokenId));
        svg = abi.encodePacked(svg, getHeadData(tokenId));
        svg = abi.encodePacked(svg, getFaceData(tokenId));
        svg = abi.encodePacked(svg, getHeadwearData(tokenId));
        svg = abi.encodePacked(svg, "</svg>");
        // Need to break up the json generation into 2 encodePackeds to avoid stack too deep errors
        bytes memory jsonPt1 = abi.encodePacked(
            '{"name": "',
            getName(tokenId),
            '", "description": "Blockheads", "image": "data:image/svg+xml;base64,',
            Utils.base64Encode(svg),
            '", "attributes": [{"trait_type": "Background", "value": "',
            getBgLabel(tokenId),
            '"}, ',
            '{"trait_type": "Profession", "value": "',
            getProfession(tokenId),
            '"}, '
        );
        string memory json = Utils.base64Encode(
            abi.encodePacked(
                jsonPt1,
                '{"trait_type": "Body", "value": "',
                getBodyLabel(tokenId),
                '"}, ',
                '{"trait_type": "Arms", "value": "',
                getArmsLabel(tokenId),
                '"}, ',
                '{"trait_type": "Head", "value": "',
                getHeadLabel(tokenId),
                '"}, ',
                '{"trait_type": "Face", "value": "',
                getFaceLabel(tokenId),
                '"}, ',
                '{"trait_type": "Headwear", "value": "',
                getHeadwearLabel(tokenId),
                '"}]}'
            )
        );
        return string(abi.encodePacked("data:application/json;base64,", json));
    }

    function getBgData(uint256 tokenId) public view returns (bytes memory) {
        ImageDataBlock bgData = ImageDataBlock(backgroundDataBlock);
        return bgData.getData(backgroundIndex(tokenId));
    }

    function getBodyData(uint256 tokenId) public view returns (bytes memory) {
        ImageDataBlock bodyData = ImageDataBlock(bodyDataBlock);
        return bodyData.getData(bodyIndex(tokenId));
    }

    function getArmsData(uint256 tokenId) public view returns (bytes memory) {
        ImageDataBlock armsData = ImageDataBlock(armsDataBlock);
        return armsData.getData(armsIndex(tokenId));
    }

    function getHeadData(uint256 tokenId) public view returns (bytes memory) {
        ImageDataBlock headData = ImageDataBlock(headDataBlock);
        return headData.getData(headIndex(tokenId));
    }

    function getFaceData(uint256 tokenId) public view returns (bytes memory) {
        ImageDataBlock faceData = ImageDataBlock(faceDataBlock);
        return faceData.getData(faceIndex(tokenId));
    }

    function getHeadwearData(uint256 tokenId)
        public
        view
        returns (bytes memory)
    {
        ImageDataBlock dataBlock = ImageDataBlock(headwearDataBlock);
        return dataBlock.getData(headwearIndex(tokenId));
    }

    function getBgLabel(uint256 tokenId) public view returns (string memory) {
        ImageDataBlock bgData = ImageDataBlock(backgroundDataBlock);
        return bgData.getLabel(backgroundIndex(tokenId));
    }

    function getBodyLabel(uint256 tokenId) public view returns (string memory) {
        ImageDataBlock bodyData = ImageDataBlock(bodyDataBlock);
        return bodyData.getLabel(bodyIndex(tokenId));
    }

    function getArmsLabel(uint256 tokenId) public view returns (string memory) {
        ImageDataBlock armsData = ImageDataBlock(armsDataBlock);
        return armsData.getLabel(armsIndex(tokenId));
    }

    function getHeadLabel(uint256 tokenId) public view returns (string memory) {
        ImageDataBlock headData = ImageDataBlock(headDataBlock);
        return headData.getLabel(headIndex(tokenId));
    }

    function getFaceLabel(uint256 tokenId) public view returns (string memory) {
        ImageDataBlock faceData = ImageDataBlock(faceDataBlock);
        return faceData.getLabel(faceIndex(tokenId));
    }

    function getHeadwearLabel(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        ImageDataBlock dataBlock = ImageDataBlock(headwearDataBlock);
        return dataBlock.getLabel(headwearIndex(tokenId));
    }

    function isMintInBox(uint256 tokenId) public view returns (bool) {
        Overrides memory o = overrides[tokenId];
        if (
            o.backgroundOverridden ||
            o.bodyOverridden ||
            o.armsOverridden ||
            o.headOverridden ||
            o.faceOverridden ||
            o.headwearOverridden
        ) {
            return false;
        }
        return true;
    }

    function setBackgroundDataBlockAddress(address newAddr) public onlyOwner {
        backgroundDataBlock = newAddr;
    }

    function setBodyDataBlockAddress(address newAddr) public onlyOwner {
        bodyDataBlock = newAddr;
    }

    function setHeadDataBlockAddress(address newAddr) public onlyOwner {
        headDataBlock = newAddr;
    }

    function setFaceDataBlockAddress(address newAddr) public onlyOwner {
        faceDataBlock = newAddr;
    }

    function setArmsDataBlockAddress(address newAddr) public onlyOwner {
        armsDataBlock = newAddr;
    }

    function setHeadwearDataBlockAddress(address newAddr) public onlyOwner {
        headwearDataBlock = newAddr;
    }

    function setRoyalties(address newRoyaltiesAddr) public onlyOwner {
        _setRoyalties(newRoyaltiesAddr, 1000);
    }
}

File 2 of 22 : 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 3 of 22 : 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 4 of 22 : 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 5 of 22 : 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 6 of 22 : 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 7 of 22 : ERC2981ContractWideRoyalties.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

import './IERC2981Royalties.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is IERC2981Royalties {
    address private _royaltiesRecipient;
    uint256 private _royaltiesValue;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');
        _royaltiesRecipient = recipient;
        _royaltiesValue = value;
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (_royaltiesRecipient, (value * _royaltiesValue) / 10000);
    }
}

File 8 of 22 : Utils.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Utils {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

File 9 of 22 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

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

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721Tradable is
    ContextMixin,
    ERC721Enumerable,
    NativeMetaTransaction,
    Ownable
{
    address proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(_name);
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal view override returns (address sender) {
        return ContextMixin.msgSender();
    }

    function setOpenseaProxyAddress(address _proxyAddress) public onlyOwner {
        proxyRegistryAddress = _proxyAddress;
    }
}

File 10 of 22 : 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 11 of 22 : 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 12 of 22 : 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 13 of 22 : 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 14 of 22 : 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 15 of 22 : 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 16 of 22 : 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);
}

File 17 of 22 : IERC2981Royalties.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 18 of 22 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 19 of 22 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 20 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 21 of 22 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 22 of 22 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_backgroundDataBlock","type":"address"},{"internalType":"address","name":"_bodyDataBlock","type":"address"},{"internalType":"address","name":"_armsDataBlock","type":"address"},{"internalType":"address","name":"_headDataBlock","type":"address"},{"internalType":"address","name":"_faceDataBlock","type":"address"},{"internalType":"address","name":"_headwearDataBlock","type":"address"}],"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BlockheadReconfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"armsIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"backgroundIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"bodyIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buy4get1free","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"currentlyAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"faceIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getArmsData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getArmsLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBgData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBgLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBodyData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBodyLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFaceData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFaceLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHeadData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHeadLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHeadwearData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHeadwearLabel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getProfession","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"headIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"headwearIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMintInBox","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nameOverrides","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"overrides","outputs":[{"internalType":"uint32","name":"background","type":"uint32"},{"internalType":"uint32","name":"body","type":"uint32"},{"internalType":"uint32","name":"arms","type":"uint32"},{"internalType":"uint32","name":"head","type":"uint32"},{"internalType":"uint32","name":"face","type":"uint32"},{"internalType":"uint32","name":"headwear","type":"uint32"},{"internalType":"bool","name":"backgroundOverridden","type":"bool"},{"internalType":"bool","name":"bodyOverridden","type":"bool"},{"internalType":"bool","name":"armsOverridden","type":"bool"},{"internalType":"bool","name":"headOverridden","type":"bool"},{"internalType":"bool","name":"faceOverridden","type":"bool"},{"internalType":"bool","name":"headwearOverridden","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"professionIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"professionOverrides","outputs":[{"internalType":"uint32","name":"profession","type":"uint32"},{"internalType":"bool","name":"overridden","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setArmsDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setBackgroundDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setBodyDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"available","type":"uint256"}],"name":"setCurrentlyAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setFaceDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setHeadDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setHeadwearDataBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyAddress","type":"address"}],"name":"setOpenseaProxyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRoyaltiesAddr","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token1","type":"uint256"},{"internalType":"uint256","name":"token2","type":"uint256"},{"internalType":"bool","name":"background","type":"bool"},{"internalType":"bool","name":"body","type":"bool"},{"internalType":"bool","name":"arms","type":"bool"},{"internalType":"bool","name":"heads","type":"bool"},{"internalType":"bool","name":"faces","type":"bool"},{"internalType":"bool","name":"headwear","type":"bool"}],"name":"swapParts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token1","type":"uint256"},{"internalType":"uint256","name":"token2","type":"uint256"}],"name":"swapProfessions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAvailable","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToContract","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805460ff199081169091556001601181905566b1a2bc2ec500006012556013556014805490911690553480156200003c57600080fd5b506040516200602f3803806200602f8339810160408190526200005f91620004af565b6040518060400160405280600a815260200169426c6f636b686561647360b01b81525060405180604001604052806004815260200163424c4f4b60e01b8152508882828160009080519060200190620000ba929190620003ec565b508051620000d0906001906020840190620003ec565b505050620000ed620000e76200019e60201b60201c565b620001ba565b600e80546001600160a01b0319166001600160a01b03831617905562000113836200020c565b5050506200012a336103e86200027160201b60201c565b601980546001600160a01b03199081166001600160a01b0398891617909155601a8054821696881696909617909555601b8054861694871694909417909355601c8054851692861692909217909155601d80548416918516919091179055601e805490921692169190911790555062000580565b6000620001b5620002eb60201b62003cf51760201c565b905090565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff1615620002565760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b62000261816200034a565b50600a805460ff19166001179055565b612710811115620002c55760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016200024d565b600f80546001600160a01b0319166001600160a01b039390931692909217909155601055565b6000333014156200034457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620003479050565b50335b90565b6040518060800160405280604f815260200162005fe0604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600b55565b828054620003fa9062000543565b90600052602060002090601f0160209004810192826200041e576000855562000469565b82601f106200043957805160ff191683800117855562000469565b8280016001018555821562000469579182015b82811115620004695782518255916020019190600101906200044c565b50620004779291506200047b565b5090565b5b808211156200047757600081556001016200047c565b80516001600160a01b0381168114620004aa57600080fd5b919050565b600080600080600080600060e0888a031215620004ca578283fd5b620004d58862000492565b9650620004e56020890162000492565b9550620004f56040890162000492565b9450620005056060890162000492565b9350620005156080890162000492565b92506200052560a0890162000492565b91506200053560c0890162000492565b905092959891949750929550565b600181811c908216806200055857607f821691505b602082108114156200057a57634e487b7160e01b600052602260045260246000fd5b50919050565b615a5080620005906000396000f3fe6080604052600436106103d15760003560e01c806370a08231116101f9578063b88d4fde1161011e578063db5cc181116100b6578063f1e421581161007a578063f1e4215814610d84578063f2fde38b14610d8c578063f3fe491514610dac578063f4f3b20014610dcc578063fe55932a14610dec57600080fd5b8063db5cc18114610cef578063dc8c92d914610d0f578063e985e9c514610d2f578063ec4c2aa214610d4f578063f04c690114610d6457600080fd5b8063b88d4fde14610be3578063bdb4b84814610c03578063c19e6d2314610c19578063c3eca27114610c39578063c446b4ec14610c59578063c69db69314610c79578063c87b56dd14610c99578063d66bf1cf14610cb9578063d85d7f5b14610cd957600080fd5b80639b9f7d5a116101915780639b9f7d5a146109d05780639c43a04d146109f05780639cbb1a5414610a105780639fd6db1214610b29578063a22cb46514610b43578063a396446714610b63578063a7b5d4d414610b83578063a8e20c7d14610ba3578063b16bc51814610bc357600080fd5b806370a08231146108e5578063715018a6146109055780637464d9d11461091a57806375794a3c1461093a5780637cff397214610950578063839ce1d9146109705780638545f4ea146109865780638da5cb5b146109a657806395d89b41146109bb57600080fd5b80632e196410116102fa5780634ea3871a116102925780636352211e116102565780636352211e14610845578063646ad39814610865578063665e64d6146108855780636a7e3773146108a55780636b8ff574146108c557600080fd5b80634ea3871a1461076a5780634f6ccce71461078a578063546200f0146107aa5780635b6d91f4146108055780635f3e847c1461082557600080fd5b80632e1964101461064d5780632f745c591461066d5780633408e4701461068d5780633411beb4146106a0578063370a7358146106d55780633ccfd60b146106f55780633d477f0a1461070a57806342842e0e1461072a578063487a671e1461074a57600080fd5b806312fdfda11161036d57806312fdfda11461050457806313b536151461052457806318160ddd1461054457806320379ee5146105635780632236e18b1461057857806323b872dd146105985780632a55205a146105b85780632a9e63c6146105f75780632d0335ab1461061757600080fd5b806301ffc9a7146103d6578063044008c81461040b57806306fdde031461042d578063081812fc1461044f578063095ea7b31461047c5780630c53c51c1461049c5780630f7e5970146104af5780631172fe06146104dc5780631249c58b146104fc575b600080fd5b3480156103e257600080fd5b506103f66103f1366004614e50565b610e0c565b60405190151581526020015b60405180910390f35b34801561041757600080fd5b5061042b610426366004614c49565b610e37565b005b34801561043957600080fd5b50610442610ea1565b60405161040291906155d0565b34801561045b57600080fd5b5061046f61046a366004614ee9565b610f33565b604051610402919061554a565b34801561048857600080fd5b5061042b610497366004614ded565b610fbb565b6104426104aa366004614d73565b6110de565b3480156104bb57600080fd5b50610442604051806040016040528060018152602001603160f81b81525081565b3480156104e857600080fd5b5061042b6104f7366004614f70565b6112c8565b61042b6113c1565b34801561051057600080fd5b5061044261051f366004614ee9565b61145d565b34801561053057600080fd5b5061044261053f366004614ee9565b6114fb565b34801561055057600080fd5b506008545b604051908152602001610402565b34801561056f57600080fd5b50600b54610555565b34801561058457600080fd5b50610442610593366004614ee9565b611519565b3480156105a457600080fd5b5061042b6105b3366004614c9d565b611537565b3480156105c457600080fd5b506105d86105d3366004614f70565b61156f565b604080516001600160a01b039093168352602083019190915201610402565b34801561060357600080fd5b5061042b610612366004614c49565b6115a9565b34801561062357600080fd5b50610555610632366004614c49565b6001600160a01b03166000908152600c602052604090205490565b34801561065957600080fd5b50610442610668366004614ee9565b6115f7565b34801561067957600080fd5b50610555610688366004614ded565b611615565b34801561069957600080fd5b5046610555565b3480156106ac57600080fd5b506106c06106bb366004614ee9565b6116ab565b60405163ffffffff9091168152602001610402565b3480156106e157600080fd5b5061042b6106f0366004614c49565b61170f565b34801561070157600080fd5b5061042b611770565b34801561071657600080fd5b50610442610725366004614ee9565b6117ef565b34801561073657600080fd5b5061042b610745366004614c9d565b61180d565b34801561075657600080fd5b506106c0610765366004614ee9565b611828565b34801561077657600080fd5b5061042b610785366004614e18565b61188c565b34801561079657600080fd5b506105556107a5366004614ee9565b6118de565b3480156107b657600080fd5b506107e96107c5366004614ee9565b60166020526000908152604090205463ffffffff811690600160201b900460ff1682565b6040805163ffffffff9093168352901515602083015201610402565b34801561081157600080fd5b5061042b610820366004614c49565b61197f565b34801561083157600080fd5b50610442610840366004614ee9565b6119e0565b34801561085157600080fd5b5061046f610860366004614ee9565b6119fe565b34801561087157600080fd5b50610442610880366004614ee9565b611a75565b34801561089157600080fd5b5061042b6108a0366004614ee9565b611a93565b3480156108b157600080fd5b506104426108c0366004614ee9565b611af4565b3480156108d157600080fd5b506104426108e0366004614ee9565b612660565b3480156108f157600080fd5b50610555610900366004614c49565b612753565b34801561091157600080fd5b5061042b6127da565b34801561092657600080fd5b506106c0610935366004614ee9565b612825565b34801561094657600080fd5b5061055560135481565b34801561095c57600080fd5b5061042b61096b366004614c49565b612889565b34801561097c57600080fd5b5061055560115481565b34801561099257600080fd5b5061042b6109a1366004614ee9565b6128ea565b3480156109b257600080fd5b5061046f61292e565b3480156109c757600080fd5b5061044261293d565b3480156109dc57600080fd5b5061042b6109eb366004614c49565b61294c565b3480156109fc57600080fd5b506106c0610a0b366004614ee9565b6129ad565b348015610a1c57600080fd5b50610ab5610a2b366004614ee9565b60156020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b8104821691600160801b8204811691600160a01b81049091169060ff600160c01b8204811691600160c81b8104821691600160d01b8204811691600160d81b8104821691600160e01b8204811691600160e81b9004168c565b6040805163ffffffff9d8e1681529b8d1660208d0152998c16998b0199909952968a1660608a015294891660808901529790921660a0870152151560c0860152151560e085015293151561010084015292151561012083015291151561014082015290151561016082015261018001610402565b348015610b3557600080fd5b506014546103f69060ff1681565b348015610b4f57600080fd5b5061042b610b5e366004614d46565b612a10565b348015610b6f57600080fd5b5061042b610b7e366004614c49565b612b0e565b348015610b8f57600080fd5b506106c0610b9e366004614ee9565b612b6f565b348015610baf57600080fd5b50610442610bbe366004614ee9565b612bd3565b348015610bcf57600080fd5b50610442610bde366004614ee9565b612bf1565b348015610bef57600080fd5b5061042b610bfe366004614cdd565b612c0f565b348015610c0f57600080fd5b5061055560125481565b348015610c2557600080fd5b5061042b610c34366004614c49565b612c4e565b348015610c4557600080fd5b506106c0610c54366004614ee9565b612caf565b348015610c6557600080fd5b506106c0610c74366004614ee9565b612d17565b348015610c8557600080fd5b506103f6610c94366004614ee9565b612d72565b348015610ca557600080fd5b50610442610cb4366004614ee9565b612ea2565b348015610cc557600080fd5b50610442610cd4366004614ee9565b6130bd565b348015610ce557600080fd5b5061055561271081565b348015610cfb57600080fd5b50610442610d0a366004614ee9565b6130db565b348015610d1b57600080fd5b50610442610d2a366004614ee9565b6130f9565b348015610d3b57600080fd5b506103f6610d4a366004614c65565b613193565b348015610d5b57600080fd5b5061042b613267565b348015610d7057600080fd5b5061042b610d7f366004614f91565b613331565b61042b6138fb565b348015610d9857600080fd5b5061042b610da7366004614c49565b6139d5565b348015610db857600080fd5b50610442610dc7366004614ee9565b613a82565b348015610dd857600080fd5b5061042b610de7366004614c49565b613aa0565b348015610df857600080fd5b5061042b610e07366004614f19565b613bf1565b60006001600160e01b0319821663780e9d6360e01b1480610e315750610e3182613d52565b92915050565b610e3f613da2565b6001600160a01b0316610e5061292e565b6001600160a01b031614610e7f5760405162461bcd60e51b8152600401610e769061568c565b60405180910390fd5b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610eb090615819565b80601f0160208091040260200160405190810160405280929190818152602001828054610edc90615819565b8015610f295780601f10610efe57610100808354040283529160200191610f29565b820191906000526020600020905b815481529060010190602001808311610f0c57829003601f168201915b5050505050905090565b6000610f3e82613db1565b610f9f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e76565b506000908152600460205260409020546001600160a01b031690565b6000610fc6826119fe565b9050806001600160a01b0316836001600160a01b031614156110345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e76565b806001600160a01b0316611046613da2565b6001600160a01b03161480611062575061106281610d4a613da2565b6110cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610e76565b6110d98383613dce565b505050565b60408051606081810183526001600160a01b0388166000818152600c60209081529085902054845283015291810186905261111c8782878787613e3c565b6111725760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610e76565b6001600160a01b0387166000908152600c6020526040902054611196906001613f2c565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906111e690899033908a9061555e565b60405180910390a1600080306001600160a01b0316888a60405160200161120e92919061508b565b60408051601f19818403018152908290526112289161506f565b6000604051808303816000865af19150503d8060008114611265576040519150601f19603f3d011682016040523d82523d6000602084013e61126a565b606091505b5091509150816112bc5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610e76565b98975050505050505050565b8181336112d4836119fe565b6001600160a01b0316146112e757600080fd5b336112f1826119fe565b6001600160a01b03161461130457600080fd5b600061130f846129ad565b9050600061131c866129ad565b6000878152601660209081526040808320805463ffffffff88811663ffffffff199283161783558b865294839020805495871695909116949094178455805464ff0000000019908116600160201b908117909255845416179092559051888152919250600080516020615942833981519152910160405180910390a16040518581526000805160206159428339815191529060200160405180910390a1505050505050565b60145460ff166113d057600080fd5b6012543410156113f25760405162461bcd60e51b8152600401610e769061565d565b60115460135411156114165760405162461bcd60e51b8152600401610e7690615635565b612710601354111561143a5760405162461bcd60e51b8152600401610e7690615712565b61144633601354613f38565b6013805490600061145683615854565b9190505550565b601e546060906001600160a01b031680630178fe3f61147b85612caf565b6040516001600160e01b031960e084901b16815263ffffffff91909116600482015260240160006040518083038186803b1580156114b857600080fd5b505afa1580156114cc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114f49190810190614e88565b9392505050565b6019546060906001600160a01b03168063b21bf7fa61147b85612d17565b601d546060906001600160a01b031680630178fe3f61147b85611828565b611548611542613da2565b82613f56565b6115645760405162461bcd60e51b8152600401610e76906156c1565b6110d9838383614018565b600f5460105460009182916001600160a01b03909116906127109061159490866157b7565b61159e91906157a3565b915091509250929050565b6115b1613da2565b6001600160a01b03166115c261292e565b6001600160a01b0316146115e85760405162461bcd60e51b8152600401610e769061568c565b6115f4816103e86141c3565b50565b601a546060906001600160a01b03168063b21bf7fa61147b85612b6f565b600061162083612753565b82106116825760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e76565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081815260156020526040812054600160d01b900460ff16156116e95750600090815260156020526040902054600160401b900463ffffffff1690565b610e31826040518060400160405280600481526020016361726d7360e01b81525061423b565b611717613da2565b6001600160a01b031661172861292e565b6001600160a01b03161461174e5760405162461bcd60e51b8152600401610e769061568c565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b611778613da2565b6001600160a01b031661178961292e565b6001600160a01b0316146117af5760405162461bcd60e51b8152600401610e769061568c565b6117b761292e565b6001600160a01b03166108fc479081150290604051600060405180830381858888f193505050501580156115f4573d6000803e3d6000fd5b601b546060906001600160a01b03168063b21bf7fa61147b856116ab565b6110d983838360405180602001604052806000815250612c0f565b600081815260156020526040812054600160e01b900460ff16156118665750600090815260156020526040902054600160801b900463ffffffff1690565b610e3182604051806040016040528060048152602001636661636560e01b81525061423b565b611894613da2565b6001600160a01b03166118a561292e565b6001600160a01b0316146118cb5760405162461bcd60e51b8152600401610e769061568c565b6014805460ff1916911515919091179055565b60006118e960085490565b821061194c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e76565b6008828154811061196d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611987613da2565b6001600160a01b031661199861292e565b6001600160a01b0316146119be5760405162461bcd60e51b8152600401610e769061568c565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b601c546060906001600160a01b03168063b21bf7fa61147b85612825565b6000818152600260205260408120546001600160a01b031680610e315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e76565b6019546060906001600160a01b031680630178fe3f61147b85612d17565b611a9b613da2565b6001600160a01b0316611aac61292e565b6001600160a01b031614611ad25760405162461bcd60e51b8152600401610e769061568c565b6013548111611ae057600080fd5b612710811115611aef57600080fd5b601155565b60606000604051806108e001604052806040518060400160405280600b81526020016a2334b932b334b3b43a32b960a91b8152508152602001604051806040016040528060078152602001662a32b0b1b432b960c91b81525081526020016040518060400160405280601181526020017029b7b634b234ba3c9022b733b4b732b2b960791b815250815260200160405180604001604052806009815260200168105c98da1a5d1958dd60ba1b81525081526020016040518060400160405280600b81526020016a283434b637b9b7b83432b960a91b81525081526020016040518060400160405280600b81526020016a2237b3902a3930b4b732b960a91b815250815260200160405180604001604052806005815260200164141a5b1bdd60da1b81525081526020016040518060400160405280600381526020016253707960e81b815250815260200160405180604001604052806009815260200168105cdd1c9bdb985d5d60ba1b81525081526020016040518060400160405280600d81526020016c23b937bab73239b5b2b2b832b960991b8152508152602001604051806040016040528060068152602001652237b1ba37b960d11b81525081526020016040518060400160405280600881526020016724b73b32b9ba37b960c11b81525081526020016040518060400160405280600781526020016621bab930ba37b960c91b81525081526020016040518060400160405280600481526020016321b432b360e11b815250815260200160405180604001604052806006815260200165105c9d1a5cdd60d21b81525081526020016040518060400160405280600e81526020016d2837b634b1b29027b33334b1b2b960911b8152508152602001604051806040016040528060098152602001682334b9b432b936b0b760b91b8152508152602001604051806040016040528060058152602001644e7572736560d81b815250815260200160405180604001604052806008815260200167109bdd185b9a5cdd60c21b81525081526020016040518060400160405280600a81526020016924b733363ab2b731b2b960b11b81525081526020016040518060400160405280601081526020016f23b930b83434b1902232b9b4b3b732b960811b81525081526020016040518060400160405280600b81526020016a213ab9b4b732b9b9b6b0b760a91b8152508152602001604051806040016040528060098152602001682837b231b0b9ba32b960b91b81525081526020016040518060400160405280600e81526020016d2930b1b2b1b0b910223934bb32b960911b8152508152602001604051806040016040528060078152602001664d69647769666560c81b81525081526020016040518060400160405280600781526020016628363ab6b132b960c91b81525081526020016040518060400160405280600f81526020016e283937b23ab1ba1026b0b730b3b2b960891b8152508152602001604051806040016040528060078152602001662337bab73232b960c91b81525081526020016040518060400160405280600881526020016721b7b6b2b234b0b760c11b81525081526020016040518060400160405280600a8152602001695375706572204865726f60b01b81525081526020016040518060400160405280600b81526020016a29b1bab130902234bb32b960a91b81525081526020016040518060400160405280600c81526020016b283437ba37b3b930b83432b960a11b81525081526020016040518060400160405280600f81526020016e2cb7b3b09024b739ba393ab1ba37b960891b81525081526020016040518060400160405280600981526020016821b0b93832b73a32b960b91b81525081526020016040518060400160405280600681526020016529b4b733b2b960d11b815250815260200160405180604001604052806009815260200168151a195c985c1a5cdd60ba1b81525081526020016040518060400160405280600a815260200169135e58dbdb1bd9da5cdd60b21b81525081526020016040518060400160405280600d81526020016c2337b932b9ba102930b733b2b960991b81525081526020016040518060400160405280600c81526020016b26b0b4b61021b0b93934b2b960a11b81525081526020016040518060400160405280600c81526020016b14d958dc995d081059d95b9d60a21b815250815260200160405180604001604052806002815260200161222560f11b81525081526020016040518060400160405280600881526020016726b0b3b4b1b4b0b760c11b81525081526020016040518060400160405280600d81526020016c2237b3902bb434b9b832b932b960991b8152508152602001604051806040016040528060098152602001682d37b7b5b2b2b832b960b91b81525081526020016040518060400160405280600681526020016529b430b6b0b760d11b81525081526020016040518060400160405280600781526020016621bab930ba37b960c91b81525081526020016040518060400160405280600a815260200169213ab990223934bb32b960b11b81525081526020016040518060400160405280601381526020017221b7b739ba393ab1ba34b7b7102bb7b935b2b960691b81525081526020016040518060400160405280600f81526020016e2a3930b4b71021b7b7323ab1ba37b960891b81525081526020016040518060400160405280600c81526020016b105c98da195bdb1bd9da5cdd60a21b81525081526020016040518060400160405280600d81526020016c2437b1b5b2bc90283630bcb2b960991b8152508152602001604051806040016040528060118152602001702130b9b5b2ba3130b63610283630bcb2b960791b81525081526020016040518060400160405280600f81526020016e2130b9b2b130b63610283630bcb2b960891b81525081526020016040518060400160405280600681526020016523b7b63332b960d11b81525081526020016040518060400160405280600981526020016814d8da595b9d1a5cdd60ba1b815250815260200160405180604001604052806007815260200166119b1bdc9a5cdd60ca1b8152508152602001604051806040016040528060068152602001652330b936b2b960d11b81525081526020016040518060400160405280600e81526020016d29b5b49024b739ba393ab1ba37b960911b81525081526020016040518060400160405280600b81526020016a2832ba1023b937b7b6b2b960a91b815250815260200160405180604001604052806009815260200168436f6e63696572676560b81b81525081526020016040518060400160405280600781526020016611195b9d1a5cdd60ca1b81525081526020016040518060400160405280600b81526020016a42696c6c696f6e6169726560a81b81525081526020016040518060400160405280600d81526020016c141cde58da1bd85b985b1e5cdd609a1b81525081526020016040518060400160405280600581526020016426b0bcb7b960d91b81525081526020016040518060400160405280600781526020016614995d1a5c995960ca1b8152508152602001604051806040016040528060118152602001702237b3b2b1b7b4b71024b73b32b9ba37b960791b8152508152602001604051806040016040528060078152602001665073796368696360c81b81525081526020016040518060400160405280600b81526020016a2ab132b910223934bb32b960a91b81525081526020016040518060400160405280600d81526020016c23b0b6b2902232b9b4b3b732b960991b815250815260200160405180604001604052806009815260200168141c995cda59195b9d60ba1b81525081526020016040518060400160405280600e81526020016d159a58d948141c995cda59195b9d60921b8152508152509050806047612626856129ad565b63ffffffff16612636919061586f565b6047811061265457634e487b7160e01b600052603260045260246000fd5b60200201519392505050565b60008181526017602052604081208054606092919061267e90615819565b90501115612724576000828152601760205260409020805461269f90615819565b80601f01602080910402602001604051908101604052809291908181526020018280546126cb90615819565b80156127185780601f106126ed57610100808354040283529160200191612718565b820191906000526020600020905b8154815290600101906020018083116126fb57829003601f168201915b50505050509050919050565b61272d8261426d565b60405160200161273d919061537a565b6040516020818303038152906040529050919050565b60006001600160a01b0382166127be5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e76565b506001600160a01b031660009081526003602052604090205490565b6127e2613da2565b6001600160a01b03166127f361292e565b6001600160a01b0316146128195760405162461bcd60e51b8152600401610e769061568c565b6128236000614386565b565b600081815260156020526040812054600160d81b900460ff16156128635750600090815260156020526040902054600160601b900463ffffffff1690565b610e3182604051806040016040528060048152602001631a19585960e21b81525061423b565b612891613da2565b6001600160a01b03166128a261292e565b6001600160a01b0316146128c85760405162461bcd60e51b8152600401610e769061568c565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6128f2613da2565b6001600160a01b031661290361292e565b6001600160a01b0316146129295760405162461bcd60e51b8152600401610e769061568c565b601255565b600d546001600160a01b031690565b606060018054610eb090615819565b612954613da2565b6001600160a01b031661296561292e565b6001600160a01b03161461298b5760405162461bcd60e51b8152600401610e769061568c565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260166020526040812054600160201b900460ff16156129e4575060009081526016602052604090205463ffffffff1690565b610e31826040518060400160405280600a815260200169383937b332b9b9b4b7b760b11b81525061423b565b612a18613da2565b6001600160a01b0316826001600160a01b03161415612a755760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610e76565b8060056000612a82613da2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612ac6613da2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612b02911515815260200190565b60405180910390a35050565b612b16613da2565b6001600160a01b0316612b2761292e565b6001600160a01b031614612b4d5760405162461bcd60e51b8152600401610e769061568c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260156020526040812054600160c81b900460ff1615612bad5750600090815260156020526040902054600160201b900463ffffffff1690565b610e318260405180604001604052806004815260200163626f647960e01b81525061423b565b601e546060906001600160a01b03168063b21bf7fa61147b85612caf565b601b546060906001600160a01b031680630178fe3f61147b856116ab565b612c20612c1a613da2565b83613f56565b612c3c5760405162461bcd60e51b8152600401610e76906156c1565b612c48848484846143d8565b50505050565b612c56613da2565b6001600160a01b0316612c6761292e565b6001600160a01b031614612c8d5760405162461bcd60e51b8152600401610e769061568c565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260156020526040812054600160e81b900460ff1615612ced5750600090815260156020526040902054600160a01b900463ffffffff1690565b610e3182604051806040016040528060088152602001673432b0b23bb2b0b960c11b81525061423b565b600081815260156020526040812054600160c01b900460ff1615612d4e575060009081526015602052604090205463ffffffff1690565b610e318260405180604001604052806002815260200161626760f01b81525061423b565b6000818152601560209081526040808320815161018081018352905463ffffffff8082168352600160201b8204811694830194909452600160401b8104841692820192909252600160601b820483166060820152600160801b820483166080820152600160a01b820490921660a083015260ff600160c01b82048116151560c08401819052600160c81b83048216151560e0850152600160d01b830482161515610100850152600160d81b830482161515610120850152600160e01b830482161515610140850152600160e81b90920416151561016083015280612e5757508060e001515b80612e6457508061010001515b80612e7157508061012001515b80612e7e57508061014001515b80612e8b57508061016001515b15612e995750600092915050565b50600192915050565b606060006040518060a00160405280607981526020016159a260799139905080612ecb84611a75565b604051602001612edc9291906150c2565b604051602081830303815290604052905080612ef7846130db565b604051602001612f089291906150c2565b604051602081830303815290604052905080612f2384612bf1565b604051602001612f349291906150c2565b604051602081830303815290604052905080612f4f84613a82565b604051602001612f609291906150c2565b604051602081830303815290604052905080612f7b84611519565b604051602001612f8c9291906150c2565b604051602081830303815290604052905080612fa78461145d565b604051602001612fb89291906150c2565b604051602081830303815290604052905080604051602001612fda9190615293565b60405160208183030381529060405290506000612ff684612660565b612fff8361440b565b613008866114fb565b61301187611af4565b60405160200161302494939291906153ad565b6040516020818303038152906040529050600061309182613044876115f7565b61304d886117ef565b613056896119e0565b61305f8a6130bd565b6130688b612bd3565b60405160200161307d969594939291906150f1565b60405160208183030381529060405261440b565b9050806040516020016130a49190615505565b6040516020818303038152906040529350505050919050565b601d546060906001600160a01b03168063b21bf7fa61147b85611828565b601a546060906001600160a01b031680630178fe3f61147b85612b6f565b6017602052600090815260409020805461311290615819565b80601f016020809104026020016040519081016040528092919081815260200182805461313e90615819565b801561318b5780601f106131605761010080835404028352916020019161318b565b820191906000526020600020905b81548152906001019060200180831161316e57829003601f168201915b505050505081565b600e5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906131cc90889060040161554a565b60206040518083038186803b1580156131e457600080fd5b505afa1580156131f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321c9190614ecd565b6001600160a01b03161415613235576001915050610e31565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61326f613da2565b6001600160a01b031661328061292e565b6001600160a01b0316146132a65760405162461bcd60e51b8152600401610e769061568c565b604051600090339047908381818185875af1925050503d80600081146132e8576040519150601f19603f3d011682016040523d82523d6000602084013e6132ed565b606091505b50509050806115f45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e76565b87873361333d836119fe565b6001600160a01b03161461335057600080fd5b3361335a826119fe565b6001600160a01b03161461336d57600080fd5b87806133765750865b8061337e5750855b806133865750845b8061338e5750835b806133965750825b61339f57600080fd5b87156134165760006133b08a612d17565b905060006133bd8c612d17565b60008d815260156020526040808220805463ffffffff1990811663ffffffff9788161782558f8452919092208054909116929094169190911783558054600160c01b60ff60c01b19918216811790925583541617909155505b86156135015760006134278a612b6f565b905060006134348c612b6f565b905081601560008e815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e815260200190815260200160002060000160196101000a81548160ff0219169083151502179055506001601560008d815260200190815260200160002060000160196101000a81548160ff02191690831515021790555050505b85156135ec5760006135128a6116ab565b9050600061351f8c6116ab565b905081601560008e815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601a6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601a6101000a81548160ff02191690831515021790555050505b84156136d75760006135fd8a612825565b9050600061360a8c612825565b905081601560008e8152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff16021790555080601560008d8152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601b6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601b6101000a81548160ff02191690831515021790555050505b83156137c25760006136e88a611828565b905060006136f58c611828565b905081601560008e815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601c6101000a81548160ff02191690831515021790555050505b82156138ad5760006137d38a612caf565b905060006137e08c612caf565b905081601560008e815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601d6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601d6101000a81548160ff02191690831515021790555050505b6040518a81526000805160206159428339815191529060200160405180910390a16040518981526000805160206159428339815191529060200160405180910390a150505050505050505050565b60145460ff1661390a57600080fd5b6012546139189060046157b7565b3410156139375760405162461bcd60e51b8152600401610e769061565d565b6127106013546005613949919061578b565b106139665760405162461bcd60e51b8152600401610e7690615712565b60115460135461397790600561578b565b11156139955760405162461bcd60e51b8152600401610e7690615635565b60005b60058110156115f4576139ad33601354613f38565b601380549060006139bd83615854565b919050555080806139cd90615854565b915050613998565b6139dd613da2565b6001600160a01b03166139ee61292e565b6001600160a01b031614613a145760405162461bcd60e51b8152600401610e769061568c565b6001600160a01b038116613a795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e76565b6115f481614386565b601c546060906001600160a01b031680630178fe3f61147b85612825565b613aa8613da2565b6001600160a01b0316613ab961292e565b6001600160a01b031614613adf5760405162461bcd60e51b8152600401610e769061568c565b806001600160a01b03811663a9059cbb613af761292e565b6040516370a0823160e01b81526001600160a01b038516906370a0823190613b2390309060040161554a565b60206040518083038186803b158015613b3b57600080fd5b505afa158015613b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b739190614f01565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015613bb957600080fd5b505af1158015613bcd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d99190614e34565b33613bfb836119fe565b6001600160a01b031614613c0e57600080fd5b6000815111613c1c57600080fd5b601881604051613c2c919061506f565b9081526040519081900360200190205460ff1615613c4957600080fd5b6000828152601760205260408082209051601891613c66916152df565b9081526040805160209281900383019020805460ff191693151593909317909255600084815260178252919091208251613ca292840190614b23565b506001601882604051613cb5919061506f565b90815260405160209181900382018120805460ff191693151593909317909255838252600080516020615942833981519152910160405180910390a15050565b600033301415613d4c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150613d4f9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b1480613d8357506001600160e01b03198216635b5e139f60e01b145b80610e3157506301ffc9a760e01b6001600160e01b0319831614610e31565b6000613dac613cf5565b905090565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e03826119fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616613ea25760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610e76565b6001613eb5613eb08761457e565b6145fb565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613f03573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006114f4828461578b565b613f5282826040518060200160405280600081525061462b565b5050565b6000613f6182613db1565b613fc25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e76565b6000613fcd836119fe565b9050806001600160a01b0316846001600160a01b031614806140085750836001600160a01b0316613ffd84610f33565b6001600160a01b0316145b8061325f575061325f8185613193565b826001600160a01b031661402b826119fe565b6001600160a01b0316146140935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e76565b6001600160a01b0382166140f55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e76565b61410083838361465e565b61410b600082613dce565b6001600160a01b03831660009081526003602052604081208054600192906141349084906157d6565b90915550506001600160a01b038216600090815260036020526040812080546001929061416290849061578b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127108111156142155760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610e76565b600f80546001600160a01b0319166001600160a01b039390931692909217909155601055565b60006114f482846040516020016142539291906152bd565b604051602081830303815290604052805160209091012090565b6060816142915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142bb57806142a581615854565b91506142b49050600a836157a3565b9150614295565b6000816001600160401b038111156142e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561430d576020820181803683370190505b5090505b841561325f576143226001836157d6565b915061432f600a8661586f565b61433a90603061578b565b60f81b81838151811061435d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061437f600a866157a3565b9450614311565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6143e3848484614018565b6143ef84848484614716565b612c485760405162461bcd60e51b8152600401610e76906155e3565b80516060908061442b575050604080516020810190915260008152919050565b6000600361443a83600261578b565b61444491906157a3565b61444f9060046157b7565b9050600061445e82602061578b565b6001600160401b0381111561448357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156144ad576020820181803683370190505b5090506000604051806060016040528060408152602001615962604091399050600181016020830160005b86811015614539576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016144d8565b506003860660018114614553576002811461456457614570565b613d3d60f01b600119830152614570565b603d60f81b6000198301525b505050918152949350505050565b60006040518060800160405280604381526020016158ff60439139805160209182012083518483015160408087015180519086012090516145de950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000614606600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016145de565b614635838361482a565b6146426000848484614716565b6110d95760405162461bcd60e51b8152600401610e76906155e3565b6001600160a01b0383166146b9576146b481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6146dc565b816001600160a01b0316836001600160a01b0316146146dc576146dc8382614969565b6001600160a01b0382166146f3576110d981614a06565b826001600160a01b0316826001600160a01b0316146110d9576110d98282614adf565b60006001600160a01b0384163b1561481f57836001600160a01b031663150b7a0261473f613da2565b8786866040518563ffffffff1660e01b81526004016147619493929190615593565b602060405180830381600087803b15801561477b57600080fd5b505af19250505080156147ab575060408051601f3d908101601f191682019092526147a891810190614e6c565b60015b614805573d8080156147d9576040519150601f19603f3d011682016040523d82523d6000602084013e6147de565b606091505b5080516147fd5760405162461bcd60e51b8152600401610e76906155e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061325f565b506001949350505050565b6001600160a01b0382166148805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e76565b61488981613db1565b156148d65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e76565b6148e26000838361465e565b6001600160a01b038216600090815260036020526040812080546001929061490b90849061578b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161497684612753565b61498091906157d6565b6000838152600760205260409020549091508082146149d3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614a18906001906157d6565b60008381526009602052604081205460088054939450909284908110614a4e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110614a7d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614ac357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614aea83612753565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614b2f90615819565b90600052602060002090601f016020900481019282614b515760008555614b97565b82601f10614b6a57805160ff1916838001178555614b97565b82800160010185558215614b97579182015b82811115614b97578251825591602001919060010190614b7c565b50614ba3929150614ba7565b5090565b5b80821115614ba35760008155600101614ba8565b6000614bcf614bca84615764565b615734565b9050828152838383011115614be357600080fd5b828260208301376000602084830101529392505050565b6000614c08614bca84615764565b9050828152838383011115614c1c57600080fd5b6114f48360208301846157ed565b600082601f830112614c3a578081fd5b6114f483833560208501614bbc565b600060208284031215614c5a578081fd5b81356114f4816158c5565b60008060408385031215614c77578081fd5b8235614c82816158c5565b91506020830135614c92816158c5565b809150509250929050565b600080600060608486031215614cb1578081fd5b8335614cbc816158c5565b92506020840135614ccc816158c5565b929592945050506040919091013590565b60008060008060808587031215614cf2578081fd5b8435614cfd816158c5565b93506020850135614d0d816158c5565b92506040850135915060608501356001600160401b03811115614d2e578182fd5b614d3a87828801614c2a565b91505092959194509250565b60008060408385031215614d58578182fd5b8235614d63816158c5565b91506020830135614c92816158da565b600080600080600060a08688031215614d8a578081fd5b8535614d95816158c5565b945060208601356001600160401b03811115614daf578182fd5b614dbb88828901614c2a565b9450506040860135925060608601359150608086013560ff81168114614ddf578182fd5b809150509295509295909350565b60008060408385031215614dff578182fd5b8235614e0a816158c5565b946020939093013593505050565b600060208284031215614e29578081fd5b81356114f4816158da565b600060208284031215614e45578081fd5b81516114f4816158da565b600060208284031215614e61578081fd5b81356114f4816158e8565b600060208284031215614e7d578081fd5b81516114f4816158e8565b600060208284031215614e99578081fd5b81516001600160401b03811115614eae578182fd5b8201601f81018413614ebe578182fd5b61325f84825160208401614bfa565b600060208284031215614ede578081fd5b81516114f4816158c5565b600060208284031215614efa578081fd5b5035919050565b600060208284031215614f12578081fd5b5051919050565b60008060408385031215614f2b578182fd5b8235915060208301356001600160401b03811115614f47578182fd5b8301601f81018513614f57578182fd5b614f6685823560208401614bbc565b9150509250929050565b60008060408385031215614f82578182fd5b50508035926020909101359150565b600080600080600080600080610100898b031215614fad578586fd5b88359750602089013596506040890135614fc6816158da565b95506060890135614fd6816158da565b94506080890135614fe6816158da565b935060a0890135614ff6816158da565b925060c0890135615006816158da565b915060e0890135615016816158da565b809150509295985092959890939650565b6000815180845261503f8160208601602086016157ed565b601f01601f19169290920160200192915050565b600081516150658185602086016157ed565b9290920192915050565b600082516150818184602087016157ed565b9190910192915050565b6000835161509d8184602088016157ed565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516150d48184602088016157ed565b8351908301906150e88183602088016157ed565b01949350505050565b60008751615103818460208c016157ed565b80830190507f7b2274726169745f74797065223a2022426f6479222c202276616c7565223a208152601160f91b8060208301528851615149816021850160208d016157ed565b630113e96160e51b6021939091019283018190527f7b2274726169745f74797065223a202241726d73222c202276616c7565223a20602584015260458301829052885161519d816046860160208d016157ed565b60469301928301527f7b2274726169745f74797065223a202248656164222c202276616c7565223a20604a830152606a8201526152866152766152706152396151f061523361520082606b89018e615053565b630113e96160e51b815260040190565b7f7b2274726169745f74797065223a202246616365222c202276616c7565223a208152601160f91b602082015260210190565b8a615053565b7f7b2274726169745f74797065223a20224865616477656172222c202276616c7581526432911d101160d91b602082015260250190565b86615053565b63227d5d7d60e01b815260040190565b9998505050505050505050565b600082516152a58184602087016157ed565b651e17b9bb339f60d11b920191825250600601919050565b600083516152cf8184602088016157ed565b9190910191825250602001919050565b600080835482600182811c9150808316806152fb57607f831692505b602080841082141561531b57634e487b7160e01b87526022600452602487fd5b81801561532f57600181146153405761536c565b60ff1986168952848901965061536c565b60008a815260209020885b868110156153645781548b82015290850190830161534b565b505084890196505b509498975050505050505050565b6a426c6f636b68656164202360a81b8152600082516153a081600b8501602087016157ed565b91909101600b0192915050565b693d913730b6b2911d101160b11b815284516000906153d381600a850160208a016157ed565b7f222c20226465736372697074696f6e223a2022426c6f636b6865616473222c20600a918401918201527f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173602a82015263194d8d0b60e21b604a820152855161544381604e840160208a016157ed565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a604e92909101918201527810112130b1b5b3b937bab732111610113b30b63ab2911d101160391b606e82015284516154a38160878401602089016157ed565b630113e96160e51b910160878101919091527f7b2274726169745f74797065223a202250726f66657373696f6e222c20227661608b82015266363ab2911d101160c91b60ab8201526154fa6151f060b28301615270565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161553d81601d8501602087016157ed565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0384811682528316602082015260606040820181905260009061558a90830184615027565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906155c690830184615027565b9695505050505050565b6020815260006114f46020830184615027565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d10985d18da0814dbdb190813dd5d60921b604082015260600190565b6020808252601590820152745361766520757020796f757220717561727465727360581b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561575c5761575c6158af565b604052919050565b60006001600160401b0382111561577d5761577d6158af565b50601f01601f191660200190565b6000821982111561579e5761579e615883565b500190565b6000826157b2576157b2615899565b500490565b60008160001904831182151516156157d1576157d1615883565b500290565b6000828210156157e8576157e8615883565b500390565b60005b838110156158085781810151838201526020016157f0565b83811115612c485750506000910152565b600181811c9082168061582d57607f821691505b6020821081141561584e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561586857615868615883565b5060010190565b60008261587e5761587e615899565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146115f457600080fd5b80151581146115f457600080fd5b6001600160e01b0319811681146115f457600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529ecbc4a025408a24aa253b65997ec1ee571cfa78059b0b0a70332af66151e568c4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766727207072657365727665417370656374526174696f3d27784d696e594d696e206d656574272076696577426f783d27302030203235203235272077696474683d2735303027206865696768743d27353030273ea26469706673582212207903bfdfafc7b780aae7ec9b1f307e9d35ba895a4e2dd13c1af54b89f910f46964736f6c63430008040033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000df20d6d4a0a93889dec0a311ef13dcdfdb40aa7000000000000000000000000a22b1896479dba6b408e5d2d1e3308be14f8ada3000000000000000000000000dba5943a3f519dbd8be0f19a6f3abbc39d6e32950000000000000000000000001b49c7632ca16718596d3a196b49e1c075ed88570000000000000000000000008fc90ccddeca450d763afd8a249c8fdb443c9f1c000000000000000000000000d3eb8dfe56ae43d8d18f429208fe9521e72886d6

Deployed Bytecode

0x6080604052600436106103d15760003560e01c806370a08231116101f9578063b88d4fde1161011e578063db5cc181116100b6578063f1e421581161007a578063f1e4215814610d84578063f2fde38b14610d8c578063f3fe491514610dac578063f4f3b20014610dcc578063fe55932a14610dec57600080fd5b8063db5cc18114610cef578063dc8c92d914610d0f578063e985e9c514610d2f578063ec4c2aa214610d4f578063f04c690114610d6457600080fd5b8063b88d4fde14610be3578063bdb4b84814610c03578063c19e6d2314610c19578063c3eca27114610c39578063c446b4ec14610c59578063c69db69314610c79578063c87b56dd14610c99578063d66bf1cf14610cb9578063d85d7f5b14610cd957600080fd5b80639b9f7d5a116101915780639b9f7d5a146109d05780639c43a04d146109f05780639cbb1a5414610a105780639fd6db1214610b29578063a22cb46514610b43578063a396446714610b63578063a7b5d4d414610b83578063a8e20c7d14610ba3578063b16bc51814610bc357600080fd5b806370a08231146108e5578063715018a6146109055780637464d9d11461091a57806375794a3c1461093a5780637cff397214610950578063839ce1d9146109705780638545f4ea146109865780638da5cb5b146109a657806395d89b41146109bb57600080fd5b80632e196410116102fa5780634ea3871a116102925780636352211e116102565780636352211e14610845578063646ad39814610865578063665e64d6146108855780636a7e3773146108a55780636b8ff574146108c557600080fd5b80634ea3871a1461076a5780634f6ccce71461078a578063546200f0146107aa5780635b6d91f4146108055780635f3e847c1461082557600080fd5b80632e1964101461064d5780632f745c591461066d5780633408e4701461068d5780633411beb4146106a0578063370a7358146106d55780633ccfd60b146106f55780633d477f0a1461070a57806342842e0e1461072a578063487a671e1461074a57600080fd5b806312fdfda11161036d57806312fdfda11461050457806313b536151461052457806318160ddd1461054457806320379ee5146105635780632236e18b1461057857806323b872dd146105985780632a55205a146105b85780632a9e63c6146105f75780632d0335ab1461061757600080fd5b806301ffc9a7146103d6578063044008c81461040b57806306fdde031461042d578063081812fc1461044f578063095ea7b31461047c5780630c53c51c1461049c5780630f7e5970146104af5780631172fe06146104dc5780631249c58b146104fc575b600080fd5b3480156103e257600080fd5b506103f66103f1366004614e50565b610e0c565b60405190151581526020015b60405180910390f35b34801561041757600080fd5b5061042b610426366004614c49565b610e37565b005b34801561043957600080fd5b50610442610ea1565b60405161040291906155d0565b34801561045b57600080fd5b5061046f61046a366004614ee9565b610f33565b604051610402919061554a565b34801561048857600080fd5b5061042b610497366004614ded565b610fbb565b6104426104aa366004614d73565b6110de565b3480156104bb57600080fd5b50610442604051806040016040528060018152602001603160f81b81525081565b3480156104e857600080fd5b5061042b6104f7366004614f70565b6112c8565b61042b6113c1565b34801561051057600080fd5b5061044261051f366004614ee9565b61145d565b34801561053057600080fd5b5061044261053f366004614ee9565b6114fb565b34801561055057600080fd5b506008545b604051908152602001610402565b34801561056f57600080fd5b50600b54610555565b34801561058457600080fd5b50610442610593366004614ee9565b611519565b3480156105a457600080fd5b5061042b6105b3366004614c9d565b611537565b3480156105c457600080fd5b506105d86105d3366004614f70565b61156f565b604080516001600160a01b039093168352602083019190915201610402565b34801561060357600080fd5b5061042b610612366004614c49565b6115a9565b34801561062357600080fd5b50610555610632366004614c49565b6001600160a01b03166000908152600c602052604090205490565b34801561065957600080fd5b50610442610668366004614ee9565b6115f7565b34801561067957600080fd5b50610555610688366004614ded565b611615565b34801561069957600080fd5b5046610555565b3480156106ac57600080fd5b506106c06106bb366004614ee9565b6116ab565b60405163ffffffff9091168152602001610402565b3480156106e157600080fd5b5061042b6106f0366004614c49565b61170f565b34801561070157600080fd5b5061042b611770565b34801561071657600080fd5b50610442610725366004614ee9565b6117ef565b34801561073657600080fd5b5061042b610745366004614c9d565b61180d565b34801561075657600080fd5b506106c0610765366004614ee9565b611828565b34801561077657600080fd5b5061042b610785366004614e18565b61188c565b34801561079657600080fd5b506105556107a5366004614ee9565b6118de565b3480156107b657600080fd5b506107e96107c5366004614ee9565b60166020526000908152604090205463ffffffff811690600160201b900460ff1682565b6040805163ffffffff9093168352901515602083015201610402565b34801561081157600080fd5b5061042b610820366004614c49565b61197f565b34801561083157600080fd5b50610442610840366004614ee9565b6119e0565b34801561085157600080fd5b5061046f610860366004614ee9565b6119fe565b34801561087157600080fd5b50610442610880366004614ee9565b611a75565b34801561089157600080fd5b5061042b6108a0366004614ee9565b611a93565b3480156108b157600080fd5b506104426108c0366004614ee9565b611af4565b3480156108d157600080fd5b506104426108e0366004614ee9565b612660565b3480156108f157600080fd5b50610555610900366004614c49565b612753565b34801561091157600080fd5b5061042b6127da565b34801561092657600080fd5b506106c0610935366004614ee9565b612825565b34801561094657600080fd5b5061055560135481565b34801561095c57600080fd5b5061042b61096b366004614c49565b612889565b34801561097c57600080fd5b5061055560115481565b34801561099257600080fd5b5061042b6109a1366004614ee9565b6128ea565b3480156109b257600080fd5b5061046f61292e565b3480156109c757600080fd5b5061044261293d565b3480156109dc57600080fd5b5061042b6109eb366004614c49565b61294c565b3480156109fc57600080fd5b506106c0610a0b366004614ee9565b6129ad565b348015610a1c57600080fd5b50610ab5610a2b366004614ee9565b60156020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b8104821691600160801b8204811691600160a01b81049091169060ff600160c01b8204811691600160c81b8104821691600160d01b8204811691600160d81b8104821691600160e01b8204811691600160e81b9004168c565b6040805163ffffffff9d8e1681529b8d1660208d0152998c16998b0199909952968a1660608a015294891660808901529790921660a0870152151560c0860152151560e085015293151561010084015292151561012083015291151561014082015290151561016082015261018001610402565b348015610b3557600080fd5b506014546103f69060ff1681565b348015610b4f57600080fd5b5061042b610b5e366004614d46565b612a10565b348015610b6f57600080fd5b5061042b610b7e366004614c49565b612b0e565b348015610b8f57600080fd5b506106c0610b9e366004614ee9565b612b6f565b348015610baf57600080fd5b50610442610bbe366004614ee9565b612bd3565b348015610bcf57600080fd5b50610442610bde366004614ee9565b612bf1565b348015610bef57600080fd5b5061042b610bfe366004614cdd565b612c0f565b348015610c0f57600080fd5b5061055560125481565b348015610c2557600080fd5b5061042b610c34366004614c49565b612c4e565b348015610c4557600080fd5b506106c0610c54366004614ee9565b612caf565b348015610c6557600080fd5b506106c0610c74366004614ee9565b612d17565b348015610c8557600080fd5b506103f6610c94366004614ee9565b612d72565b348015610ca557600080fd5b50610442610cb4366004614ee9565b612ea2565b348015610cc557600080fd5b50610442610cd4366004614ee9565b6130bd565b348015610ce557600080fd5b5061055561271081565b348015610cfb57600080fd5b50610442610d0a366004614ee9565b6130db565b348015610d1b57600080fd5b50610442610d2a366004614ee9565b6130f9565b348015610d3b57600080fd5b506103f6610d4a366004614c65565b613193565b348015610d5b57600080fd5b5061042b613267565b348015610d7057600080fd5b5061042b610d7f366004614f91565b613331565b61042b6138fb565b348015610d9857600080fd5b5061042b610da7366004614c49565b6139d5565b348015610db857600080fd5b50610442610dc7366004614ee9565b613a82565b348015610dd857600080fd5b5061042b610de7366004614c49565b613aa0565b348015610df857600080fd5b5061042b610e07366004614f19565b613bf1565b60006001600160e01b0319821663780e9d6360e01b1480610e315750610e3182613d52565b92915050565b610e3f613da2565b6001600160a01b0316610e5061292e565b6001600160a01b031614610e7f5760405162461bcd60e51b8152600401610e769061568c565b60405180910390fd5b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610eb090615819565b80601f0160208091040260200160405190810160405280929190818152602001828054610edc90615819565b8015610f295780601f10610efe57610100808354040283529160200191610f29565b820191906000526020600020905b815481529060010190602001808311610f0c57829003601f168201915b5050505050905090565b6000610f3e82613db1565b610f9f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e76565b506000908152600460205260409020546001600160a01b031690565b6000610fc6826119fe565b9050806001600160a01b0316836001600160a01b031614156110345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e76565b806001600160a01b0316611046613da2565b6001600160a01b03161480611062575061106281610d4a613da2565b6110cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610e76565b6110d98383613dce565b505050565b60408051606081810183526001600160a01b0388166000818152600c60209081529085902054845283015291810186905261111c8782878787613e3c565b6111725760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610e76565b6001600160a01b0387166000908152600c6020526040902054611196906001613f2c565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906111e690899033908a9061555e565b60405180910390a1600080306001600160a01b0316888a60405160200161120e92919061508b565b60408051601f19818403018152908290526112289161506f565b6000604051808303816000865af19150503d8060008114611265576040519150601f19603f3d011682016040523d82523d6000602084013e61126a565b606091505b5091509150816112bc5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610e76565b98975050505050505050565b8181336112d4836119fe565b6001600160a01b0316146112e757600080fd5b336112f1826119fe565b6001600160a01b03161461130457600080fd5b600061130f846129ad565b9050600061131c866129ad565b6000878152601660209081526040808320805463ffffffff88811663ffffffff199283161783558b865294839020805495871695909116949094178455805464ff0000000019908116600160201b908117909255845416179092559051888152919250600080516020615942833981519152910160405180910390a16040518581526000805160206159428339815191529060200160405180910390a1505050505050565b60145460ff166113d057600080fd5b6012543410156113f25760405162461bcd60e51b8152600401610e769061565d565b60115460135411156114165760405162461bcd60e51b8152600401610e7690615635565b612710601354111561143a5760405162461bcd60e51b8152600401610e7690615712565b61144633601354613f38565b6013805490600061145683615854565b9190505550565b601e546060906001600160a01b031680630178fe3f61147b85612caf565b6040516001600160e01b031960e084901b16815263ffffffff91909116600482015260240160006040518083038186803b1580156114b857600080fd5b505afa1580156114cc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114f49190810190614e88565b9392505050565b6019546060906001600160a01b03168063b21bf7fa61147b85612d17565b601d546060906001600160a01b031680630178fe3f61147b85611828565b611548611542613da2565b82613f56565b6115645760405162461bcd60e51b8152600401610e76906156c1565b6110d9838383614018565b600f5460105460009182916001600160a01b03909116906127109061159490866157b7565b61159e91906157a3565b915091509250929050565b6115b1613da2565b6001600160a01b03166115c261292e565b6001600160a01b0316146115e85760405162461bcd60e51b8152600401610e769061568c565b6115f4816103e86141c3565b50565b601a546060906001600160a01b03168063b21bf7fa61147b85612b6f565b600061162083612753565b82106116825760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e76565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081815260156020526040812054600160d01b900460ff16156116e95750600090815260156020526040902054600160401b900463ffffffff1690565b610e31826040518060400160405280600481526020016361726d7360e01b81525061423b565b611717613da2565b6001600160a01b031661172861292e565b6001600160a01b03161461174e5760405162461bcd60e51b8152600401610e769061568c565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b611778613da2565b6001600160a01b031661178961292e565b6001600160a01b0316146117af5760405162461bcd60e51b8152600401610e769061568c565b6117b761292e565b6001600160a01b03166108fc479081150290604051600060405180830381858888f193505050501580156115f4573d6000803e3d6000fd5b601b546060906001600160a01b03168063b21bf7fa61147b856116ab565b6110d983838360405180602001604052806000815250612c0f565b600081815260156020526040812054600160e01b900460ff16156118665750600090815260156020526040902054600160801b900463ffffffff1690565b610e3182604051806040016040528060048152602001636661636560e01b81525061423b565b611894613da2565b6001600160a01b03166118a561292e565b6001600160a01b0316146118cb5760405162461bcd60e51b8152600401610e769061568c565b6014805460ff1916911515919091179055565b60006118e960085490565b821061194c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e76565b6008828154811061196d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611987613da2565b6001600160a01b031661199861292e565b6001600160a01b0316146119be5760405162461bcd60e51b8152600401610e769061568c565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b601c546060906001600160a01b03168063b21bf7fa61147b85612825565b6000818152600260205260408120546001600160a01b031680610e315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e76565b6019546060906001600160a01b031680630178fe3f61147b85612d17565b611a9b613da2565b6001600160a01b0316611aac61292e565b6001600160a01b031614611ad25760405162461bcd60e51b8152600401610e769061568c565b6013548111611ae057600080fd5b612710811115611aef57600080fd5b601155565b60606000604051806108e001604052806040518060400160405280600b81526020016a2334b932b334b3b43a32b960a91b8152508152602001604051806040016040528060078152602001662a32b0b1b432b960c91b81525081526020016040518060400160405280601181526020017029b7b634b234ba3c9022b733b4b732b2b960791b815250815260200160405180604001604052806009815260200168105c98da1a5d1958dd60ba1b81525081526020016040518060400160405280600b81526020016a283434b637b9b7b83432b960a91b81525081526020016040518060400160405280600b81526020016a2237b3902a3930b4b732b960a91b815250815260200160405180604001604052806005815260200164141a5b1bdd60da1b81525081526020016040518060400160405280600381526020016253707960e81b815250815260200160405180604001604052806009815260200168105cdd1c9bdb985d5d60ba1b81525081526020016040518060400160405280600d81526020016c23b937bab73239b5b2b2b832b960991b8152508152602001604051806040016040528060068152602001652237b1ba37b960d11b81525081526020016040518060400160405280600881526020016724b73b32b9ba37b960c11b81525081526020016040518060400160405280600781526020016621bab930ba37b960c91b81525081526020016040518060400160405280600481526020016321b432b360e11b815250815260200160405180604001604052806006815260200165105c9d1a5cdd60d21b81525081526020016040518060400160405280600e81526020016d2837b634b1b29027b33334b1b2b960911b8152508152602001604051806040016040528060098152602001682334b9b432b936b0b760b91b8152508152602001604051806040016040528060058152602001644e7572736560d81b815250815260200160405180604001604052806008815260200167109bdd185b9a5cdd60c21b81525081526020016040518060400160405280600a81526020016924b733363ab2b731b2b960b11b81525081526020016040518060400160405280601081526020016f23b930b83434b1902232b9b4b3b732b960811b81525081526020016040518060400160405280600b81526020016a213ab9b4b732b9b9b6b0b760a91b8152508152602001604051806040016040528060098152602001682837b231b0b9ba32b960b91b81525081526020016040518060400160405280600e81526020016d2930b1b2b1b0b910223934bb32b960911b8152508152602001604051806040016040528060078152602001664d69647769666560c81b81525081526020016040518060400160405280600781526020016628363ab6b132b960c91b81525081526020016040518060400160405280600f81526020016e283937b23ab1ba1026b0b730b3b2b960891b8152508152602001604051806040016040528060078152602001662337bab73232b960c91b81525081526020016040518060400160405280600881526020016721b7b6b2b234b0b760c11b81525081526020016040518060400160405280600a8152602001695375706572204865726f60b01b81525081526020016040518060400160405280600b81526020016a29b1bab130902234bb32b960a91b81525081526020016040518060400160405280600c81526020016b283437ba37b3b930b83432b960a11b81525081526020016040518060400160405280600f81526020016e2cb7b3b09024b739ba393ab1ba37b960891b81525081526020016040518060400160405280600981526020016821b0b93832b73a32b960b91b81525081526020016040518060400160405280600681526020016529b4b733b2b960d11b815250815260200160405180604001604052806009815260200168151a195c985c1a5cdd60ba1b81525081526020016040518060400160405280600a815260200169135e58dbdb1bd9da5cdd60b21b81525081526020016040518060400160405280600d81526020016c2337b932b9ba102930b733b2b960991b81525081526020016040518060400160405280600c81526020016b26b0b4b61021b0b93934b2b960a11b81525081526020016040518060400160405280600c81526020016b14d958dc995d081059d95b9d60a21b815250815260200160405180604001604052806002815260200161222560f11b81525081526020016040518060400160405280600881526020016726b0b3b4b1b4b0b760c11b81525081526020016040518060400160405280600d81526020016c2237b3902bb434b9b832b932b960991b8152508152602001604051806040016040528060098152602001682d37b7b5b2b2b832b960b91b81525081526020016040518060400160405280600681526020016529b430b6b0b760d11b81525081526020016040518060400160405280600781526020016621bab930ba37b960c91b81525081526020016040518060400160405280600a815260200169213ab990223934bb32b960b11b81525081526020016040518060400160405280601381526020017221b7b739ba393ab1ba34b7b7102bb7b935b2b960691b81525081526020016040518060400160405280600f81526020016e2a3930b4b71021b7b7323ab1ba37b960891b81525081526020016040518060400160405280600c81526020016b105c98da195bdb1bd9da5cdd60a21b81525081526020016040518060400160405280600d81526020016c2437b1b5b2bc90283630bcb2b960991b8152508152602001604051806040016040528060118152602001702130b9b5b2ba3130b63610283630bcb2b960791b81525081526020016040518060400160405280600f81526020016e2130b9b2b130b63610283630bcb2b960891b81525081526020016040518060400160405280600681526020016523b7b63332b960d11b81525081526020016040518060400160405280600981526020016814d8da595b9d1a5cdd60ba1b815250815260200160405180604001604052806007815260200166119b1bdc9a5cdd60ca1b8152508152602001604051806040016040528060068152602001652330b936b2b960d11b81525081526020016040518060400160405280600e81526020016d29b5b49024b739ba393ab1ba37b960911b81525081526020016040518060400160405280600b81526020016a2832ba1023b937b7b6b2b960a91b815250815260200160405180604001604052806009815260200168436f6e63696572676560b81b81525081526020016040518060400160405280600781526020016611195b9d1a5cdd60ca1b81525081526020016040518060400160405280600b81526020016a42696c6c696f6e6169726560a81b81525081526020016040518060400160405280600d81526020016c141cde58da1bd85b985b1e5cdd609a1b81525081526020016040518060400160405280600581526020016426b0bcb7b960d91b81525081526020016040518060400160405280600781526020016614995d1a5c995960ca1b8152508152602001604051806040016040528060118152602001702237b3b2b1b7b4b71024b73b32b9ba37b960791b8152508152602001604051806040016040528060078152602001665073796368696360c81b81525081526020016040518060400160405280600b81526020016a2ab132b910223934bb32b960a91b81525081526020016040518060400160405280600d81526020016c23b0b6b2902232b9b4b3b732b960991b815250815260200160405180604001604052806009815260200168141c995cda59195b9d60ba1b81525081526020016040518060400160405280600e81526020016d159a58d948141c995cda59195b9d60921b8152508152509050806047612626856129ad565b63ffffffff16612636919061586f565b6047811061265457634e487b7160e01b600052603260045260246000fd5b60200201519392505050565b60008181526017602052604081208054606092919061267e90615819565b90501115612724576000828152601760205260409020805461269f90615819565b80601f01602080910402602001604051908101604052809291908181526020018280546126cb90615819565b80156127185780601f106126ed57610100808354040283529160200191612718565b820191906000526020600020905b8154815290600101906020018083116126fb57829003601f168201915b50505050509050919050565b61272d8261426d565b60405160200161273d919061537a565b6040516020818303038152906040529050919050565b60006001600160a01b0382166127be5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e76565b506001600160a01b031660009081526003602052604090205490565b6127e2613da2565b6001600160a01b03166127f361292e565b6001600160a01b0316146128195760405162461bcd60e51b8152600401610e769061568c565b6128236000614386565b565b600081815260156020526040812054600160d81b900460ff16156128635750600090815260156020526040902054600160601b900463ffffffff1690565b610e3182604051806040016040528060048152602001631a19585960e21b81525061423b565b612891613da2565b6001600160a01b03166128a261292e565b6001600160a01b0316146128c85760405162461bcd60e51b8152600401610e769061568c565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6128f2613da2565b6001600160a01b031661290361292e565b6001600160a01b0316146129295760405162461bcd60e51b8152600401610e769061568c565b601255565b600d546001600160a01b031690565b606060018054610eb090615819565b612954613da2565b6001600160a01b031661296561292e565b6001600160a01b03161461298b5760405162461bcd60e51b8152600401610e769061568c565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260166020526040812054600160201b900460ff16156129e4575060009081526016602052604090205463ffffffff1690565b610e31826040518060400160405280600a815260200169383937b332b9b9b4b7b760b11b81525061423b565b612a18613da2565b6001600160a01b0316826001600160a01b03161415612a755760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610e76565b8060056000612a82613da2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612ac6613da2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612b02911515815260200190565b60405180910390a35050565b612b16613da2565b6001600160a01b0316612b2761292e565b6001600160a01b031614612b4d5760405162461bcd60e51b8152600401610e769061568c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260156020526040812054600160c81b900460ff1615612bad5750600090815260156020526040902054600160201b900463ffffffff1690565b610e318260405180604001604052806004815260200163626f647960e01b81525061423b565b601e546060906001600160a01b03168063b21bf7fa61147b85612caf565b601b546060906001600160a01b031680630178fe3f61147b856116ab565b612c20612c1a613da2565b83613f56565b612c3c5760405162461bcd60e51b8152600401610e76906156c1565b612c48848484846143d8565b50505050565b612c56613da2565b6001600160a01b0316612c6761292e565b6001600160a01b031614612c8d5760405162461bcd60e51b8152600401610e769061568c565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260156020526040812054600160e81b900460ff1615612ced5750600090815260156020526040902054600160a01b900463ffffffff1690565b610e3182604051806040016040528060088152602001673432b0b23bb2b0b960c11b81525061423b565b600081815260156020526040812054600160c01b900460ff1615612d4e575060009081526015602052604090205463ffffffff1690565b610e318260405180604001604052806002815260200161626760f01b81525061423b565b6000818152601560209081526040808320815161018081018352905463ffffffff8082168352600160201b8204811694830194909452600160401b8104841692820192909252600160601b820483166060820152600160801b820483166080820152600160a01b820490921660a083015260ff600160c01b82048116151560c08401819052600160c81b83048216151560e0850152600160d01b830482161515610100850152600160d81b830482161515610120850152600160e01b830482161515610140850152600160e81b90920416151561016083015280612e5757508060e001515b80612e6457508061010001515b80612e7157508061012001515b80612e7e57508061014001515b80612e8b57508061016001515b15612e995750600092915050565b50600192915050565b606060006040518060a00160405280607981526020016159a260799139905080612ecb84611a75565b604051602001612edc9291906150c2565b604051602081830303815290604052905080612ef7846130db565b604051602001612f089291906150c2565b604051602081830303815290604052905080612f2384612bf1565b604051602001612f349291906150c2565b604051602081830303815290604052905080612f4f84613a82565b604051602001612f609291906150c2565b604051602081830303815290604052905080612f7b84611519565b604051602001612f8c9291906150c2565b604051602081830303815290604052905080612fa78461145d565b604051602001612fb89291906150c2565b604051602081830303815290604052905080604051602001612fda9190615293565b60405160208183030381529060405290506000612ff684612660565b612fff8361440b565b613008866114fb565b61301187611af4565b60405160200161302494939291906153ad565b6040516020818303038152906040529050600061309182613044876115f7565b61304d886117ef565b613056896119e0565b61305f8a6130bd565b6130688b612bd3565b60405160200161307d969594939291906150f1565b60405160208183030381529060405261440b565b9050806040516020016130a49190615505565b6040516020818303038152906040529350505050919050565b601d546060906001600160a01b03168063b21bf7fa61147b85611828565b601a546060906001600160a01b031680630178fe3f61147b85612b6f565b6017602052600090815260409020805461311290615819565b80601f016020809104026020016040519081016040528092919081815260200182805461313e90615819565b801561318b5780601f106131605761010080835404028352916020019161318b565b820191906000526020600020905b81548152906001019060200180831161316e57829003601f168201915b505050505081565b600e5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906131cc90889060040161554a565b60206040518083038186803b1580156131e457600080fd5b505afa1580156131f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321c9190614ecd565b6001600160a01b03161415613235576001915050610e31565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61326f613da2565b6001600160a01b031661328061292e565b6001600160a01b0316146132a65760405162461bcd60e51b8152600401610e769061568c565b604051600090339047908381818185875af1925050503d80600081146132e8576040519150601f19603f3d011682016040523d82523d6000602084013e6132ed565b606091505b50509050806115f45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e76565b87873361333d836119fe565b6001600160a01b03161461335057600080fd5b3361335a826119fe565b6001600160a01b03161461336d57600080fd5b87806133765750865b8061337e5750855b806133865750845b8061338e5750835b806133965750825b61339f57600080fd5b87156134165760006133b08a612d17565b905060006133bd8c612d17565b60008d815260156020526040808220805463ffffffff1990811663ffffffff9788161782558f8452919092208054909116929094169190911783558054600160c01b60ff60c01b19918216811790925583541617909155505b86156135015760006134278a612b6f565b905060006134348c612b6f565b905081601560008e815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160046101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e815260200190815260200160002060000160196101000a81548160ff0219169083151502179055506001601560008d815260200190815260200160002060000160196101000a81548160ff02191690831515021790555050505b85156135ec5760006135128a6116ab565b9050600061351f8c6116ab565b905081601560008e815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160086101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601a6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601a6101000a81548160ff02191690831515021790555050505b84156136d75760006135fd8a612825565b9050600061360a8c612825565b905081601560008e8152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff16021790555080601560008d8152602001908152602001600020600001600c6101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601b6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601b6101000a81548160ff02191690831515021790555050505b83156137c25760006136e88a611828565b905060006136f58c611828565b905081601560008e815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160106101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601c6101000a81548160ff02191690831515021790555050505b82156138ad5760006137d38a612caf565b905060006137e08c612caf565b905081601560008e815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff16021790555080601560008d815260200190815260200160002060000160146101000a81548163ffffffff021916908363ffffffff1602179055506001601560008e8152602001908152602001600020600001601d6101000a81548160ff0219169083151502179055506001601560008d8152602001908152602001600020600001601d6101000a81548160ff02191690831515021790555050505b6040518a81526000805160206159428339815191529060200160405180910390a16040518981526000805160206159428339815191529060200160405180910390a150505050505050505050565b60145460ff1661390a57600080fd5b6012546139189060046157b7565b3410156139375760405162461bcd60e51b8152600401610e769061565d565b6127106013546005613949919061578b565b106139665760405162461bcd60e51b8152600401610e7690615712565b60115460135461397790600561578b565b11156139955760405162461bcd60e51b8152600401610e7690615635565b60005b60058110156115f4576139ad33601354613f38565b601380549060006139bd83615854565b919050555080806139cd90615854565b915050613998565b6139dd613da2565b6001600160a01b03166139ee61292e565b6001600160a01b031614613a145760405162461bcd60e51b8152600401610e769061568c565b6001600160a01b038116613a795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e76565b6115f481614386565b601c546060906001600160a01b031680630178fe3f61147b85612825565b613aa8613da2565b6001600160a01b0316613ab961292e565b6001600160a01b031614613adf5760405162461bcd60e51b8152600401610e769061568c565b806001600160a01b03811663a9059cbb613af761292e565b6040516370a0823160e01b81526001600160a01b038516906370a0823190613b2390309060040161554a565b60206040518083038186803b158015613b3b57600080fd5b505afa158015613b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b739190614f01565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015613bb957600080fd5b505af1158015613bcd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d99190614e34565b33613bfb836119fe565b6001600160a01b031614613c0e57600080fd5b6000815111613c1c57600080fd5b601881604051613c2c919061506f565b9081526040519081900360200190205460ff1615613c4957600080fd5b6000828152601760205260408082209051601891613c66916152df565b9081526040805160209281900383019020805460ff191693151593909317909255600084815260178252919091208251613ca292840190614b23565b506001601882604051613cb5919061506f565b90815260405160209181900382018120805460ff191693151593909317909255838252600080516020615942833981519152910160405180910390a15050565b600033301415613d4c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150613d4f9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b1480613d8357506001600160e01b03198216635b5e139f60e01b145b80610e3157506301ffc9a760e01b6001600160e01b0319831614610e31565b6000613dac613cf5565b905090565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e03826119fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616613ea25760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610e76565b6001613eb5613eb08761457e565b6145fb565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613f03573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006114f4828461578b565b613f5282826040518060200160405280600081525061462b565b5050565b6000613f6182613db1565b613fc25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e76565b6000613fcd836119fe565b9050806001600160a01b0316846001600160a01b031614806140085750836001600160a01b0316613ffd84610f33565b6001600160a01b0316145b8061325f575061325f8185613193565b826001600160a01b031661402b826119fe565b6001600160a01b0316146140935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e76565b6001600160a01b0382166140f55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e76565b61410083838361465e565b61410b600082613dce565b6001600160a01b03831660009081526003602052604081208054600192906141349084906157d6565b90915550506001600160a01b038216600090815260036020526040812080546001929061416290849061578b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127108111156142155760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610e76565b600f80546001600160a01b0319166001600160a01b039390931692909217909155601055565b60006114f482846040516020016142539291906152bd565b604051602081830303815290604052805160209091012090565b6060816142915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142bb57806142a581615854565b91506142b49050600a836157a3565b9150614295565b6000816001600160401b038111156142e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561430d576020820181803683370190505b5090505b841561325f576143226001836157d6565b915061432f600a8661586f565b61433a90603061578b565b60f81b81838151811061435d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061437f600a866157a3565b9450614311565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6143e3848484614018565b6143ef84848484614716565b612c485760405162461bcd60e51b8152600401610e76906155e3565b80516060908061442b575050604080516020810190915260008152919050565b6000600361443a83600261578b565b61444491906157a3565b61444f9060046157b7565b9050600061445e82602061578b565b6001600160401b0381111561448357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156144ad576020820181803683370190505b5090506000604051806060016040528060408152602001615962604091399050600181016020830160005b86811015614539576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016144d8565b506003860660018114614553576002811461456457614570565b613d3d60f01b600119830152614570565b603d60f81b6000198301525b505050918152949350505050565b60006040518060800160405280604381526020016158ff60439139805160209182012083518483015160408087015180519086012090516145de950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000614606600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016145de565b614635838361482a565b6146426000848484614716565b6110d95760405162461bcd60e51b8152600401610e76906155e3565b6001600160a01b0383166146b9576146b481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6146dc565b816001600160a01b0316836001600160a01b0316146146dc576146dc8382614969565b6001600160a01b0382166146f3576110d981614a06565b826001600160a01b0316826001600160a01b0316146110d9576110d98282614adf565b60006001600160a01b0384163b1561481f57836001600160a01b031663150b7a0261473f613da2565b8786866040518563ffffffff1660e01b81526004016147619493929190615593565b602060405180830381600087803b15801561477b57600080fd5b505af19250505080156147ab575060408051601f3d908101601f191682019092526147a891810190614e6c565b60015b614805573d8080156147d9576040519150601f19603f3d011682016040523d82523d6000602084013e6147de565b606091505b5080516147fd5760405162461bcd60e51b8152600401610e76906155e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061325f565b506001949350505050565b6001600160a01b0382166148805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e76565b61488981613db1565b156148d65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e76565b6148e26000838361465e565b6001600160a01b038216600090815260036020526040812080546001929061490b90849061578b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161497684612753565b61498091906157d6565b6000838152600760205260409020549091508082146149d3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614a18906001906157d6565b60008381526009602052604081205460088054939450909284908110614a4e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110614a7d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614ac357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614aea83612753565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614b2f90615819565b90600052602060002090601f016020900481019282614b515760008555614b97565b82601f10614b6a57805160ff1916838001178555614b97565b82800160010185558215614b97579182015b82811115614b97578251825591602001919060010190614b7c565b50614ba3929150614ba7565b5090565b5b80821115614ba35760008155600101614ba8565b6000614bcf614bca84615764565b615734565b9050828152838383011115614be357600080fd5b828260208301376000602084830101529392505050565b6000614c08614bca84615764565b9050828152838383011115614c1c57600080fd5b6114f48360208301846157ed565b600082601f830112614c3a578081fd5b6114f483833560208501614bbc565b600060208284031215614c5a578081fd5b81356114f4816158c5565b60008060408385031215614c77578081fd5b8235614c82816158c5565b91506020830135614c92816158c5565b809150509250929050565b600080600060608486031215614cb1578081fd5b8335614cbc816158c5565b92506020840135614ccc816158c5565b929592945050506040919091013590565b60008060008060808587031215614cf2578081fd5b8435614cfd816158c5565b93506020850135614d0d816158c5565b92506040850135915060608501356001600160401b03811115614d2e578182fd5b614d3a87828801614c2a565b91505092959194509250565b60008060408385031215614d58578182fd5b8235614d63816158c5565b91506020830135614c92816158da565b600080600080600060a08688031215614d8a578081fd5b8535614d95816158c5565b945060208601356001600160401b03811115614daf578182fd5b614dbb88828901614c2a565b9450506040860135925060608601359150608086013560ff81168114614ddf578182fd5b809150509295509295909350565b60008060408385031215614dff578182fd5b8235614e0a816158c5565b946020939093013593505050565b600060208284031215614e29578081fd5b81356114f4816158da565b600060208284031215614e45578081fd5b81516114f4816158da565b600060208284031215614e61578081fd5b81356114f4816158e8565b600060208284031215614e7d578081fd5b81516114f4816158e8565b600060208284031215614e99578081fd5b81516001600160401b03811115614eae578182fd5b8201601f81018413614ebe578182fd5b61325f84825160208401614bfa565b600060208284031215614ede578081fd5b81516114f4816158c5565b600060208284031215614efa578081fd5b5035919050565b600060208284031215614f12578081fd5b5051919050565b60008060408385031215614f2b578182fd5b8235915060208301356001600160401b03811115614f47578182fd5b8301601f81018513614f57578182fd5b614f6685823560208401614bbc565b9150509250929050565b60008060408385031215614f82578182fd5b50508035926020909101359150565b600080600080600080600080610100898b031215614fad578586fd5b88359750602089013596506040890135614fc6816158da565b95506060890135614fd6816158da565b94506080890135614fe6816158da565b935060a0890135614ff6816158da565b925060c0890135615006816158da565b915060e0890135615016816158da565b809150509295985092959890939650565b6000815180845261503f8160208601602086016157ed565b601f01601f19169290920160200192915050565b600081516150658185602086016157ed565b9290920192915050565b600082516150818184602087016157ed565b9190910192915050565b6000835161509d8184602088016157ed565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516150d48184602088016157ed565b8351908301906150e88183602088016157ed565b01949350505050565b60008751615103818460208c016157ed565b80830190507f7b2274726169745f74797065223a2022426f6479222c202276616c7565223a208152601160f91b8060208301528851615149816021850160208d016157ed565b630113e96160e51b6021939091019283018190527f7b2274726169745f74797065223a202241726d73222c202276616c7565223a20602584015260458301829052885161519d816046860160208d016157ed565b60469301928301527f7b2274726169745f74797065223a202248656164222c202276616c7565223a20604a830152606a8201526152866152766152706152396151f061523361520082606b89018e615053565b630113e96160e51b815260040190565b7f7b2274726169745f74797065223a202246616365222c202276616c7565223a208152601160f91b602082015260210190565b8a615053565b7f7b2274726169745f74797065223a20224865616477656172222c202276616c7581526432911d101160d91b602082015260250190565b86615053565b63227d5d7d60e01b815260040190565b9998505050505050505050565b600082516152a58184602087016157ed565b651e17b9bb339f60d11b920191825250600601919050565b600083516152cf8184602088016157ed565b9190910191825250602001919050565b600080835482600182811c9150808316806152fb57607f831692505b602080841082141561531b57634e487b7160e01b87526022600452602487fd5b81801561532f57600181146153405761536c565b60ff1986168952848901965061536c565b60008a815260209020885b868110156153645781548b82015290850190830161534b565b505084890196505b509498975050505050505050565b6a426c6f636b68656164202360a81b8152600082516153a081600b8501602087016157ed565b91909101600b0192915050565b693d913730b6b2911d101160b11b815284516000906153d381600a850160208a016157ed565b7f222c20226465736372697074696f6e223a2022426c6f636b6865616473222c20600a918401918201527f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173602a82015263194d8d0b60e21b604a820152855161544381604e840160208a016157ed565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a604e92909101918201527810112130b1b5b3b937bab732111610113b30b63ab2911d101160391b606e82015284516154a38160878401602089016157ed565b630113e96160e51b910160878101919091527f7b2274726169745f74797065223a202250726f66657373696f6e222c20227661608b82015266363ab2911d101160c91b60ab8201526154fa6151f060b28301615270565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161553d81601d8501602087016157ed565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0384811682528316602082015260606040820181905260009061558a90830184615027565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906155c690830184615027565b9695505050505050565b6020815260006114f46020830184615027565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d10985d18da0814dbdb190813dd5d60921b604082015260600190565b6020808252601590820152745361766520757020796f757220717561727465727360581b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561575c5761575c6158af565b604052919050565b60006001600160401b0382111561577d5761577d6158af565b50601f01601f191660200190565b6000821982111561579e5761579e615883565b500190565b6000826157b2576157b2615899565b500490565b60008160001904831182151516156157d1576157d1615883565b500290565b6000828210156157e8576157e8615883565b500390565b60005b838110156158085781810151838201526020016157f0565b83811115612c485750506000910152565b600181811c9082168061582d57607f821691505b6020821081141561584e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561586857615868615883565b5060010190565b60008261587e5761587e615899565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146115f457600080fd5b80151581146115f457600080fd5b6001600160e01b0319811681146115f457600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529ecbc4a025408a24aa253b65997ec1ee571cfa78059b0b0a70332af66151e568c4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766727207072657365727665417370656374526174696f3d27784d696e594d696e206d656574272076696577426f783d27302030203235203235272077696474683d2735303027206865696768743d27353030273ea26469706673582212207903bfdfafc7b780aae7ec9b1f307e9d35ba895a4e2dd13c1af54b89f910f46964736f6c63430008040033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000df20d6d4a0a93889dec0a311ef13dcdfdb40aa7000000000000000000000000a22b1896479dba6b408e5d2d1e3308be14f8ada3000000000000000000000000dba5943a3f519dbd8be0f19a6f3abbc39d6e32950000000000000000000000001b49c7632ca16718596d3a196b49e1c075ed88570000000000000000000000008fc90ccddeca450d763afd8a249c8fdb443c9f1c000000000000000000000000d3eb8dfe56ae43d8d18f429208fe9521e72886d6

-----Decoded View---------------
Arg [0] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _backgroundDataBlock (address): 0x0DF20d6d4A0A93889DeC0A311Ef13DcDFdb40Aa7
Arg [2] : _bodyDataBlock (address): 0xa22b1896479dBA6b408e5D2d1E3308be14f8aDA3
Arg [3] : _armsDataBlock (address): 0xdbA5943a3F519DbD8bE0f19A6F3abbc39d6E3295
Arg [4] : _headDataBlock (address): 0x1B49C7632Ca16718596D3A196B49e1c075eD8857
Arg [5] : _faceDataBlock (address): 0x8Fc90ccddEca450D763AFd8a249c8Fdb443c9f1c
Arg [6] : _headwearDataBlock (address): 0xD3eB8dFe56ae43D8D18F429208fe9521e72886d6

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000df20d6d4a0a93889dec0a311ef13dcdfdb40aa7
Arg [2] : 000000000000000000000000a22b1896479dba6b408e5d2d1e3308be14f8ada3
Arg [3] : 000000000000000000000000dba5943a3f519dbd8be0f19a6f3abbc39d6e3295
Arg [4] : 0000000000000000000000001b49c7632ca16718596d3a196b49e1c075ed8857
Arg [5] : 0000000000000000000000008fc90ccddeca450d763afd8a249c8fdb443c9f1c
Arg [6] : 000000000000000000000000d3eb8dfe56ae43d8d18f429208fe9521e72886d6


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.