ETH Price: $3,274.72 (-4.13%)
Gas: 6 Gwei

Token

OGCards (OGC)
 

Overview

Max Total Supply

330 OGC

Holders

270

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 OGC
0x8a01C36C1af154e0573bbe155fE3A053E3D3aE78
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OGCards

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : OGCards.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
pragma experimental ABIEncoderV2;

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

import "./interfaces/IOGCardDescriptor.sol";
import "./interfaces/IENSHelpers.sol";
import "./interfaces/ICryptoPunks.sol";

contract OGCards is ERC721Enumerable, Ownable {
    using Strings for uint256;
    using SafeMath for uint256;
    using SafeMath for uint8;

    address private immutable _ogCardDescriptor;
    address private immutable _ensHelpers;
    address private immutable _cryptoPunks; // 0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb
    address private immutable _animalColoringBook; // 0x69c40e500b84660cb2ab09cb9614fa2387f95f64
    address private immutable _purrnelopes; // 0x9759226b2f8ddeff81583e244ef3bd13aaa7e4a1

    bool public publicClaimOpened = false;

    uint256 public baseCardsLeft = 250;
    uint256 public punkCardsLeft = 100;
    uint256 public acbCardsLeft = 30;
    uint256 public purrCardsLeft = 50;
    uint256 public gaCardsLeft = 50;

    uint256 private _nonce = 1234;

    mapping(address => bool) public hasClaimedBase;
    mapping(uint256 => bool) public punkClaimed;
    mapping(uint256 => bool) public acbClaimed;
    mapping(uint256 => bool) public purrClaimed;

    struct Card {
        bool isGiveaway;
        uint8 borderType;
        uint8 transparencyLevel;
        uint8 maskType;
        uint256 dna;
        uint256 mintTokenId;
        address[] holders;
    }

    mapping(uint256 => Card) public cardInfo;

    mapping(uint256 => mapping(address => bool)) private _alreadyHoldToken;
    mapping(address => string) private _ogName;

    // Events
    event OGCardMinted(uint256 tokenId);
    event OGAdded(address indexed og, string name);
    event OGRenamed(address indexed og, string name);
    event OGRemoved(address indexed og);

    constructor(address _cryptoPunks_, address _animalColoringBook_, address _purrnelopes_, address _ensHelpers_, address _ogCardDescriptor_) ERC721("OGCards", "OGC") {
        _cryptoPunks = _cryptoPunks_;
        _animalColoringBook = _animalColoringBook_;
        _ensHelpers = _ensHelpers_;
        _ogCardDescriptor = _ogCardDescriptor_;
        _purrnelopes = _purrnelopes_;

        // Claim 10 base cards
        for (uint8 i=0; i<10; i++) {
            _claim(msg.sender, 0, 0);
        }
        // Claim 4 giveaway cards
        for (uint8 i=0; i<4; i++) {
            _claim_(msg.sender, i, 0, true);
        }
    }

    function cardDetails(uint256 tokenId) external view returns (Card memory) {
        require(_exists(tokenId), "OGCards: This token doesn't exist");
        return cardInfo[tokenId];
    }

    // save bytecode by removing implementation of unused method
    function baseURI() public pure returns (string memory) {}

    function switchClaimOpened() external onlyOwner {
        publicClaimOpened = !publicClaimOpened;
    }

    // Withdraw all funds in the contract
    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    modifier remainsSupply(uint256 cardsLeft) {
        require(cardsLeft > 0, "OGCards: no more cards of this type left");
        _;
    }

    modifier claimOpened() {
        require(publicClaimOpened, "OGCards: claim is not opened yet");
        _;
    }

    // Claim OGCards
    function claim() external claimOpened remainsSupply(baseCardsLeft) {
        require(!hasClaimedBase[msg.sender], "OGCards: you already claimed a base card");
        hasClaimedBase[msg.sender] = true;
        baseCardsLeft--;
        _claim(msg.sender, 0, 0);
    }

    function punkClaim(uint256 punkId) external claimOpened remainsSupply(punkCardsLeft) {
        require(msg.sender == ICryptoPunks(_cryptoPunks).punkIndexToAddress(punkId), "OGCards: you are not the owner of this punk");
        require(!punkClaimed[punkId], "OGCards: this punk already claimed his card");
        
        punkClaimed[punkId] = true;
        punkCardsLeft--;
        _claim(msg.sender, 1, punkId);
    }

    function acbClaim(uint256 acbId) external claimOpened remainsSupply(acbCardsLeft) {
        require(msg.sender == IERC721(_animalColoringBook).ownerOf(acbId), "OGCards: you are not the owner of this ACB");
        require(!acbClaimed[acbId], "OGCards: this ACB already claimed his card");

        acbClaimed[acbId] = true;
        acbCardsLeft--;
        _claim(msg.sender, 2, acbId);
    }

    function purrClaim(uint256 purrId) external claimOpened remainsSupply(purrCardsLeft) {
        require(msg.sender == IERC721(_purrnelopes).ownerOf(purrId), "OGCards: you are not the owner of this ACB");
        require(!purrClaimed[purrId], "OGCards: this Purrnelopes already claimed his card");

        purrClaimed[purrId] = true;
        purrCardsLeft--;
        _claim(msg.sender, 3, purrId);
    }

    function giveawayClaim(address to, uint8 maskType) external remainsSupply(gaCardsLeft) onlyOwner {
        gaCardsLeft--;
        _claim_(to, maskType, 0, true);
    }

    // List every tokens an owner owns
    function tokensOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    // OGs
    function addOG(address _og, string memory _name) public onlyOwner {
        require(bytes(_name).length > 0, "OGCards: You must define a name for this OG");
        require(_og != address(0), "OGCards: Invalid address");

        if (isOG(_og)) {
            _ogName[_og] = _name;
            emit OGAdded(_og, _name);
        } else {
            _ogName[_og] = _name;
            emit OGRenamed(_og, _name);
        }
    }

    function addOGs(address[] memory _ogs, string[] memory _names) external onlyOwner {
        require(_ogs.length == _names.length, "OGCards: Invalid array length");
        
        for (uint256 i=0; i<_ogs.length; i++) {
            addOG(_ogs[i], _names[i]);
        }
    }

    function removeOG(address _og) external onlyOwner {
        require(isOG(_og), "OGCards: This OG doesn't exist");
        
        delete _ogName[_og];
        emit OGRemoved(_og);
    }

    function isOG(address _og) public view returns (bool) {
        return bytes(_ogName[_og]).length > 0;
    }

    function ogName(address _og) public view returns (string memory) {
        return _ogName[_og];
    }

    function holderName(address _holder) public view returns (string memory) {
        string memory ensDomain = IENSHelpers(_ensHelpers).getEnsDomain(_holder);
        if (isOG(_holder)) {
            return ogName(_holder);
        } else if (bytes(ensDomain).length != 0) {
            return ensDomain;
        }
        return _toAsciiString(_holder);
    }

    function ogHolders(uint256 tokenId)
        public
        view
        returns (address[] memory, string[] memory)
    {
        require(_exists(tokenId), "OGCards: This token doesn't exist");
        Card memory card = cardInfo[tokenId];
        
        uint256 count = 0;
        address[] memory ogs = new address[](card.holders.length);
        string[] memory names = new string[](card.holders.length);
        for (uint256 i = 0; i < card.holders.length; i++) {
            address holder = card.holders[i];
            if (isOG(holder)) {
                ogs[count] = holder;
                string memory name = holderName(holder);
                names[count] = name;
                count++;
            }
        }

        address[] memory trimmedOGs = new address[](count);
        string[] memory trimmedNames = new string[](count);
        for (uint j = 0; j < count; j++) {
            trimmedOGs[j] = ogs[j];
            trimmedNames[j] = names[j];
        }
        return (trimmedOGs, trimmedNames);
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), "OGCards: This token doesn't exist");
        return IOGCardDescriptor(_ogCardDescriptor).tokenURI(address(this), tokenId);
    }

    // Before any transfer, add the new owner to the holders list of this token
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        // Save the holder only once per token
        if (!_alreadyHoldToken[tokenId][to]) {
            cardInfo[tokenId].holders.push(to);
            _alreadyHoldToken[tokenId][to] = true;
        }
    }

    function _claim(address _to, uint8 maskType, uint256 mintTokenId)
        internal
    {
        _claim_(_to, maskType, mintTokenId, false);
    }

    function _claim_(address _to, uint8 maskType, uint256 mintTokenId, bool isGiveaway)
        internal
    {
        uint256 mintIndex = totalSupply();

        uint256 dna = _random(mintIndex, 100000);

        uint256 randomBorder = _random(mintIndex, 101);
        uint8 borderType = (
         (isGiveaway ? 0 : 
            (randomBorder < 50 ? 1 : // 50%
                (randomBorder < 80 ? 2 : // 30%
                    (randomBorder < 94 ? 3 : // 14%
                        (randomBorder < 99 ? 4 : 5)))))); // 5% && 1%

        uint256 randomTransparency = _random(mintIndex, 6);
        uint8 transparencyLevel = uint8(100 - randomTransparency);

        cardInfo[mintIndex].isGiveaway = isGiveaway;
        cardInfo[mintIndex].borderType = borderType;
        cardInfo[mintIndex].transparencyLevel = transparencyLevel;
        cardInfo[mintIndex].maskType = maskType;
        cardInfo[mintIndex].dna = dna;
        cardInfo[mintIndex].mintTokenId = mintTokenId;

        _safeMint(_to, mintIndex);

        emit OGCardMinted(mintIndex);
    }

    function _toAsciiString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2*i] = _char(hi);
            s[2*i+1] = _char(lo);            
        }
        string memory stringAddress = string(abi.encodePacked('0x',s));
        return _getSlice(0, 8, stringAddress);
    }

    function _char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }

    function _getSlice(uint256 begin, uint256 end, string memory text) internal pure returns (string memory) {
        bytes memory a = new bytes(end-begin);
        for(uint i=0;i<=end-begin-1;i++){
            a[i] = bytes(text)[i+begin];
        }
        return string(a);
    }

    function _random(uint256 _salt, uint256 _limit) internal returns (uint) {
        uint256 r = (uint256(keccak256(abi.encodePacked(blockhash(block.number-1), block.timestamp, msg.sender, _nonce, _salt)))) % _limit;
        _nonce++;
        return r;
    }
}

File 2 of 18 : 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 3 of 18 : 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 4 of 18 : 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 5 of 18 : 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 6 of 18 : 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 7 of 18 : IOGCardDescriptor.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

import "../OGCards.sol";
import "./IOGCards.sol";

interface IOGCardDescriptor {
    function tokenURI(address ogCards, uint256 tokenId) external view returns (string memory);
}

File 8 of 18 : IENSHelpers.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

interface IENSHelpers {
    function getEnsDomain(address _address) external view returns (string memory);
}

File 9 of 18 : ICryptoPunks.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

interface ICryptoPunks {
    function punkIndexToAddress(uint256 tokenId) external view returns (address);
}

File 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : IOGCards.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

interface IOGCards {
    struct Card {
        bool isGiveaway;
        uint8 borderType;
        uint8 transparencyLevel;
        uint8 maskType;
        uint256 dna;
        uint256 mintTokenId;
        address[] holders;
    }

    function cardDetails(uint256 tokenId) external view returns (Card memory);

    function ownerOf(uint256 tokenId) external view returns (address);

    function isOG(address _og) external view returns (bool);

    function holderName(address _holder) external view returns (string memory);

    function ogHolders(uint256 tokenId)
        external
        view
        returns (address[] memory, string[] memory);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_cryptoPunks_","type":"address"},{"internalType":"address","name":"_animalColoringBook_","type":"address"},{"internalType":"address","name":"_purrnelopes_","type":"address"},{"internalType":"address","name":"_ensHelpers_","type":"address"},{"internalType":"address","name":"_ogCardDescriptor_","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":true,"internalType":"address","name":"og","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"OGAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"OGCardMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"og","type":"address"}],"name":"OGRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"og","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"OGRenamed","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":"acbCardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"acbId","type":"uint256"}],"name":"acbClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"acbClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_og","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"name":"addOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_ogs","type":"address[]"},{"internalType":"string[]","name":"_names","type":"string[]"}],"name":"addOGs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseCardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cardDetails","outputs":[{"components":[{"internalType":"bool","name":"isGiveaway","type":"bool"},{"internalType":"uint8","name":"borderType","type":"uint8"},{"internalType":"uint8","name":"transparencyLevel","type":"uint8"},{"internalType":"uint8","name":"maskType","type":"uint8"},{"internalType":"uint256","name":"dna","type":"uint256"},{"internalType":"uint256","name":"mintTokenId","type":"uint256"},{"internalType":"address[]","name":"holders","type":"address[]"}],"internalType":"struct OGCards.Card","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardInfo","outputs":[{"internalType":"bool","name":"isGiveaway","type":"bool"},{"internalType":"uint8","name":"borderType","type":"uint8"},{"internalType":"uint8","name":"transparencyLevel","type":"uint8"},{"internalType":"uint8","name":"maskType","type":"uint8"},{"internalType":"uint256","name":"dna","type":"uint256"},{"internalType":"uint256","name":"mintTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gaCardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"maskType","type":"uint8"}],"name":"giveawayClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimedBase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"holderName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_og","type":"address"}],"name":"isOG","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":"tokenId","type":"uint256"}],"name":"ogHolders","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_og","type":"address"}],"name":"ogName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicClaimOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkCardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"punkId","type":"uint256"}],"name":"punkClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"punkClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purrCardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"purrId","type":"uint256"}],"name":"purrClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"purrClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_og","type":"address"}],"name":"removeOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchClaimOpened","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610120604052600a805460ff60a01b1916905560fa600b556064600c55601e600d556032600e819055600f556104d26010553480156200003e57600080fd5b506040516200513738038062005137833981016040819052620000619162000ac1565b60408051808201825260078152664f47436172647360c81b6020808301918252835180850190945260038452624f474360e81b908401528151919291620000ab9160009162000a01565b508051620000c190600190602084019062000a01565b505050620000de620000d86200018660201b60201c565b6200018a565b6001600160601b0319606086811b821660c05285811b821660e05283811b821660a05282811b821660805284901b166101005260005b600a8160ff16101562000144576200012f33600080620001dc565b806200013b8162000e98565b91505062000114565b5060005b60048160ff1610156200017a5762000165338260006001620001f0565b80620001718162000e98565b91505062000148565b50505050505062000f4c565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001eb8383836000620001f0565b505050565b6000620001fc60085490565b905060006200020f82620186a06200034f565b90506000620002208360656200034f565b90506000846200027657603282106200026e57605082106200026657605e82106200025e57606382106200025657600562000279565b600462000279565b600362000279565b600262000279565b600162000279565b60005b905060006200028a8560066200034f565b905060006200029b82606462000dea565b6000878152601560205260409020805461ffff191689151561ff0019161761010060ff878116919091029190911763ffff00001916620100008483160263ff0000001916176301000000918d16919091021781556001810187905560020189905590506200030a8a87620003c5565b7f933dd6520950154fa0245459d072d2501dcd9333a4335280df706e8aae7a41bb866040516200033b919062000dbf565b60405180910390a150505050505050505050565b600080826200036060014362000dea565b404233601054886040516020016200037d95949392919062000cc8565b6040516020818303038152906040528051906020012060001c620003a2919062000ec8565b601080549192506000620003b68362000e7a565b90915550909150505b92915050565b620003e7828260405180602001604052806000815250620003eb60201b60201c565b5050565b620003f783836200042e565b62000406600084848462000526565b620001eb5760405162461bcd60e51b8152600401620004259062000d77565b60405180910390fd5b6001600160a01b038216620004575760405162461bcd60e51b8152600401620004259062000dad565b6000818152600260205260409020546001600160a01b0316156200048f5760405162461bcd60e51b8152600401620004259062000d89565b6200049d6000838362000656565b6001600160a01b0382166000908152600360205260408120805460019290620004c890849062000dcf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000547846001600160a01b0316620006fc60201b62001cd81760201c565b156200064a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200058190339089908890889060040162000d2b565b602060405180830381600087803b1580156200059c57600080fd5b505af1925050508015620005cf575060408051601f3d908101601f19168201909252620005cc9181019062000b41565b60015b6200062f573d80801562000600576040519150601f19603f3d011682016040523d82523d6000602084013e62000605565b606091505b508051620006275760405162461bcd60e51b8152600401620004259062000d77565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506200064e565b5060015b949350505050565b6200066e8383836200070260201b62001cde1760201c565b60008181526016602090815260408083206001600160a01b038616845290915290205460ff16620001eb5760008181526015602090815260408083206003018054600180820183559185528385200180546001600160a01b0319166001600160a01b039790971696871790559383526016825280832094835293905291909120805460ff1916909117905550565b3b151590565b6200071a838383620001eb60201b6200087a1760201c565b6001600160a01b03831662000778576200077281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6200079e565b816001600160a01b0316836001600160a01b0316146200079e576200079e8382620007de565b6001600160a01b038216620007b857620001eb816200088b565b826001600160a01b0316826001600160a01b031614620001eb57620001eb828262000969565b60006001620007f884620009ba60201b62000e3a1760201c565b62000804919062000dea565b60008381526007602052604090205490915080821462000858576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906200089f9060019062000dea565b60008381526009602052604081205460088054939450909284908110620008d657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106200090657634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806200094d57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006200098183620009ba60201b62000e3a1760201c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b038216620009e55760405162461bcd60e51b8152600401620004259062000d9b565b506001600160a01b031660009081526003602052604090205490565b82805462000a0f9062000e49565b90600052602060002090601f01602090048101928262000a33576000855562000a7e565b82601f1062000a4e57805160ff191683800117855562000a7e565b8280016001018555821562000a7e579182015b8281111562000a7e57825182559160200191906001019062000a61565b5062000a8c92915062000a90565b5090565b5b8082111562000a8c576000815560010162000a91565b8051620003bf8162000f21565b8051620003bf8162000f3b565b600080600080600060a0868803121562000ada57600080fd5b600062000ae8888862000aa7565b955050602062000afb8882890162000aa7565b945050604062000b0e8882890162000aa7565b935050606062000b218882890162000aa7565b925050608062000b348882890162000aa7565b9150509295509295909350565b60006020828403121562000b5457600080fd5b60006200064e848462000ab4565b62000b6d8162000e04565b82525050565b62000b6d62000b828262000e04565b62000eb4565b8062000b6d565b600062000b9a825190565b80845260208401935062000bb381856020860162000e16565b601f01601f19169290920192915050565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291505b5060400190565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b6020820152915062000c0f565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600062000c46565b600062000cd6828862000b88565b60208201915062000ce8828762000b88565b60208201915062000cfa828662000b73565b60148201915062000d0c828562000b88565b60208201915062000d1e828462000b88565b5060200195945050505050565b6080810162000d3b828762000b62565b62000d4a602083018662000b62565b62000d59604083018562000b88565b818103606083015262000d6d818462000b8f565b9695505050505050565b60208082528101620003bf8162000bc4565b60208082528101620003bf8162000c16565b60208082528101620003bf8162000c4d565b60208082528101620003bf8162000c95565b60208101620003bf828462000b88565b6000821982111562000de55762000de562000edf565b500190565b60008282101562000dff5762000dff62000edf565b500390565b60006001600160a01b038216620003bf565b60005b8381101562000e3357818101518382015260200162000e19565b8381111562000e43576000848401525b50505050565b60028104600182168062000e5e57607f821691505b6020821081141562000e745762000e7462000f0b565b50919050565b600060001982141562000e915762000e9162000edf565b5060010190565b600060ff8216915060ff82141562000e915762000e9162000edf565b6000620003bf826000620003bf8260601b90565b60008262000eda5762000eda62000ef5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b62000f2c8162000e04565b811462000f3857600080fd5b50565b6001600160e01b0319811662000f2c565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c61419762000fa060003960006109ba015260006117ad01526000610ff1015260006119c80152600061193701526141976000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c80638da5cb5b11610167578063c6150e76116100ce578063ec27869411610087578063ec278694146105d2578063ef7c8959146105db578063f1e3d389146105fb578063f2fde38b1461060e578063f77843dd14610621578063fa88c3be1461068257600080fd5b8063c6150e7614610527578063c83271f51461053a578063c87b56dd1461054d578063d884254714610560578063dbe1be0214610573578063e985e9c51461059657600080fd5b80639f71b961116101205780639f71b961146104b0578063a22cb465146104c3578063a6cc094e146104d6578063b1f22c4a146104ea578063b469229d146104f3578063b88d4fde1461051457600080fd5b80638da5cb5b146104455780638db8368a14610456578063942b76c61461046957806395d89b411461047c5780639971fb7b146104845780639b31520c1461048d57600080fd5b806342842e0e1161020b5780636c0360eb116101c45780636c0360eb146103f157806370a08231146103f8578063715018a61461040b5780637947e522146104135780637fb332191461041c5780638462151c1461042557600080fd5b806342842e0e1461037a5780634e71d92d1461038d5780634e7913bd146103955780634f6ccce7146103b85780635104d687146103cb5780636352211e146103de57600080fd5b80630e89ba3b1161025d5780630e89ba3b1461031557806318160ddd1461032857806323b872dd146103395780632831b3871461034c5780632f745c591461035f5780633ccfd60b1461037257600080fd5b806301ffc9a71461029a5780630632bda6146102c357806306fdde03146102cd578063081812fc146102e2578063095ea7b314610302575b600080fd5b6102ad6102a8366004612f31565b6106a5565b6040516102ba9190613b14565b60405180910390f35b6102cb6106d0565b005b6102d5610724565b6040516102ba9190613b7c565b6102f56102f0366004612fa1565b6107b6565b6040516102ba9190613a71565b6102cb610310366004612e74565b6107f9565b6102cb610323366004612cc2565b61087f565b6008545b6040516102ba9190613d7e565b6102cb610347366004612d38565b610926565b6102cb61035a366004612fa1565b610957565b61032c61036d366004612e74565b610ada565b6102cb610b2c565b6102cb610388366004612d38565b610b85565b6102cb610ba0565b6102ad6103a3366004612fa1565b60136020526000908152604090205460ff1681565b61032c6103c6366004612fa1565b610c58565b6102cb6103d9366004612e2d565b610cb4565b6102f56103ec366004612fa1565b610e05565b60606102d5565b61032c610406366004612cc2565b610e3a565b6102cb610e7e565b61032c600d5481565b61032c600b5481565b610438610433366004612cc2565b610eb4565b6040516102ba9190613b03565b600a546001600160a01b03166102f5565b6102cb610464366004612fa1565b610f8e565b6102cb610477366004612ea4565b61110d565b6102d561117d565b61032c600c5481565b6102ad61049b366004612cc2565b60116020526000908152604090205460ff1681565b6102cb6104be366004612ed4565b61118c565b6102cb6104d1366004612dfd565b61124d565b600a546102ad90600160a01b900460ff1681565b61032c600e5481565b610506610501366004612fa1565b6112e5565b6040516102ba929190613ade565b6102cb610522366004612d85565b611712565b6102cb610535366004612fa1565b61174a565b6102ad610548366004612cc2565b6118c9565b6102d561055b366004612fa1565b6118f9565b6102d561056e366004612cc2565b6119c2565b6102ad610581366004612fa1565b60146020526000908152604090205460ff1681565b6102ad6105a4366004612cfe565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61032c600f5481565b6105ee6105e9366004612fa1565b611a9c565b6040516102ba9190613d6d565b6102d5610609366004612cc2565b611bd3565b6102cb61061c366004612cc2565b611c7f565b61067061062f366004612fa1565b60156020526000908152604090208054600182015460029092015460ff80831693610100840482169362010000810483169363010000009091049092169186565b6040516102ba96959493929190613b22565b6102ad610690366004612fa1565b60126020526000908152604090205460ff1681565b60006001600160e01b0319821663780e9d6360e01b14806106ca57506106ca82611d96565b92915050565b600a546001600160a01b031633146107035760405162461bcd60e51b81526004016106fa90613ccd565b60405180910390fd5b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600080546107339061403a565b80601f016020809104026020016040519081016040528092919081815260200182805461075f9061403a565b80156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b5050505050905090565b60006107c182611de6565b6107dd5760405162461bcd60e51b81526004016106fa90613c8d565b506000908152600460205260409020546001600160a01b031690565b600061080482610e05565b9050806001600160a01b0316836001600160a01b031614156108385760405162461bcd60e51b81526004016106fa90613cfd565b336001600160a01b0382161480610854575061085481336105a4565b6108705760405162461bcd60e51b81526004016106fa90613c2d565b61087a8383611e03565b505050565b600a546001600160a01b031633146108a95760405162461bcd60e51b81526004016106fa90613ccd565b6108b2816118c9565b6108ce5760405162461bcd60e51b81526004016106fa90613d4d565b6001600160a01b03811660009081526017602052604081206108ef916129e2565b6040516001600160a01b038216907fbf86b3e06dd8d311e088ea459f272c1b5f9faee90e347d0c5fd2672efeaf6eda90600090a250565b6109303382611e71565b61094c5760405162461bcd60e51b81526004016106fa90613d1d565b61087a838383611f16565b600a54600160a01b900460ff166109805760405162461bcd60e51b81526004016106fa90613c9d565b600e54600081116109a35760405162461bcd60e51b81526004016106fa90613bcd565b6040516331a9108f60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e906109ef908590600401613d7e565b60206040518083038186803b158015610a0757600080fd5b505afa158015610a1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3f9190612ce0565b6001600160a01b0316336001600160a01b031614610a6f5760405162461bcd60e51b81526004016106fa90613d2d565b60008281526014602052604090205460ff1615610a9e5760405162461bcd60e51b81526004016106fa90613b8d565b6000828152601460205260408120805460ff19166001179055600e805491610ac583614023565b9190505550610ad633600384612043565b5050565b6000610ae583610e3a565b8210610b035760405162461bcd60e51b81526004016106fa90613b9d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b565760405162461bcd60e51b81526004016106fa90613ccd565b6040514790339082156108fc029083906000818181858888f19350505050158015610ad6573d6000803e3d6000fd5b61087a83838360405180602001604052806000815250611712565b600a54600160a01b900460ff16610bc95760405162461bcd60e51b81526004016106fa90613c9d565b600b5460008111610bec5760405162461bcd60e51b81526004016106fa90613bcd565b3360009081526011602052604090205460ff1615610c1c5760405162461bcd60e51b81526004016106fa90613ced565b336000908152601160205260408120805460ff19166001179055600b805491610c4483614023565b9190505550610c5533600080612043565b50565b6000610c6360085490565b8210610c815760405162461bcd60e51b81526004016106fa90613d3d565b60088281548110610ca257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cde5760405162461bcd60e51b81526004016106fa90613ccd565b6000815111610cff5760405162461bcd60e51b81526004016106fa90613c5d565b6001600160a01b038216610d255760405162461bcd60e51b81526004016106fa90613cbd565b610d2e826118c9565b15610da2576001600160a01b03821660009081526017602090815260409091208251610d5c92840190612a1c565b50816001600160a01b03167f1d5b252e4d1b26902bbe85d298ff05648ef61448f7c89a24344fcec6b5aa408882604051610d969190613b7c565b60405180910390a25050565b6001600160a01b03821660009081526017602090815260409091208251610dcb92840190612a1c565b50816001600160a01b03167fba6303cf9de77ad9444eb31a61731ae7d5f64bf0fb409469f5206a7228f3c08382604051610d969190613b7c565b6000818152600260205260408120546001600160a01b0316806106ca5760405162461bcd60e51b81526004016106fa90613c4d565b60006001600160a01b038216610e625760405162461bcd60e51b81526004016106fa90613c3d565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610ea85760405162461bcd60e51b81526004016106fa90613ccd565b610eb26000612050565b565b60606000610ec183610e3a565b905080610ee25760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115610f0a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f33578160200160208202803683370190505b50905060005b82811015610eda57610f4b8582610ada565b828281518110610f6b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f808161408d565b915050610f39565b50919050565b600a54600160a01b900460ff16610fb75760405162461bcd60e51b81526004016106fa90613c9d565b600c5460008111610fda5760405162461bcd60e51b81526004016106fa90613bcd565b604051630b02f02d60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635817816890611026908590600401613d7e565b60206040518083038186803b15801561103e57600080fd5b505afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190612ce0565b6001600160a01b0316336001600160a01b0316146110a65760405162461bcd60e51b81526004016106fa90613d5d565b60008281526012602052604090205460ff16156110d55760405162461bcd60e51b81526004016106fa90613c6d565b6000828152601260205260408120805460ff19166001179055600c8054916110fc83614023565b9190505550610ad633600184612043565b600f54600081116111305760405162461bcd60e51b81526004016106fa90613bcd565b600a546001600160a01b0316331461115a5760405162461bcd60e51b81526004016106fa90613ccd565b600f805490600061116a83614023565b919050555061087a8383600060016120a2565b6060600180546107339061403a565b600a546001600160a01b031633146111b65760405162461bcd60e51b81526004016106fa90613ccd565b80518251146111d75760405162461bcd60e51b81526004016106fa90613d0d565b60005b825181101561087a5761123b83828151811061120657634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061122e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610cb4565b806112458161408d565b9150506111da565b6001600160a01b0382163314156112765760405162461bcd60e51b81526004016106fa90613c0d565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906112d9908590613b14565b60405180910390a35050565b6060806112f183611de6565b61130d5760405162461bcd60e51b81526004016106fa90613cad565b6000838152601560209081526040808320815160e081018352815460ff808216151583526101008204811683870152620100008204811683860152630100000090910416606082015260018201546080820152600282015460a08201526003820180548451818702810187019095528085529194929360c08601939092908301828280156113c457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113a6575b50505050508152505090506000808260c00151516001600160401b038111156113fd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611426578160200160208202803683370190505b50905060008360c00151516001600160401b0381111561145657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561148957816020015b60608152602001906001900390816114745790505b50905060005b8460c00151518110156115775760008560c0015182815181106114c257634e487b7160e01b600052603260045260246000fd5b602002602001015190506114d5816118c9565b1561156457808486815181106114fb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506000611526826119c2565b90508084878151811061154957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250858061155f9061408d565b965050505b508061156f8161408d565b91505061148f565b506000836001600160401b038111156115a057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115c9578160200160208202803683370190505b5090506000846001600160401b038111156115f457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561162757816020015b60608152602001906001900390816116125790505b50905060005b858110156117035784818151811061165557634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061167d57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508381815181106116bd57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106116e557634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806116fb9061408d565b91505061162d565b50909890975095505050505050565b61171c3383611e71565b6117385760405162461bcd60e51b81526004016106fa90613d1d565b611744848484846121ea565b50505050565b600a54600160a01b900460ff166117735760405162461bcd60e51b81526004016106fa90613c9d565b600d54600081116117965760405162461bcd60e51b81526004016106fa90613bcd565b6040516331a9108f60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e906117e2908590600401613d7e565b60206040518083038186803b1580156117fa57600080fd5b505afa15801561180e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118329190612ce0565b6001600160a01b0316336001600160a01b0316146118625760405162461bcd60e51b81526004016106fa90613d2d565b60008281526013602052604090205460ff16156118915760405162461bcd60e51b81526004016106fa90613bed565b6000828152601360205260408120805460ff19166001179055600d8054916118b883614023565b9190505550610ad633600284612043565b6001600160a01b038116600090815260176020526040812080548291906118ef9061403a565b9050119050919050565b606061190482611de6565b6119205760405162461bcd60e51b81526004016106fa90613cad565b60405163e9dc637560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e9dc63759061196e9030908690600401613ac3565b60006040518083038186803b15801561198657600080fd5b505afa15801561199a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106ca9190810190612f6d565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c3e16841846040518263ffffffff1660e01b8152600401611a129190613a71565b60006040518083038186803b158015611a2a57600080fd5b505afa158015611a3e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a669190810190612f6d565b9050611a71836118c9565b15611a8657611a7f83611bd3565b9392505050565b805115611a935792915050565b611a7f8361221d565b611ae76040518060e00160405280600015158152602001600060ff168152602001600060ff168152602001600060ff1681526020016000815260200160008152602001606081525090565b611af082611de6565b611b0c5760405162461bcd60e51b81526004016106fa90613cad565b600082815260156020908152604091829020825160e081018452815460ff808216151583526101008204811683860152620100008204811683870152630100000090910416606082015260018201546080820152600282015460a08201526003820180548551818602810186019096528086529194929360c08601939290830182828015611bc357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ba5575b5050505050815250509050919050565b6001600160a01b0381166000908152601760205260409020805460609190611bfa9061403a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c269061403a565b8015611c735780601f10611c4857610100808354040283529160200191611c73565b820191906000526020600020905b815481529060010190602001808311611c5657829003601f168201915b50505050509050919050565b600a546001600160a01b03163314611ca95760405162461bcd60e51b81526004016106fa90613ccd565b6001600160a01b038116611ccf5760405162461bcd60e51b81526004016106fa90613bbd565b610c5581612050565b3b151590565b6001600160a01b038316611d3957611d3481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611d5c565b816001600160a01b0316836001600160a01b031614611d5c57611d5c83826123ab565b6001600160a01b038216611d735761087a81612448565b826001600160a01b0316826001600160a01b03161461087a5761087a8282612521565b60006001600160e01b031982166380ac58cd60e01b1480611dc757506001600160e01b03198216635b5e139f60e01b145b806106ca57506301ffc9a760e01b6001600160e01b03198316146106ca565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3882610e05565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e7c82611de6565b611e985760405162461bcd60e51b81526004016106fa90613c1d565b6000611ea383610e05565b9050806001600160a01b0316846001600160a01b03161480611ede5750836001600160a01b0316611ed3846107b6565b6001600160a01b0316145b80611f0e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f2982610e05565b6001600160a01b031614611f4f5760405162461bcd60e51b81526004016106fa90613cdd565b6001600160a01b038216611f755760405162461bcd60e51b81526004016106fa90613bfd565b611f80838383612565565b611f8b600082611e03565b6001600160a01b0383166000908152600360205260408120805460019290611fb4908490613fae565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fe2908490613df0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61087a83838360006120a2565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006120ad60085490565b905060006120be82620186a06125fd565b905060006120cd8360656125fd565b90506000846121195760328210612112576050821061210b57605e821061210457606382106120fd57600561211c565b600461211c565b600361211c565b600261211c565b600161211c565b60005b9050600061212b8560066125fd565b9050600061213a826064613fae565b6000878152601560205260409020805461ffff191689151561ff0019161761010060ff878116919091029190911763ffff00001916620100008483160263ff0000001916176301000000918d16919091021781556001810187905560020189905590506121a78a87612669565b7f933dd6520950154fa0245459d072d2501dcd9333a4335280df706e8aae7a41bb866040516121d69190613d7e565b60405180910390a150505050505050505050565b6121f5848484611f16565b61220184848484612683565b6117445760405162461bcd60e51b81526004016106fa90613bad565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561237957600061225a826013613fae565b612265906008613f6a565b612270906002613e9a565b612283906001600160a01b038716613e29565b60f81b9050600060108260f81c61229a9190613e41565b60f81b905060008160f81c60106122b19190613f89565b8360f81c6122bf9190613fc9565b60f81b90506122cd82612790565b856122d9866002613f6a565b815181106122f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061231781612790565b85612323866002613f6a565b61232e906001613df0565b8151811061234c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806123719061408d565b915050612244565b5060008160405160200161238d9190613a5a565b6040516020818303038152906040529050611f0e60006008836127cb565b600060016123b884610e3a565b6123c29190613fae565b600083815260076020526040902054909150808214612415576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061245a90600190613fae565b6000838152600960205260408120546008805493945090928490811061249057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106124bf57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061250557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061252c83610e3a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612570838383611cde565b60008181526016602090815260408083206001600160a01b038616845290915290205460ff1661087a5760008181526015602090815260408083206003018054600180820183559185528385200180546001600160a01b0319166001600160a01b039790971696871790559383526016825280832094835293905291909120805460ff1916909117905550565b6000808261260c600143613fae565b40423360105488604051602001612627959493929190613a01565b6040516020818303038152906040528051906020012060001c61264a91906140ba565b60108054919250600061265c8361408d565b9091555090949350505050565b610ad68282604051806020016040528060008152506128d0565b60006001600160a01b0384163b1561278557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126c7903390899088908890600401613a7f565b602060405180830381600087803b1580156126e157600080fd5b505af1925050508015612711575060408051601f3d908101601f1916820190925261270e91810190612f4f565b60015b61276b573d80801561273f576040519150601f19603f3d011682016040523d82523d6000602084013e612744565b606091505b5080516127635760405162461bcd60e51b81526004016106fa90613bad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f0e565b506001949350505050565b6000600a60f883901c10156127b7576127ae60f883901c6030613e08565b60f81b92915050565b6127ae60f883901c6057613e08565b919050565b606060006127d98585613fae565b6001600160401b038111156127fe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612828576020820181803683370190505b50905060005b600161283a8787613fae565b6128449190613fae565b81116128c757836128558783613df0565b8151811061287357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061289e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806128bf8161408d565b91505061282e565b50949350505050565b6128da8383612903565b6128e76000848484612683565b61087a5760405162461bcd60e51b81526004016106fa90613bad565b6001600160a01b0382166129295760405162461bcd60e51b81526004016106fa90613c7d565b61293281611de6565b1561294f5760405162461bcd60e51b81526004016106fa90613bdd565b61295b60008383612565565b6001600160a01b0382166000908152600360205260408120805460019290612984908490613df0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5080546129ee9061403a565b6000825580601f106129fe575050565b601f016020900490600052602060002090810190610c559190612aa0565b828054612a289061403a565b90600052602060002090601f016020900481019282612a4a5760008555612a90565b82601f10612a6357805160ff1916838001178555612a90565b82800160010185558215612a90579182015b82811115612a90578251825591602001919060010190612a75565b50612a9c929150612aa0565b5090565b5b80821115612a9c5760008155600101612aa1565b6000612ac8612ac384613da3565b613d8c565b90508083825260208201905082856020860282011115612ae757600080fd5b60005b85811015612b135781612afd8882612bf1565b8452506020928301929190910190600101612aea565b5050509392505050565b6000612b2b612ac384613da3565b90508083825260208201905082856020860282011115612b4a57600080fd5b60005b85811015612b135781356001600160401b03811115612b6b57600080fd5b808601612b788982612c6a565b855250506020928301929190910190600101612b4d565b6000612b9d612ac384613dc6565b905082815260208101848484011115612bb557600080fd5b610eda848285613feb565b6000612bce612ac384613dc6565b905082815260208101848484011115612be657600080fd5b610eda848285613ff7565b80356106ca81614126565b80516106ca81614126565b600082601f830112612c1857600080fd5b8135611f0e848260208601612ab5565b600082601f830112612c3957600080fd5b8135611f0e848260208601612b1d565b80356106ca8161413a565b80356106ca81614142565b80516106ca81614142565b600082601f830112612c7b57600080fd5b8135611f0e848260208601612b8f565b600082601f830112612c9c57600080fd5b8151611f0e848260208601612bc0565b80356106ca81614152565b80356106ca81614158565b600060208284031215612cd457600080fd5b6000611f0e8484612bf1565b600060208284031215612cf257600080fd5b6000611f0e8484612bfc565b60008060408385031215612d1157600080fd5b6000612d1d8585612bf1565b9250506020612d2e85828601612bf1565b9150509250929050565b600080600060608486031215612d4d57600080fd5b6000612d598686612bf1565b9350506020612d6a86828701612bf1565b9250506040612d7b86828701612cac565b9150509250925092565b60008060008060808587031215612d9b57600080fd5b6000612da78787612bf1565b9450506020612db887828801612bf1565b9350506040612dc987828801612cac565b92505060608501356001600160401b03811115612de557600080fd5b612df187828801612c6a565b91505092959194509250565b60008060408385031215612e1057600080fd5b6000612e1c8585612bf1565b9250506020612d2e85828601612c49565b60008060408385031215612e4057600080fd5b6000612e4c8585612bf1565b92505060208301356001600160401b03811115612e6857600080fd5b612d2e85828601612c6a565b60008060408385031215612e8757600080fd5b6000612e938585612bf1565b9250506020612d2e85828601612cac565b60008060408385031215612eb757600080fd5b6000612ec38585612bf1565b9250506020612d2e85828601612cb7565b60008060408385031215612ee757600080fd5b82356001600160401b03811115612efd57600080fd5b612f0985828601612c07565b92505060208301356001600160401b03811115612f2557600080fd5b612d2e85828601612c28565b600060208284031215612f4357600080fd5b6000611f0e8484612c54565b600060208284031215612f6157600080fd5b6000611f0e8484612c5f565b600060208284031215612f7f57600080fd5b81516001600160401b03811115612f9557600080fd5b611f0e84828501612c8b565b600060208284031215612fb357600080fd5b6000611f0e8484612cac565b6000612fcb8383612feb565b505060200190565b6000611a7f8383613144565b6000612fcb838361313e565b612ff481613fda565b82525050565b612ff461300682613fda565b6140a8565b6000613015825190565b80845260209384019383018060005b838110156130495781516130388882612fbf565b975060208301925050600101613024565b509495945050505050565b600061305e825190565b80845260209384019383018060005b838110156130495781516130818882612fbf565b97506020830192505060010161306d565b600061309c825190565b808452602084019350836020820285016130b68560200190565b8060005b858110156130eb57848403895281516130d38582612fd3565b94506020830160209a909a01999250506001016130ba565b5091979650505050505050565b6000613102825190565b80845260209384019383018060005b838110156130495781516131258882612fdf565b975060208301925050600101613111565b801515612ff4565b80612ff4565b600061314e825190565b808452602084019350613165818560208601613ff7565b601f01601f19169290920192915050565b6000613180825190565b61318e818560208601613ff7565b9290920192915050565b603281526000602082017f4f4743617264733a207468697320507572726e656c6f70657320616c726561648152711e4818db185a5b5959081a1a5cc818d85c9960721b602082015291505b5060400190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015291506131e3565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506131e3565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506131e3565b602881526000602082017f4f4743617264733a206e6f206d6f7265206361726473206f66207468697320748152671e5c19481b19599d60c21b602082015291506131e3565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b602a81526000602082017f4f4743617264733a20746869732041434220616c726561647920636c61696d6581526919081a1a5cc818d85c9960b21b602082015291506131e3565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506131e3565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613339565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506131e3565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506131e3565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015291506131e3565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015291506131e3565b602b81526000602082017f4f4743617264733a20596f75206d75737420646566696e652061206e616d652081526a666f722074686973204f4760a81b602082015291506131e3565b602b81526000602082017f4f4743617264733a20746869732070756e6b20616c726561647920636c61696d81526a1959081a1a5cc818d85c9960aa1b602082015291506131e3565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613339565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506131e3565b60208082527f4f4743617264733a20636c61696d206973206e6f74206f70656e65642079657491019081526000613339565b602181526000602082017f4f4743617264733a205468697320746f6b656e20646f65736e277420657869738152601d60fa1b602082015291506131e3565b601881526000602082017f4f4743617264733a20496e76616c69642061646472657373000000000000000081529150613339565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613339565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015291506131e3565b602881526000602082017f4f4743617264733a20796f7520616c726561647920636c61696d656420612062815267185cd94818d85c9960c21b602082015291506131e3565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506131e3565b601d81526000602082017f4f4743617264733a20496e76616c6964206172726179206c656e67746800000081529150613339565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015291506131e3565b602a81526000602082017f4f4743617264733a20796f7520617265206e6f7420746865206f776e6572206f81526933103a3434b99020a1a160b11b602082015291506131e3565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015291506131e3565b601e81526000602082017f4f4743617264733a2054686973204f4720646f65736e2774206578697374000081529150613339565b602b81526000602082017f4f4743617264733a20796f7520617265206e6f7420746865206f776e6572206f81526a6620746869732070756e6b60a81b602082015291506131e3565b805160009060e08401906139788582613136565b50602083015161398b60208601826139f8565b50604083015161399e60408601826139f8565b5060608301516139b160608601826139f8565b5060808301516139c4608086018261313e565b5060a08301516139d760a086018261313e565b5060c083015184820360c08601526139ef828261300b565b95945050505050565b60ff8116612ff4565b6000613a0d828861313e565b602082019150613a1d828761313e565b602082019150613a2d8286612ffa565b601482019150613a3d828561313e565b602082019150613a4d828461313e565b5060200195945050505050565b61060f60f31b81526002016000611a7f8284613176565b602081016106ca8284612feb565b60808101613a8d8287612feb565b613a9a6020830186612feb565b613aa7604083018561313e565b8181036060830152613ab98184613144565b9695505050505050565b60408101613ad18285612feb565b611a7f602083018461313e565b60408082528101613aef8185613054565b90508181036020830152611f0e8184613092565b60208082528101611a7f81846130f8565b602081016106ca8284613136565b60c08101613b308289613136565b613b3d60208301886139f8565b613b4a60408301876139f8565b613b5760608301866139f8565b613b64608083018561313e565b613b7160a083018461313e565b979650505050505050565b60208082528101611a7f8184613144565b602080825281016106ca81613198565b602080825281016106ca816131ea565b602080825281016106ca81613232565b602080825281016106ca81613281565b602080825281016106ca816132c4565b602080825281016106ca81613309565b602080825281016106ca81613340565b602080825281016106ca81613387565b602080825281016106ca816133c8565b602080825281016106ca816133fc565b602080825281016106ca81613445565b602080825281016106ca8161349f565b602080825281016106ca816134e6565b602080825281016106ca8161352c565b602080825281016106ca81613574565b602080825281016106ca816135bc565b602080825281016106ca816135ee565b602080825281016106ca81613637565b602080825281016106ca81613669565b602080825281016106ca816136a7565b602080825281016106ca816136db565b602080825281016106ca8161370d565b602080825281016106ca81613753565b602080825281016106ca81613798565b602080825281016106ca816137d6565b602080825281016106ca8161380a565b602080825281016106ca81613858565b602080825281016106ca8161389f565b602080825281016106ca816138e8565b602080825281016106ca8161391c565b60208082528101611a7f8184613964565b602081016106ca828461313e565b6000613d9760405190565b90506127c68282614061565b60006001600160401b03821115613dbc57613dbc614110565b5060209081020190565b60006001600160401b03821115613ddf57613ddf614110565b601f19601f83011660200192915050565b60008219821115613e0357613e036140ce565b500190565b600060ff8216915060ff831692508260ff03821115613e0357613e036140ce565b6000825b925082613e3c57613e3c6140e4565b500490565b600060ff8216915060ff8316613e2d565b80825b6001851115613e9157808604811115613e7057613e706140ce565b6001851615613e7e57908102905b8002613e8a8560011c90565b9450613e55565b94509492505050565b6000611a7f6000198484600082613eb357506001611a7f565b81613ec057506000611a7f565b8160018114613ed65760028114613ee057613f0d565b6001915050611a7f565b60ff841115613ef157613ef16140ce565b8360020a915084821115613f0757613f076140ce565b50611a7f565b5060208310610133831016604e8410600b8410161715613f40575081810a83811115613f3b57613f3b6140ce565b611a7f565b613f4d8484846001613e52565b92509050818404811115613f6357613f636140ce565b0292915050565b6000816000190483118215151615613f8457613f846140ce565b500290565b600060ff8216915060ff831692508160ff0483118215151615613f8457613f846140ce565b6000825b925082821015613fc457613fc46140ce565b500390565b600060ff8216915060ff8316613fb2565b60006001600160a01b0382166106ca565b82818337506000910152565b60005b83811015614012578181015183820152602001613ffa565b838111156117445750506000910152565b600081614032576140326140ce565b506000190190565b60028104600182168061404e57607f821691505b60208210811415610f8857610f886140fa565b601f19601f83011681018181106001600160401b038211171561408657614086614110565b6040525050565b60006000198214156140a1576140a16140ce565b5060010190565b60006106ca8260006106ca8260601b90565b6000826140c9576140c96140e4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61412f81613fda565b8114610c5557600080fd5b80151561412f565b6001600160e01b0319811661412f565b8061412f565b60ff811661412f56fea2646970667358221220c896a43333befedcc3a3466195cd590f5810f1a219a4d1a261751298d161d54e64736f6c63430008040033000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb00000000000000000000000069c40e500b84660cb2ab09cb9614fa2387f95f640000000000000000000000009759226b2f8ddeff81583e244ef3bd13aaa7e4a10000000000000000000000003b85baf0e2157183c68d7143cddacb4eed75e0a1000000000000000000000000009b8727b61db4d9ee59b102df53e5e30e8b14e5

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c80638da5cb5b11610167578063c6150e76116100ce578063ec27869411610087578063ec278694146105d2578063ef7c8959146105db578063f1e3d389146105fb578063f2fde38b1461060e578063f77843dd14610621578063fa88c3be1461068257600080fd5b8063c6150e7614610527578063c83271f51461053a578063c87b56dd1461054d578063d884254714610560578063dbe1be0214610573578063e985e9c51461059657600080fd5b80639f71b961116101205780639f71b961146104b0578063a22cb465146104c3578063a6cc094e146104d6578063b1f22c4a146104ea578063b469229d146104f3578063b88d4fde1461051457600080fd5b80638da5cb5b146104455780638db8368a14610456578063942b76c61461046957806395d89b411461047c5780639971fb7b146104845780639b31520c1461048d57600080fd5b806342842e0e1161020b5780636c0360eb116101c45780636c0360eb146103f157806370a08231146103f8578063715018a61461040b5780637947e522146104135780637fb332191461041c5780638462151c1461042557600080fd5b806342842e0e1461037a5780634e71d92d1461038d5780634e7913bd146103955780634f6ccce7146103b85780635104d687146103cb5780636352211e146103de57600080fd5b80630e89ba3b1161025d5780630e89ba3b1461031557806318160ddd1461032857806323b872dd146103395780632831b3871461034c5780632f745c591461035f5780633ccfd60b1461037257600080fd5b806301ffc9a71461029a5780630632bda6146102c357806306fdde03146102cd578063081812fc146102e2578063095ea7b314610302575b600080fd5b6102ad6102a8366004612f31565b6106a5565b6040516102ba9190613b14565b60405180910390f35b6102cb6106d0565b005b6102d5610724565b6040516102ba9190613b7c565b6102f56102f0366004612fa1565b6107b6565b6040516102ba9190613a71565b6102cb610310366004612e74565b6107f9565b6102cb610323366004612cc2565b61087f565b6008545b6040516102ba9190613d7e565b6102cb610347366004612d38565b610926565b6102cb61035a366004612fa1565b610957565b61032c61036d366004612e74565b610ada565b6102cb610b2c565b6102cb610388366004612d38565b610b85565b6102cb610ba0565b6102ad6103a3366004612fa1565b60136020526000908152604090205460ff1681565b61032c6103c6366004612fa1565b610c58565b6102cb6103d9366004612e2d565b610cb4565b6102f56103ec366004612fa1565b610e05565b60606102d5565b61032c610406366004612cc2565b610e3a565b6102cb610e7e565b61032c600d5481565b61032c600b5481565b610438610433366004612cc2565b610eb4565b6040516102ba9190613b03565b600a546001600160a01b03166102f5565b6102cb610464366004612fa1565b610f8e565b6102cb610477366004612ea4565b61110d565b6102d561117d565b61032c600c5481565b6102ad61049b366004612cc2565b60116020526000908152604090205460ff1681565b6102cb6104be366004612ed4565b61118c565b6102cb6104d1366004612dfd565b61124d565b600a546102ad90600160a01b900460ff1681565b61032c600e5481565b610506610501366004612fa1565b6112e5565b6040516102ba929190613ade565b6102cb610522366004612d85565b611712565b6102cb610535366004612fa1565b61174a565b6102ad610548366004612cc2565b6118c9565b6102d561055b366004612fa1565b6118f9565b6102d561056e366004612cc2565b6119c2565b6102ad610581366004612fa1565b60146020526000908152604090205460ff1681565b6102ad6105a4366004612cfe565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61032c600f5481565b6105ee6105e9366004612fa1565b611a9c565b6040516102ba9190613d6d565b6102d5610609366004612cc2565b611bd3565b6102cb61061c366004612cc2565b611c7f565b61067061062f366004612fa1565b60156020526000908152604090208054600182015460029092015460ff80831693610100840482169362010000810483169363010000009091049092169186565b6040516102ba96959493929190613b22565b6102ad610690366004612fa1565b60126020526000908152604090205460ff1681565b60006001600160e01b0319821663780e9d6360e01b14806106ca57506106ca82611d96565b92915050565b600a546001600160a01b031633146107035760405162461bcd60e51b81526004016106fa90613ccd565b60405180910390fd5b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600080546107339061403a565b80601f016020809104026020016040519081016040528092919081815260200182805461075f9061403a565b80156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b5050505050905090565b60006107c182611de6565b6107dd5760405162461bcd60e51b81526004016106fa90613c8d565b506000908152600460205260409020546001600160a01b031690565b600061080482610e05565b9050806001600160a01b0316836001600160a01b031614156108385760405162461bcd60e51b81526004016106fa90613cfd565b336001600160a01b0382161480610854575061085481336105a4565b6108705760405162461bcd60e51b81526004016106fa90613c2d565b61087a8383611e03565b505050565b600a546001600160a01b031633146108a95760405162461bcd60e51b81526004016106fa90613ccd565b6108b2816118c9565b6108ce5760405162461bcd60e51b81526004016106fa90613d4d565b6001600160a01b03811660009081526017602052604081206108ef916129e2565b6040516001600160a01b038216907fbf86b3e06dd8d311e088ea459f272c1b5f9faee90e347d0c5fd2672efeaf6eda90600090a250565b6109303382611e71565b61094c5760405162461bcd60e51b81526004016106fa90613d1d565b61087a838383611f16565b600a54600160a01b900460ff166109805760405162461bcd60e51b81526004016106fa90613c9d565b600e54600081116109a35760405162461bcd60e51b81526004016106fa90613bcd565b6040516331a9108f60e11b81526001600160a01b037f0000000000000000000000009759226b2f8ddeff81583e244ef3bd13aaa7e4a11690636352211e906109ef908590600401613d7e565b60206040518083038186803b158015610a0757600080fd5b505afa158015610a1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3f9190612ce0565b6001600160a01b0316336001600160a01b031614610a6f5760405162461bcd60e51b81526004016106fa90613d2d565b60008281526014602052604090205460ff1615610a9e5760405162461bcd60e51b81526004016106fa90613b8d565b6000828152601460205260408120805460ff19166001179055600e805491610ac583614023565b9190505550610ad633600384612043565b5050565b6000610ae583610e3a565b8210610b035760405162461bcd60e51b81526004016106fa90613b9d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b565760405162461bcd60e51b81526004016106fa90613ccd565b6040514790339082156108fc029083906000818181858888f19350505050158015610ad6573d6000803e3d6000fd5b61087a83838360405180602001604052806000815250611712565b600a54600160a01b900460ff16610bc95760405162461bcd60e51b81526004016106fa90613c9d565b600b5460008111610bec5760405162461bcd60e51b81526004016106fa90613bcd565b3360009081526011602052604090205460ff1615610c1c5760405162461bcd60e51b81526004016106fa90613ced565b336000908152601160205260408120805460ff19166001179055600b805491610c4483614023565b9190505550610c5533600080612043565b50565b6000610c6360085490565b8210610c815760405162461bcd60e51b81526004016106fa90613d3d565b60088281548110610ca257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cde5760405162461bcd60e51b81526004016106fa90613ccd565b6000815111610cff5760405162461bcd60e51b81526004016106fa90613c5d565b6001600160a01b038216610d255760405162461bcd60e51b81526004016106fa90613cbd565b610d2e826118c9565b15610da2576001600160a01b03821660009081526017602090815260409091208251610d5c92840190612a1c565b50816001600160a01b03167f1d5b252e4d1b26902bbe85d298ff05648ef61448f7c89a24344fcec6b5aa408882604051610d969190613b7c565b60405180910390a25050565b6001600160a01b03821660009081526017602090815260409091208251610dcb92840190612a1c565b50816001600160a01b03167fba6303cf9de77ad9444eb31a61731ae7d5f64bf0fb409469f5206a7228f3c08382604051610d969190613b7c565b6000818152600260205260408120546001600160a01b0316806106ca5760405162461bcd60e51b81526004016106fa90613c4d565b60006001600160a01b038216610e625760405162461bcd60e51b81526004016106fa90613c3d565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610ea85760405162461bcd60e51b81526004016106fa90613ccd565b610eb26000612050565b565b60606000610ec183610e3a565b905080610ee25760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115610f0a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f33578160200160208202803683370190505b50905060005b82811015610eda57610f4b8582610ada565b828281518110610f6b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f808161408d565b915050610f39565b50919050565b600a54600160a01b900460ff16610fb75760405162461bcd60e51b81526004016106fa90613c9d565b600c5460008111610fda5760405162461bcd60e51b81526004016106fa90613bcd565b604051630b02f02d60e31b81526001600160a01b037f000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb1690635817816890611026908590600401613d7e565b60206040518083038186803b15801561103e57600080fd5b505afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190612ce0565b6001600160a01b0316336001600160a01b0316146110a65760405162461bcd60e51b81526004016106fa90613d5d565b60008281526012602052604090205460ff16156110d55760405162461bcd60e51b81526004016106fa90613c6d565b6000828152601260205260408120805460ff19166001179055600c8054916110fc83614023565b9190505550610ad633600184612043565b600f54600081116111305760405162461bcd60e51b81526004016106fa90613bcd565b600a546001600160a01b0316331461115a5760405162461bcd60e51b81526004016106fa90613ccd565b600f805490600061116a83614023565b919050555061087a8383600060016120a2565b6060600180546107339061403a565b600a546001600160a01b031633146111b65760405162461bcd60e51b81526004016106fa90613ccd565b80518251146111d75760405162461bcd60e51b81526004016106fa90613d0d565b60005b825181101561087a5761123b83828151811061120657634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061122e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610cb4565b806112458161408d565b9150506111da565b6001600160a01b0382163314156112765760405162461bcd60e51b81526004016106fa90613c0d565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906112d9908590613b14565b60405180910390a35050565b6060806112f183611de6565b61130d5760405162461bcd60e51b81526004016106fa90613cad565b6000838152601560209081526040808320815160e081018352815460ff808216151583526101008204811683870152620100008204811683860152630100000090910416606082015260018201546080820152600282015460a08201526003820180548451818702810187019095528085529194929360c08601939092908301828280156113c457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113a6575b50505050508152505090506000808260c00151516001600160401b038111156113fd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611426578160200160208202803683370190505b50905060008360c00151516001600160401b0381111561145657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561148957816020015b60608152602001906001900390816114745790505b50905060005b8460c00151518110156115775760008560c0015182815181106114c257634e487b7160e01b600052603260045260246000fd5b602002602001015190506114d5816118c9565b1561156457808486815181106114fb57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506000611526826119c2565b90508084878151811061154957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250858061155f9061408d565b965050505b508061156f8161408d565b91505061148f565b506000836001600160401b038111156115a057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115c9578160200160208202803683370190505b5090506000846001600160401b038111156115f457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561162757816020015b60608152602001906001900390816116125790505b50905060005b858110156117035784818151811061165557634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061167d57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508381815181106116bd57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106116e557634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806116fb9061408d565b91505061162d565b50909890975095505050505050565b61171c3383611e71565b6117385760405162461bcd60e51b81526004016106fa90613d1d565b611744848484846121ea565b50505050565b600a54600160a01b900460ff166117735760405162461bcd60e51b81526004016106fa90613c9d565b600d54600081116117965760405162461bcd60e51b81526004016106fa90613bcd565b6040516331a9108f60e11b81526001600160a01b037f00000000000000000000000069c40e500b84660cb2ab09cb9614fa2387f95f641690636352211e906117e2908590600401613d7e565b60206040518083038186803b1580156117fa57600080fd5b505afa15801561180e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118329190612ce0565b6001600160a01b0316336001600160a01b0316146118625760405162461bcd60e51b81526004016106fa90613d2d565b60008281526013602052604090205460ff16156118915760405162461bcd60e51b81526004016106fa90613bed565b6000828152601360205260408120805460ff19166001179055600d8054916118b883614023565b9190505550610ad633600284612043565b6001600160a01b038116600090815260176020526040812080548291906118ef9061403a565b9050119050919050565b606061190482611de6565b6119205760405162461bcd60e51b81526004016106fa90613cad565b60405163e9dc637560e01b81526001600160a01b037f000000000000000000000000009b8727b61db4d9ee59b102df53e5e30e8b14e5169063e9dc63759061196e9030908690600401613ac3565b60006040518083038186803b15801561198657600080fd5b505afa15801561199a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106ca9190810190612f6d565b606060007f0000000000000000000000003b85baf0e2157183c68d7143cddacb4eed75e0a16001600160a01b031663c3e16841846040518263ffffffff1660e01b8152600401611a129190613a71565b60006040518083038186803b158015611a2a57600080fd5b505afa158015611a3e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a669190810190612f6d565b9050611a71836118c9565b15611a8657611a7f83611bd3565b9392505050565b805115611a935792915050565b611a7f8361221d565b611ae76040518060e00160405280600015158152602001600060ff168152602001600060ff168152602001600060ff1681526020016000815260200160008152602001606081525090565b611af082611de6565b611b0c5760405162461bcd60e51b81526004016106fa90613cad565b600082815260156020908152604091829020825160e081018452815460ff808216151583526101008204811683860152620100008204811683870152630100000090910416606082015260018201546080820152600282015460a08201526003820180548551818602810186019096528086529194929360c08601939290830182828015611bc357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ba5575b5050505050815250509050919050565b6001600160a01b0381166000908152601760205260409020805460609190611bfa9061403a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c269061403a565b8015611c735780601f10611c4857610100808354040283529160200191611c73565b820191906000526020600020905b815481529060010190602001808311611c5657829003601f168201915b50505050509050919050565b600a546001600160a01b03163314611ca95760405162461bcd60e51b81526004016106fa90613ccd565b6001600160a01b038116611ccf5760405162461bcd60e51b81526004016106fa90613bbd565b610c5581612050565b3b151590565b6001600160a01b038316611d3957611d3481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611d5c565b816001600160a01b0316836001600160a01b031614611d5c57611d5c83826123ab565b6001600160a01b038216611d735761087a81612448565b826001600160a01b0316826001600160a01b03161461087a5761087a8282612521565b60006001600160e01b031982166380ac58cd60e01b1480611dc757506001600160e01b03198216635b5e139f60e01b145b806106ca57506301ffc9a760e01b6001600160e01b03198316146106ca565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3882610e05565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e7c82611de6565b611e985760405162461bcd60e51b81526004016106fa90613c1d565b6000611ea383610e05565b9050806001600160a01b0316846001600160a01b03161480611ede5750836001600160a01b0316611ed3846107b6565b6001600160a01b0316145b80611f0e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f2982610e05565b6001600160a01b031614611f4f5760405162461bcd60e51b81526004016106fa90613cdd565b6001600160a01b038216611f755760405162461bcd60e51b81526004016106fa90613bfd565b611f80838383612565565b611f8b600082611e03565b6001600160a01b0383166000908152600360205260408120805460019290611fb4908490613fae565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fe2908490613df0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61087a83838360006120a2565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006120ad60085490565b905060006120be82620186a06125fd565b905060006120cd8360656125fd565b90506000846121195760328210612112576050821061210b57605e821061210457606382106120fd57600561211c565b600461211c565b600361211c565b600261211c565b600161211c565b60005b9050600061212b8560066125fd565b9050600061213a826064613fae565b6000878152601560205260409020805461ffff191689151561ff0019161761010060ff878116919091029190911763ffff00001916620100008483160263ff0000001916176301000000918d16919091021781556001810187905560020189905590506121a78a87612669565b7f933dd6520950154fa0245459d072d2501dcd9333a4335280df706e8aae7a41bb866040516121d69190613d7e565b60405180910390a150505050505050505050565b6121f5848484611f16565b61220184848484612683565b6117445760405162461bcd60e51b81526004016106fa90613bad565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561237957600061225a826013613fae565b612265906008613f6a565b612270906002613e9a565b612283906001600160a01b038716613e29565b60f81b9050600060108260f81c61229a9190613e41565b60f81b905060008160f81c60106122b19190613f89565b8360f81c6122bf9190613fc9565b60f81b90506122cd82612790565b856122d9866002613f6a565b815181106122f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061231781612790565b85612323866002613f6a565b61232e906001613df0565b8151811061234c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806123719061408d565b915050612244565b5060008160405160200161238d9190613a5a565b6040516020818303038152906040529050611f0e60006008836127cb565b600060016123b884610e3a565b6123c29190613fae565b600083815260076020526040902054909150808214612415576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061245a90600190613fae565b6000838152600960205260408120546008805493945090928490811061249057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106124bf57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061250557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061252c83610e3a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612570838383611cde565b60008181526016602090815260408083206001600160a01b038616845290915290205460ff1661087a5760008181526015602090815260408083206003018054600180820183559185528385200180546001600160a01b0319166001600160a01b039790971696871790559383526016825280832094835293905291909120805460ff1916909117905550565b6000808261260c600143613fae565b40423360105488604051602001612627959493929190613a01565b6040516020818303038152906040528051906020012060001c61264a91906140ba565b60108054919250600061265c8361408d565b9091555090949350505050565b610ad68282604051806020016040528060008152506128d0565b60006001600160a01b0384163b1561278557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126c7903390899088908890600401613a7f565b602060405180830381600087803b1580156126e157600080fd5b505af1925050508015612711575060408051601f3d908101601f1916820190925261270e91810190612f4f565b60015b61276b573d80801561273f576040519150601f19603f3d011682016040523d82523d6000602084013e612744565b606091505b5080516127635760405162461bcd60e51b81526004016106fa90613bad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f0e565b506001949350505050565b6000600a60f883901c10156127b7576127ae60f883901c6030613e08565b60f81b92915050565b6127ae60f883901c6057613e08565b919050565b606060006127d98585613fae565b6001600160401b038111156127fe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612828576020820181803683370190505b50905060005b600161283a8787613fae565b6128449190613fae565b81116128c757836128558783613df0565b8151811061287357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061289e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806128bf8161408d565b91505061282e565b50949350505050565b6128da8383612903565b6128e76000848484612683565b61087a5760405162461bcd60e51b81526004016106fa90613bad565b6001600160a01b0382166129295760405162461bcd60e51b81526004016106fa90613c7d565b61293281611de6565b1561294f5760405162461bcd60e51b81526004016106fa90613bdd565b61295b60008383612565565b6001600160a01b0382166000908152600360205260408120805460019290612984908490613df0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5080546129ee9061403a565b6000825580601f106129fe575050565b601f016020900490600052602060002090810190610c559190612aa0565b828054612a289061403a565b90600052602060002090601f016020900481019282612a4a5760008555612a90565b82601f10612a6357805160ff1916838001178555612a90565b82800160010185558215612a90579182015b82811115612a90578251825591602001919060010190612a75565b50612a9c929150612aa0565b5090565b5b80821115612a9c5760008155600101612aa1565b6000612ac8612ac384613da3565b613d8c565b90508083825260208201905082856020860282011115612ae757600080fd5b60005b85811015612b135781612afd8882612bf1565b8452506020928301929190910190600101612aea565b5050509392505050565b6000612b2b612ac384613da3565b90508083825260208201905082856020860282011115612b4a57600080fd5b60005b85811015612b135781356001600160401b03811115612b6b57600080fd5b808601612b788982612c6a565b855250506020928301929190910190600101612b4d565b6000612b9d612ac384613dc6565b905082815260208101848484011115612bb557600080fd5b610eda848285613feb565b6000612bce612ac384613dc6565b905082815260208101848484011115612be657600080fd5b610eda848285613ff7565b80356106ca81614126565b80516106ca81614126565b600082601f830112612c1857600080fd5b8135611f0e848260208601612ab5565b600082601f830112612c3957600080fd5b8135611f0e848260208601612b1d565b80356106ca8161413a565b80356106ca81614142565b80516106ca81614142565b600082601f830112612c7b57600080fd5b8135611f0e848260208601612b8f565b600082601f830112612c9c57600080fd5b8151611f0e848260208601612bc0565b80356106ca81614152565b80356106ca81614158565b600060208284031215612cd457600080fd5b6000611f0e8484612bf1565b600060208284031215612cf257600080fd5b6000611f0e8484612bfc565b60008060408385031215612d1157600080fd5b6000612d1d8585612bf1565b9250506020612d2e85828601612bf1565b9150509250929050565b600080600060608486031215612d4d57600080fd5b6000612d598686612bf1565b9350506020612d6a86828701612bf1565b9250506040612d7b86828701612cac565b9150509250925092565b60008060008060808587031215612d9b57600080fd5b6000612da78787612bf1565b9450506020612db887828801612bf1565b9350506040612dc987828801612cac565b92505060608501356001600160401b03811115612de557600080fd5b612df187828801612c6a565b91505092959194509250565b60008060408385031215612e1057600080fd5b6000612e1c8585612bf1565b9250506020612d2e85828601612c49565b60008060408385031215612e4057600080fd5b6000612e4c8585612bf1565b92505060208301356001600160401b03811115612e6857600080fd5b612d2e85828601612c6a565b60008060408385031215612e8757600080fd5b6000612e938585612bf1565b9250506020612d2e85828601612cac565b60008060408385031215612eb757600080fd5b6000612ec38585612bf1565b9250506020612d2e85828601612cb7565b60008060408385031215612ee757600080fd5b82356001600160401b03811115612efd57600080fd5b612f0985828601612c07565b92505060208301356001600160401b03811115612f2557600080fd5b612d2e85828601612c28565b600060208284031215612f4357600080fd5b6000611f0e8484612c54565b600060208284031215612f6157600080fd5b6000611f0e8484612c5f565b600060208284031215612f7f57600080fd5b81516001600160401b03811115612f9557600080fd5b611f0e84828501612c8b565b600060208284031215612fb357600080fd5b6000611f0e8484612cac565b6000612fcb8383612feb565b505060200190565b6000611a7f8383613144565b6000612fcb838361313e565b612ff481613fda565b82525050565b612ff461300682613fda565b6140a8565b6000613015825190565b80845260209384019383018060005b838110156130495781516130388882612fbf565b975060208301925050600101613024565b509495945050505050565b600061305e825190565b80845260209384019383018060005b838110156130495781516130818882612fbf565b97506020830192505060010161306d565b600061309c825190565b808452602084019350836020820285016130b68560200190565b8060005b858110156130eb57848403895281516130d38582612fd3565b94506020830160209a909a01999250506001016130ba565b5091979650505050505050565b6000613102825190565b80845260209384019383018060005b838110156130495781516131258882612fdf565b975060208301925050600101613111565b801515612ff4565b80612ff4565b600061314e825190565b808452602084019350613165818560208601613ff7565b601f01601f19169290920192915050565b6000613180825190565b61318e818560208601613ff7565b9290920192915050565b603281526000602082017f4f4743617264733a207468697320507572726e656c6f70657320616c726561648152711e4818db185a5b5959081a1a5cc818d85c9960721b602082015291505b5060400190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015291506131e3565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506131e3565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506131e3565b602881526000602082017f4f4743617264733a206e6f206d6f7265206361726473206f66207468697320748152671e5c19481b19599d60c21b602082015291506131e3565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b602a81526000602082017f4f4743617264733a20746869732041434220616c726561647920636c61696d6581526919081a1a5cc818d85c9960b21b602082015291506131e3565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506131e3565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613339565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506131e3565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506131e3565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015291506131e3565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015291506131e3565b602b81526000602082017f4f4743617264733a20596f75206d75737420646566696e652061206e616d652081526a666f722074686973204f4760a81b602082015291506131e3565b602b81526000602082017f4f4743617264733a20746869732070756e6b20616c726561647920636c61696d81526a1959081a1a5cc818d85c9960aa1b602082015291506131e3565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613339565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506131e3565b60208082527f4f4743617264733a20636c61696d206973206e6f74206f70656e65642079657491019081526000613339565b602181526000602082017f4f4743617264733a205468697320746f6b656e20646f65736e277420657869738152601d60fa1b602082015291506131e3565b601881526000602082017f4f4743617264733a20496e76616c69642061646472657373000000000000000081529150613339565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613339565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015291506131e3565b602881526000602082017f4f4743617264733a20796f7520616c726561647920636c61696d656420612062815267185cd94818d85c9960c21b602082015291506131e3565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506131e3565b601d81526000602082017f4f4743617264733a20496e76616c6964206172726179206c656e67746800000081529150613339565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015291506131e3565b602a81526000602082017f4f4743617264733a20796f7520617265206e6f7420746865206f776e6572206f81526933103a3434b99020a1a160b11b602082015291506131e3565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015291506131e3565b601e81526000602082017f4f4743617264733a2054686973204f4720646f65736e2774206578697374000081529150613339565b602b81526000602082017f4f4743617264733a20796f7520617265206e6f7420746865206f776e6572206f81526a6620746869732070756e6b60a81b602082015291506131e3565b805160009060e08401906139788582613136565b50602083015161398b60208601826139f8565b50604083015161399e60408601826139f8565b5060608301516139b160608601826139f8565b5060808301516139c4608086018261313e565b5060a08301516139d760a086018261313e565b5060c083015184820360c08601526139ef828261300b565b95945050505050565b60ff8116612ff4565b6000613a0d828861313e565b602082019150613a1d828761313e565b602082019150613a2d8286612ffa565b601482019150613a3d828561313e565b602082019150613a4d828461313e565b5060200195945050505050565b61060f60f31b81526002016000611a7f8284613176565b602081016106ca8284612feb565b60808101613a8d8287612feb565b613a9a6020830186612feb565b613aa7604083018561313e565b8181036060830152613ab98184613144565b9695505050505050565b60408101613ad18285612feb565b611a7f602083018461313e565b60408082528101613aef8185613054565b90508181036020830152611f0e8184613092565b60208082528101611a7f81846130f8565b602081016106ca8284613136565b60c08101613b308289613136565b613b3d60208301886139f8565b613b4a60408301876139f8565b613b5760608301866139f8565b613b64608083018561313e565b613b7160a083018461313e565b979650505050505050565b60208082528101611a7f8184613144565b602080825281016106ca81613198565b602080825281016106ca816131ea565b602080825281016106ca81613232565b602080825281016106ca81613281565b602080825281016106ca816132c4565b602080825281016106ca81613309565b602080825281016106ca81613340565b602080825281016106ca81613387565b602080825281016106ca816133c8565b602080825281016106ca816133fc565b602080825281016106ca81613445565b602080825281016106ca8161349f565b602080825281016106ca816134e6565b602080825281016106ca8161352c565b602080825281016106ca81613574565b602080825281016106ca816135bc565b602080825281016106ca816135ee565b602080825281016106ca81613637565b602080825281016106ca81613669565b602080825281016106ca816136a7565b602080825281016106ca816136db565b602080825281016106ca8161370d565b602080825281016106ca81613753565b602080825281016106ca81613798565b602080825281016106ca816137d6565b602080825281016106ca8161380a565b602080825281016106ca81613858565b602080825281016106ca8161389f565b602080825281016106ca816138e8565b602080825281016106ca8161391c565b60208082528101611a7f8184613964565b602081016106ca828461313e565b6000613d9760405190565b90506127c68282614061565b60006001600160401b03821115613dbc57613dbc614110565b5060209081020190565b60006001600160401b03821115613ddf57613ddf614110565b601f19601f83011660200192915050565b60008219821115613e0357613e036140ce565b500190565b600060ff8216915060ff831692508260ff03821115613e0357613e036140ce565b6000825b925082613e3c57613e3c6140e4565b500490565b600060ff8216915060ff8316613e2d565b80825b6001851115613e9157808604811115613e7057613e706140ce565b6001851615613e7e57908102905b8002613e8a8560011c90565b9450613e55565b94509492505050565b6000611a7f6000198484600082613eb357506001611a7f565b81613ec057506000611a7f565b8160018114613ed65760028114613ee057613f0d565b6001915050611a7f565b60ff841115613ef157613ef16140ce565b8360020a915084821115613f0757613f076140ce565b50611a7f565b5060208310610133831016604e8410600b8410161715613f40575081810a83811115613f3b57613f3b6140ce565b611a7f565b613f4d8484846001613e52565b92509050818404811115613f6357613f636140ce565b0292915050565b6000816000190483118215151615613f8457613f846140ce565b500290565b600060ff8216915060ff831692508160ff0483118215151615613f8457613f846140ce565b6000825b925082821015613fc457613fc46140ce565b500390565b600060ff8216915060ff8316613fb2565b60006001600160a01b0382166106ca565b82818337506000910152565b60005b83811015614012578181015183820152602001613ffa565b838111156117445750506000910152565b600081614032576140326140ce565b506000190190565b60028104600182168061404e57607f821691505b60208210811415610f8857610f886140fa565b601f19601f83011681018181106001600160401b038211171561408657614086614110565b6040525050565b60006000198214156140a1576140a16140ce565b5060010190565b60006106ca8260006106ca8260601b90565b6000826140c9576140c96140e4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61412f81613fda565b8114610c5557600080fd5b80151561412f565b6001600160e01b0319811661412f565b8061412f565b60ff811661412f56fea2646970667358221220c896a43333befedcc3a3466195cd590f5810f1a219a4d1a261751298d161d54e64736f6c63430008040033

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

000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb00000000000000000000000069c40e500b84660cb2ab09cb9614fa2387f95f640000000000000000000000009759226b2f8ddeff81583e244ef3bd13aaa7e4a10000000000000000000000003b85baf0e2157183c68d7143cddacb4eed75e0a1000000000000000000000000009b8727b61db4d9ee59b102df53e5e30e8b14e5

-----Decoded View---------------
Arg [0] : _cryptoPunks_ (address): 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB
Arg [1] : _animalColoringBook_ (address): 0x69c40e500b84660cb2ab09cB9614fa2387F95F64
Arg [2] : _purrnelopes_ (address): 0x9759226B2F8ddEFF81583e244Ef3bd13AAA7e4A1
Arg [3] : _ensHelpers_ (address): 0x3b85bAF0E2157183C68D7143CddaCB4eed75E0a1
Arg [4] : _ogCardDescriptor_ (address): 0x009b8727B61db4D9EE59b102Df53e5e30E8B14e5

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb
Arg [1] : 00000000000000000000000069c40e500b84660cb2ab09cb9614fa2387f95f64
Arg [2] : 0000000000000000000000009759226b2f8ddeff81583e244ef3bd13aaa7e4a1
Arg [3] : 0000000000000000000000003b85baf0e2157183c68d7143cddacb4eed75e0a1
Arg [4] : 000000000000000000000000009b8727b61db4d9ee59b102df53e5e30e8b14e5


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.