ETH Price: $3,487.25 (+2.31%)

Contract

0x7539cD8af910fF2eC05f06374d84dA73ebd97f25
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Staking Rece...170202182023-04-10 20:44:11624 days ago1681159451IN
0x7539cD8a...3ebd97f25
0 ETH0.0011450224.84596095
Set Staking Cont...170202182023-04-10 20:44:11624 days ago1681159451IN
0x7539cD8a...3ebd97f25
0 ETH0.0011449724.84596095

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ConnorRendererV0

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : ConnorRendererV0_Compact.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

/// @title ConnorRendererV0
/// @notice inspired by and adapted from gmRenderer by Scooprinder @ https://etherscan.io/address/0xE1AF8714Debfe84349d14Ec6A27C2aDfC68de931#code
/// @author curion.eth (@curi0n)

pragma solidity 0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

interface IStakingContract {
    function getRankOfAddress(address _address, uint256 _timestamp) external view returns (uint256);
    function userRankPercentile(address _user) external view returns (uint256);
    function getTimestampInUse() external view returns (uint256);
    function outputAmountStaked(address _owner) external view returns (uint256);
    function outputAmountBurned(address _owner) external view returns (uint256);
    function outputTotalPoints(address _owner) external view returns (uint256);
}

interface IStakingSBT {
    // function getTimestampInUse() external view returns (uint256);
    function getOwnedTokenIds(address _owner) external view returns (uint256[] memory);
}

contract ConnorRendererV0 is Ownable {
    /* Constants */

    IStakingContract public stakingContract;
    IStakingSBT public stakingReceiptSBT;

    uint16 private constant heightOffset = 80;
    uint16 private constant numLinesAfterCommand = 12;
    uint16 private constant startingAnimationOffset = 2;

    string private constant tokenUriStart = "{ \"name\": \"POH #";
    string private constant tokenUriSeparator = " , ";
    string private constant tokenUriImage = "\"image\": ";
    string private constant tokenUriEnd = "}";
    string private constant description = "\"description\":\"I ain\'t staking this shit...\"";
    
    string private constant tokenStart = "<svg width=\"512\" height=\"";
    string private constant tokenHeightEnd = "\" xmlns=\"http://www.w3.org/2000/svg\"><style>";
    string private constant styleEnd = "</style><path id=\"path\"><animate attributeName=\"d\" from=\"m0,40 h0\" to=\"m0,40 h800\" fill=\"freeze\" dur=\"3s\" /></path>";
    string private constant bgAndTilde = "<g class=\"box\"><rect width=\"100%\" height=\"100%\" class=\"bg\"/></g><text x=\"20\" y=\"40\" class=\"text\"><tspan class=\"three\"> ~ </tspan><tspan class=\"five\">$ </tspan></text><text x=\"90\" y=\"40\" class=\"text\"><textPath href=\"#path\"><tspan>./hibernate.sh -c </tspan><tspan>";
    string private constant tildeEnd = "</tspan></textPath></text>";
    string private constant svgEnd = "</svg>";

    string private constant adTextStart = "<text x=\"20\" y=\"";
    string private constant heightEnd = "\" class=\"text\"><textPath href=\"#path";
    string private constant gmStart = "\"><tspan class=\"";
    string private constant gmEnd = "\">skeptic</tspan> <tspan>";
    string private constant gmEnd2 = "\">staked</tspan> <tspan>";
    string private constant gmEnd3 = "\">burned</tspan> <tspan>";
    string private constant gmEnd4 = "\">time (h)</tspan> <tspan>";
    string private constant gmEnd5 = "\">rank</tspan> <tspan>";
    string private constant gmEnd6 = "\">     </tspan> <tspan>";
    string private constant adTextEnd = "</tspan></textPath></text>";

    string private constant tildePath = "<path id=\"pathT\"><animate attributeName=\"d\" from=\"m0,40 h0\" to=\"m0,40 h800\" fill=\"freeze\" dur=\"3s\" begin=\"0s\" /></path>";
    string private constant pathStart = "<path id=\"path";
    string private constant start = "\"><animate attributeName=\"d\" from=\"m0,";
    string private constant middle = " h0\" to=\"m0,";
    string private constant end = " h800\" fill=\"freeze\" dur=\"3s\" begin=\"";
    string private constant realEnd = "s\"/></path>";


    //svg v2
    string private constant svgStartV2 = "<svg width=\"512\" height=\"512\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">";
    string private constant styleStartV2 = "<style>";
    string private constant styleEndV2 = "</style>";
    string private constant backgroundV2 = "<g class=\"box\"><rect width=\"100%\" height=\"100%\" class=\"bg\"/></g>";
    string private constant bearTextV2 ="<text class=\"text\" opacity=\"1\"><textPath href=\"#path7\"><tspan class=\"two\" x=\"326\" >-^**^-</tspan></textPath></text><text class=\"text\"><textPath href=\"#path8\"><tspan class=\"three\" x=\"324\">\u0295\u2312\u1D25\u2312\u0294.zZ</tspan></textPath></text><text class=\"text\"><textPath href=\"#path9\"><tspan class=\"four\" x=\"318\">{-\":\"-}</tspan></textPath></text><text class=\"text\"><textPath href=\"#path10\"><tspan class=\"five\" x=\"318\">-\"---\"-</tspan></textPath></text>";  
    string private constant tildeV2 = "<text x=\"20\" y=\"40\" class=\"text\"><textPath href=\"#pathT\"><tspan class=\"three\"> ~ </tspan><tspan class=\"five\">$ </tspan><tspan>./hibernate.sh -c </tspan><tspan>";

    struct Theme {
        uint256 colours;
        string name;
    }    

    struct ImageLines {
        string height;
        string style;
        string addressAnimations;
        string idString;
        string addressText;
    }

    mapping(uint16 => address[]) public addresses;
    mapping(uint16 => Theme) public styles;
    mapping(uint16 => ImageLines) public imageLines;

    constructor() {
        initStyles();
    }

    function initStyles() internal {
        styles[0] = Theme(785032280514239843345403986361234975989988, "3024.Dark");
        styles[1] = Theme(2450080602231916301109411517425644615931335, "Ashes.Dark");
        styles[2] = Theme(1836532932293261474947541093197059158164207, "Chalk.Dark");
        styles[3] = Theme(3063968387711154413797538277562850736622969, "Codeschool.Dark");
        styles[4] = Theme(3935426488509762671892753047397560498952652, "eighties.Dark");
        styles[5] = Theme(1922956443369488271547589485961065159022466, "Embers.Dark");
        styles[6] = Theme(5784804030466693623925746515944033786112, "Greenscreen.Dark");
        styles[7] = Theme(1084233046149285124766650863596889855, "Isotope.Dark");
        styles[8] = Theme(2795082791690382213632460520052185973095585, "Marrakesh.Dark");
        styles[9] = Theme(5156693241509711486190552088476313935590325, "Mocha.Dark");
        styles[10] = Theme(3411036932506252666815918801810340780104175, "Monokai.Dark");
        styles[11] = Theme(3762241274062658723578064965903336480940467, "Ocean.Dark");
        styles[12] = Theme(4104547903849528960754850712654414816392943, "Paraiso.Dark");
        styles[13] = Theme(14704686635302771731306147606592303303634, "Solarized.Dark");
        styles[14] = Theme(2536849936874170634349935813617216894640830, "Tomorrow.Dark");
        styles[15] = Theme(2536849936874170634349935813617216894640830, "Tomorrow.Dark");

    }

    function outputStyleIndexBasedOnRankPercentile(uint16 _id) internal view returns (uint16) {
        uint256 percentile = stakingContract.userRankPercentile(IERC721(address(stakingReceiptSBT)).ownerOf(_id));
        //output index from 0 to 14 based on percentile, where 0 is the lowest percentile and 14 is the highest
        return uint16(Math.mulDiv(percentile, 15, 100));
    }

    function unpackStyle(uint16 id) internal view returns (string memory) {
        uint256 a = styles[outputStyleIndexBasedOnRankPercentile(id)].colours; //TESTING!
        bytes memory result = abi.encodePacked(
            ".bg{fill:#",
            unpackHexCode(a, 120),
            ";}.text{fill:#",
            unpackHexCode(a, 96),
            ";font:30px courier;}.two{fill:#",
            unpackHexCode(a, 72)
        );

        result = abi.encodePacked(
            result,
            ";}.three{fill:#",
            unpackHexCode(a, 48),
            ";}.four{fill:#",
            unpackHexCode(a, 24),
            ";}.five{fill:#",
            unpackHexCode(a, 0),
            ";}",
            ".six{fill:#",
            unpackHexCode(a, 72),
            ";}.seven{fill:#",
            unpackHexCode(a, 48),
            ";}.eight{fill:#",
            unpackHexCode(a, 24),
            ";}.nine{fill:#",
            unpackHexCode(a, 0),
            ";}"
        
        );

        return string(result);
    }

    function unpackHexCode(uint256 raw, uint8 offset) internal pure returns (string memory) {
        return string(abi.encodePacked(
            substring(Strings.toHexString( uint8(raw >> (16+offset)) ), 2, 4),
            substring(Strings.toHexString( uint8(raw >> (8+offset)) ), 2, 4),
            substring(Strings.toHexString( uint8(raw >> (offset)) ), 2, 4)
        ));
    }

    function getImageLines1(uint16 id) internal view returns (ImageLines memory) {
        string memory size = "512";
        
        string memory style = unpackStyle(id);
        string memory animations = generateAddressAnimations();
        string memory textId = Strings.toString(id+1);

        ImageLines memory out = ImageLines(
            size,
            style,
            animations,
            textId,
            ""
        );
        
        return out;
    }

    function getImageLines(uint16 id) internal view returns (ImageLines memory) {
        ImageLines memory thisImageLines = getImageLines1(id);
        thisImageLines.addressText = string(generateAddressText(id));
        return thisImageLines;
    }


    function generateImage1(uint16 id) internal view returns (bytes memory) {        
        ImageLines memory thisImageLines = getImageLines(id);
        bytes memory out = abi.encodePacked(
            svgStartV2,
            styleStartV2,
            thisImageLines.style,
            styleEndV2,
            backgroundV2,
            bearTextV2

        );
        return out;
    }

    function generateImage2(uint16 id) internal view returns (bytes memory) {
        ImageLines memory thisImageLines = getImageLines(id);
        bytes memory out = abi.encodePacked(
            generateImage1(id),
            thisImageLines.addressAnimations,
            tildeV2,
            thisImageLines.idString,
            tildeEnd,
            ""
        );
        return out;
    } 

    function generateImage(uint16 id) internal view returns (bytes memory) {
        ImageLines memory thisImageLines = getImageLines(id);
        bytes memory preBytes = generateImage2(id);
        bytes memory out = abi.encodePacked(
            preBytes,
            thisImageLines.addressText,
            svgEnd
        );
        return out;
    }


    function getRankFromStakingContract(uint256 _id) internal view returns (string memory) {
        return Strings.toString(stakingContract.getRankOfAddress(IERC721(address(stakingReceiptSBT)).ownerOf(_id), stakingContract.getTimestampInUse()));
    }

    function tokenUri(uint16 id) external view returns (string memory) {
        bytes memory rawImage = generateImage(id);
        string memory attributeStr;
        bytes memory dataURI;

        address tokenOwner = IERC721(address(stakingReceiptSBT)).ownerOf(id);
        string memory amountStaked = getAmountStaked(tokenOwner);
        string memory amountBurned = getAmountBurned(tokenOwner);
        string memory totalPoints = getTotalPoints(tokenOwner);
        string memory thisRank = getRankFromStakingContract(id);

        {
            attributeStr = string(abi.encodePacked(
                "\"attributes\" : [",
                buildAttribute("Theme", styles[outputStyleIndexBasedOnRankPercentile(id)].name),
                tokenUriSeparator,
                buildAttribute("Staked", amountStaked),
                tokenUriSeparator,
                buildAttribute("Burned", amountBurned),
                tokenUriSeparator,
                buildAttribute("Combined Hours of Staking", totalPoints),
                tokenUriSeparator,
                buildAttribute("Rank", thisRank),
                "]"
            ));
        }

        {        
            dataURI = abi.encodePacked(
                tokenUriStart, 
                Strings.toString(id+1), 
                "\" , ",
                tokenUriImage,
                "\"data:image/svg+xml;base64,", 
                Base64.encode(rawImage),
                "\"",
                tokenUriSeparator,
                description,
                tokenUriSeparator,
                attributeStr,
                tokenUriEnd   
            );
        }

        return string(abi.encodePacked(
            "data:application/json,",
            dataURI
        ));
    }

    function buildAttribute(string memory attributeType, string memory attributeValue) internal pure returns (string memory) {
        return string(abi.encodePacked("{ \"trait_type\" : \"", attributeType, "\", \"value\" : \"", attributeValue, "\" }"));
    }

    function getReadoutsForText(uint16 tokenId) public view returns (string memory, string memory, string memory, string memory) {
        address tokenOwner = IERC721(address(stakingReceiptSBT)).ownerOf(tokenId);
        string memory thisRank = getRankFromStakingContract(tokenId);
        string memory amountStaked = getAmountStaked(tokenOwner);
        string memory amountBurned = getAmountBurned(tokenOwner);
        string memory totalPoints = getTotalPoints(tokenOwner);
        return (thisRank, amountStaked, amountBurned, totalPoints);
    }

    function generateAddressText(uint16 tokenId) private view returns (bytes memory) {
        address tokenOwner = IERC721(address(stakingReceiptSBT)).ownerOf(tokenId);

        bytes memory result = "";
        string memory addressAtIndex = substring(Strings.toHexString(tokenOwner), 0, 10);
        string memory thisRank = getRankFromStakingContract(tokenId);
        string memory amountStaked = getAmountStaked(tokenOwner);
        string memory amountBurned = getAmountBurned(tokenOwner);
        string memory totalPoints = getTotalPoints(tokenOwner);

        result = abi.encodePacked(
            result,
            adTextStart,
            Strings.toString(heightOffset),
            heightEnd,
            Strings.toString(uint256(0)),
            gmStart,
            getGmClass(substring(addressAtIndex,2,8)),
            gmEnd,
            abi.encodePacked(
                addressAtIndex,
                adTextEnd
            )
        );

        result = abi.encodePacked(
            result,
            adTextStart,
            Strings.toString(heightOffset+40),
            heightEnd,
            Strings.toString(uint256(1)),
            gmStart,
            getGmClass(substring(addressAtIndex,2,8)),
            gmEnd2,
            abi.encodePacked(
                amountStaked,
                adTextEnd                    
            )

        );

        result = abi.encodePacked(
            result,
            adTextStart,
            Strings.toString(heightOffset+40),
            heightEnd,
            Strings.toString(uint256(2)),
            gmStart,
            getGmClass(substring(addressAtIndex,2,8)),
            gmEnd3,
            abi.encodePacked(
                amountBurned,
                adTextEnd                    
            )

        );

        result = abi.encodePacked(
            result,
            adTextStart,
            Strings.toString(heightOffset+40),
            heightEnd,
            Strings.toString(uint256(3)),
            gmStart,
            getGmClass(substring(addressAtIndex,2,8)),
            gmEnd4,
            abi.encodePacked(
                totalPoints,
                adTextEnd                    
            )

        );

        result = abi.encodePacked(
            result,
            adTextStart,
            Strings.toString(heightOffset+80),
            heightEnd,
            Strings.toString(uint256(4)),
            gmStart,
            getGmClass(substring(addressAtIndex,2,8)),
            gmEnd5,
            abi.encodePacked(
                thisRank,
                adTextEnd                    
            )

        );
        
        return (result);
    }

    function getAmountStaked(address _owner) private view returns (string memory) {
        return Strings.toString(stakingContract.outputAmountStaked(_owner));    
    }

    function getAmountBurned(address _owner) private view returns (string memory) {
        return Strings.toString(stakingContract.outputAmountBurned(_owner));
    }

    function getTotalPoints(address _owner) private view returns (string memory) {
        return Strings.toString(stakingContract.outputTotalPoints(_owner));
    }

    function getGmClass(string memory hexNum) private pure returns (string memory) {
        uint256 idx = convertString(hexNum) % 4;        
        if (idx == 0) {
            return "two";
        } else if (idx == 1) {
            return "three";
        } else if (idx == 2) {
            return "four";
        } else {
            return "five";
        }
    }

    function generateAddressAnimations() private pure returns (string memory) {

        bytes memory result = abi.encodePacked(
            tildePath
        );

        {
            for (uint16 i = 0; i <= numLinesAfterCommand; i++) {
                uint256 offset2;
                if(i==7){offset2 = 15;}
                result = abi.encodePacked(
                    result,
                    pathStart,
                    Strings.toString(i),
                    start,
                    Strings.toString(heightOffset + (i * 40+offset2)),
                    middle
                );

                result = abi.encodePacked(
                    result,
                    Strings.toString(heightOffset + (i * 40+offset2)),
                    end,
                    Strings.toString(startingAnimationOffset + i), //2 is startingAnimationOffset value
                    realEnd
                );
            }
        }

        return string(result);
    }

    function substring(string memory str, uint startIndex, uint endIndex) public pure returns (string memory ) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex-startIndex);
        for(uint i = startIndex; i < endIndex; i++) {
            result[i-startIndex] = strBytes[i];
        }
        return string(result);
    }

    function numberFromAscII(bytes1 b) private pure returns (uint8 res) {
        if (b>="0" && b<="9") {
            return uint8(b) - uint8(bytes1("0"));
        } else if (b>="A" && b<="F") {
            return 10 + uint8(b) - uint8(bytes1("A"));
        } else if (b>="a" && b<="f") {
            return 10 + uint8(b) - uint8(bytes1("a"));
        }
        return uint8(b); 
    }

    function convertString(string memory str) public pure returns (uint256 value) {
        
        bytes memory b = bytes(str);
        uint256 number = 0;
        for(uint i=0;i<b.length;i++){
            number = number << 4; 
            number |= numberFromAscII(b[i]); 
        }
        return number; 
    }

    function setStakingContract(address _stakingContract) external onlyOwner {
        stakingContract = IStakingContract(_stakingContract);
    }

    function setStakingReceiptSBT(address _stakingReceiptSBT) external onlyOwner {
        stakingReceiptSBT = IStakingSBT(_stakingReceiptSBT);
    }
}

File 2 of 12 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

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

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

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

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

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

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

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

File 6 of 12 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 11 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 12 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@projectopensea/operator-filter-registry/=lib/operator-filter-registry/",
    "@solmate/=lib/solmate/src/",
    "ERC1155Delta/=lib/ERC1155Delta/contracts/",
    "ERC721Psi/=lib/ERC721Psi/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/",
    "prb-test/=lib/prb-test/src/",
    "solidity-bits/=lib/solidity-bits/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"convertString","outputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getReadoutsForText","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"imageLines","outputs":[{"internalType":"string","name":"height","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"string","name":"addressAnimations","type":"string"},{"internalType":"string","name":"idString","type":"string"},{"internalType":"string","name":"addressText","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingContract","type":"address"}],"name":"setStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingReceiptSBT","type":"address"}],"name":"setStakingReceiptSBT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract IStakingContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingReceiptSBT","outputs":[{"internalType":"contract IStakingSBT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"styles","outputs":[{"internalType":"uint256","name":"colours","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"substring","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"tokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506200001d336200002d565b620000276200007d565b62000cbe565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60408051808201825271090300a5a2a2db2d2001a252fded0201a0e4815281518083019092526009825268333032342e4461726b60b81b602083810191909152808201928352600080526004905280517f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec90815591519091907f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ed9062000124908262000bf2565b5050604080518082018252711c2023c7ccd1c7ae9595c7aeaec795ae95c781528151808301909252600a82526941736865732e4461726b60b01b60208381019190915280820192835260016000526004905280517fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0590815591519092507fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0690620001cf908262000bf2565b505060408051808201825271151515d0d0d0fb9fb1acc267ddb26f6fc2ef81528151808301909252600a8252694368616c6b2e4461726b60b01b60208381019190915280820192835260026000526004905280517f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a790815591519092507f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a8906200027a908262000bf2565b505060408051808201825271232c319ea7a62a5491237986a03b1e484d7981528151808301909252600f82526e436f64657363686f6f6c2e4461726b60881b60208381019190915280820192835260036000526004905280517f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa090815591519092507f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa1906200032a908262000bf2565b5050604080518082018252712d2d2dd3d0c8f2777a99cc99ffcc666699cc81528151808301909252600d82526c65696768746965732e4461726b60981b60208381019190915280820192835260046000819052905280517f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a050f90815591519092507f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a051090620003d8908262000bf2565b50506040805180820182527116130fa39a90826d5757826d6d82576d578281528151808301909252600b82526a456d626572732e4461726b60a81b60208381019190915280820192835260056000526004905280517f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f0590815591519092507f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f069062000484908262000bf2565b505060408051808201825270110000bb0000770000bb0000770000990081528151808301909252601082526f477265656e73637265656e2e4461726b60801b60208381019190915280820192835260066000526004905280517fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f90815591519092507fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f109062000534908262000bf2565b50506040805180820182526ed0d0d0ff000033ff00ff00990066ff81528151808301909252600c82526b49736f746f70652e4461726b60a01b60208381019190915280820192835260076000526004905280517fbeb3bad75134cb432e5707980e3245c52c5998a1125ee30f2f0dbf3925b1e55190815591519092507fbeb3bad75134cb432e5707980e3245c52c5998a1125ee30f2f0dbf3925b1e55290620005de908262000bf2565b505060408051808201825271201602948e48c3535918974ea88339477ca181528151808301909252600e82526d4d617272616b6573682e4461726b60901b60208381019190915280820192835260086000526004905280517f2645749a946633740611cfc8178319f0958659d6922e4bf7e3a08b44789f53a490815591519092507f2645749a946633740611cfc8178319f0958659d6922e4bf7e3a08b44789f53a5906200068d908262000bf2565b5050604080518082018252713b3228d0c8c6cb6077beb55bf4bc878ab3b581528151808301909252600a8252694d6f6368612e4461726b60b01b60208381019190915280820192835260096000526004905280517f4ad5a04d53b5856f318545bb721f67d3f6d0a5a999f25eec7e20eaeb4c47b93390815591519092507f4ad5a04d53b5856f318545bb721f67d3f6d0a5a999f25eec7e20eaeb4c47b9349062000738908262000bf2565b505060408051808201825271272822f8f8f2f92672a6e22ef4bf7566d9ef81528151808301909252600c82526b4d6f6e6f6b61692e4461726b60a01b602083810191909152808201928352600a6000526004905280517f5c6b02db8b672415ffad906d7ccee10bd53dbad7d0b29e2bc0e50c93d5f3109390815591519092507f5c6b02db8b672415ffad906d7ccee10bd53dbad7d0b29e2bc0e50c93d5f3109490620007e5908262000bf2565b5050604080518082018252712b303bc0c5cebf616aa3be8cebcb8b8fa1b381528151808301909252600a8252694f6365616e2e4461726b60b01b602083810191909152808201928352600b6000526004905280517f0c1469ad586d86b6976c45826d7ae56d76ee516e37a2bccffbe904b74dbae7ea90815591519092507f0c1469ad586d86b6976c45826d7ae56d76ee516e37a2bccffbe904b74dbae7eb9062000890908262000bf2565b5050604080518082018252712f1e2ea39e9bef615548b685fec41806b6ef81528151808301909252600c8083526b5061726169736f2e4461726b60a01b6020848101919091528083019384526000919091526004905280517f140aabff1a85df08546c9a350c79ae18341bde4a2cef5d2fd460885c0128ce2690815591519092507f140aabff1a85df08546c9a350c79ae18341bde4a2cef5d2fd460885c0128ce27906200093f908262000bf2565b5050604080518082018252702b3693a1a1dc322f859900b58900268bd281528151808301909252600e82526d536f6c6172697a65642e4461726b60901b602083810191909152808201928352600d6000526004905280517fa5022b2bfd144bf9103d80168549b5df7c72ab60bd51bf71a02a08d844853b4a90815591519092507fa5022b2bfd144bf9103d80168549b5df7c72ab60bd51bf71a02a08d844853b4b90620009ed908262000bf2565b5050604080518082018252711d1f21c5c8c6cc6666b5bd68f0c67481a2be81528151808301909252600d82526c546f6d6f72726f772e4461726b60981b602083810191909152808201928352600e6000526004905280517feb3e677499e881fe1bdbc344a49c412138038a9f40883b6dc68f713aab48352390815591519092507feb3e677499e881fe1bdbc344a49c412138038a9f40883b6dc68f713aab4835249062000a9b908262000bf2565b5050604080518082018252711d1f21c5c8c6cc6666b5bd68f0c67481a2be81528151808301909252600d82526c546f6d6f72726f772e4461726b60981b602083810191909152808201928352600f6000526004905280517f66b61daf77b854ca6ba000a8d4b340eafcdb71b6583753b4af89fceb54988fff90815591519092507f66b61daf77b854ca6ba000a8d4b340eafcdb71b6583753b4af89fceb549890009062000b49908262000bf2565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000b7957607f821691505b60208210810362000b9a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b4957600081815260208120601f850160051c8101602086101562000bc95750805b601f850160051c820191505b8181101562000bea5782815560010162000bd5565b505050505050565b81516001600160401b0381111562000c0e5762000c0e62000b4e565b62000c268162000c1f845462000b64565b8462000ba0565b602080601f83116001811462000c5e576000841562000c455750858301515b600019600386901b1c1916600185901b17855562000bea565b600085815260208120601f198616915b8281101562000c8f5788860151825594840194600190910190840162000c6e565b508582101562000cae5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6135688062000cce6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063419eba341161008c5780639dd373b9116100665780639dd373b91461020d578063b80e8a3b14610220578063ee99205c14610233578063f2fde38b1461024657600080fd5b8063419eba34146101e1578063715018a6146101f45780638da5cb5b146101fc57600080fd5b806326a3c0dc116100c857806326a3c0dc1461014e578063286966101461017157806329d9fc8e1461019c5780633443105e146101c057600080fd5b806309bc73da146100ef5780631dcd9b55146101045780631f2e1b401461012d575b600080fd5b6101026100fd3660046124e8565b610259565b005b6101176101123660046125a8565b610283565b6040516101249190612646565b60405180910390f35b61014061013b366004612670565b610352565b60405161012492919061268b565b61016161015c366004612670565b6103f7565b60405161012494939291906126ac565b600254610184906001600160a01b031681565b6040516001600160a01b039091168152602001610124565b6101af6101aa366004612670565b6104bb565b604051610124959493929190612704565b6101d36101ce366004612771565b610791565b604051908152602001610124565b6101176101ef366004612670565b6107f2565b610102610bfe565b6000546001600160a01b0316610184565b61010261021b3660046124e8565b610c12565b61018461022e3660046127a6565b610c3c565b600154610184906001600160a01b031681565b6101026102543660046124e8565b610c74565b610261610cf2565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b606083600061029285856127e6565b67ffffffffffffffff8111156102aa576102aa612505565b6040519080825280601f01601f1916602001820160405280156102d4576020820181803683370190505b509050845b84811015610346578281815181106102f3576102f36127f9565b01602001516001600160f81b0319168261030d88846127e6565b8151811061031d5761031d6127f9565b60200101906001600160f81b031916908160001a9053508061033e8161280f565b9150506102d9565b509150505b9392505050565b6004602052600090815260409020805460018201805491929161037490612828565b80601f01602080910402602001604051908101604052809291908181526020018280546103a090612828565b80156103ed5780601f106103c2576101008083540402835291602001916103ed565b820191906000526020600020905b8154815290600101906020018083116103d057829003601f168201915b5050505050905082565b6002546040516331a9108f60e11b815261ffff831660048201526060918291829182916000916001600160a01b031690636352211e90602401602060405180830381865afa15801561044d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610471919061285c565b905060006104828761ffff16610d4c565b9050600061048f83610ebd565b9050600061049c84610ef5565b905060006104a985610f2d565b939a9299509097509195509350505050565b6005602052600090815260409020805481906104d690612828565b80601f016020809104026020016040519081016040528092919081815260200182805461050290612828565b801561054f5780601f106105245761010080835404028352916020019161054f565b820191906000526020600020905b81548152906001019060200180831161053257829003601f168201915b50505050509080600101805461056490612828565b80601f016020809104026020016040519081016040528092919081815260200182805461059090612828565b80156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b5050505050908060020180546105f290612828565b80601f016020809104026020016040519081016040528092919081815260200182805461061e90612828565b801561066b5780601f106106405761010080835404028352916020019161066b565b820191906000526020600020905b81548152906001019060200180831161064e57829003601f168201915b50505050509080600301805461068090612828565b80601f01602080910402602001604051908101604052809291908181526020018280546106ac90612828565b80156106f95780601f106106ce576101008083540402835291602001916106f9565b820191906000526020600020905b8154815290600101906020018083116106dc57829003601f168201915b50505050509080600401805461070e90612828565b80601f016020809104026020016040519081016040528092919081815260200182805461073a90612828565b80156107875780601f1061075c57610100808354040283529160200191610787565b820191906000526020600020905b81548152906001019060200180831161076a57829003601f168201915b5050505050905085565b60008181805b82518110156107ea57600482901b91506107d08382815181106107bc576107bc6127f9565b01602001516001600160f81b031916610f65565b60ff168217915080806107e29061280f565b915050610797565b509392505050565b606060006107ff8361103c565b6002546040516331a9108f60e11b815261ffff8616600482015291925060609182916000916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a919061285c565b9050600061088782610ebd565b9050600061089483610ef5565b905060006108a184610f2d565b905060006108b28a61ffff16610d4c565b9050610989604051806040016040528060058152602001645468656d6560d81b815250600460006108e28e6110aa565b61ffff1661ffff168152602001908152602001600020600101805461090690612828565b80601f016020809104026020016040519081016040528092919081815260200182805461093290612828565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b50505050506111a3565b6040518060400160405280600381526020016201016160ed1b8152506109cd6040518060400160405280600681526020016514dd185ad95960d21b815250876111a3565b6040518060400160405280600381526020016201016160ed1b815250610a1160405180604001604052806006815260200165109d5c9b995960d21b815250886111a3565b6040518060400160405280600381526020016201016160ed1b815250610a6c6040518060400160405280601981526020017f436f6d62696e656420486f757273206f66205374616b696e6700000000000000815250896111a3565b6040518060400160405280600381526020016201016160ed1b815250610aae6040518060400160405280600481526020016352616e6b60e01b8152508a6111a3565b604051602001610ac699989796959493929190612895565b60408051601f19818403018152828201909152601082526f7b20226e616d65223a2022504f48202360801b60208301529750610b0f610b068c60016129a7565b61ffff166111cf565b6040518060400160405280600981526020016801134b6b0b3b2911d160bd1b815250610b3a8b611262565b6040518060400160405280600381526020016201016160ed1b8152506040518060600160405280602c81526020016130c0602c91396040518060400160405280600381526020016201016160ed1b8152508d604051806040016040528060018152602001607d60f81b815250604051602001610bbe999897969594939291906129c9565b604051602081830303815290604052955085604051602001610be09190612ac6565b60405160208183030381529060405298505050505050505050919050565b610c06610cf2565b610c1060006113b5565b565b610c1a610cf2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60036020528160005260406000208181548110610c5857600080fd5b6000918252602090912001546001600160a01b03169150829050565b610c7c610cf2565b6001600160a01b038116610ce65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610cef816113b5565b50565b6000546001600160a01b03163314610c105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cdd565b6001546002546040516331a9108f60e11b815260048101849052606092610eb7926001600160a01b039182169263246828179290911690636352211e90602401602060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd919061285c565b600160009054906101000a90046001600160a01b03166001600160a01b031663a93959c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e449190612b04565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015b602060405180830381865afa158015610e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb29190612b04565b6111cf565b92915050565b6001546040516342cd30f560e01b81526001600160a01b038381166004830152606092610eb7929116906342cd30f590602401610e71565b600154604051631a6f855b60e01b81526001600160a01b038381166004830152606092610eb792911690631a6f855b90602401610e71565b60015460405163a5d9ff1f60e01b81526001600160a01b038381166004830152606092610eb79291169063a5d9ff1f90602401610e71565b6000600360fc1b6001600160f81b0319831610801590610f935750603960f81b6001600160f81b0319831611155b15610fa757610eb7603060f884901c612b1d565b604160f81b6001600160f81b0319831610801590610fd35750602360f91b6001600160f81b0319831611155b15610ff3576041610fe960f884901c600a612b36565b610eb79190612b1d565b606160f81b6001600160f81b031983161080159061101f5750603360f91b6001600160f81b0319831611155b15611035576061610fe960f884901c600a612b36565b5060f81c90565b6060600061104983611405565b9050600061105684611458565b90506000818360800151604051806040016040528060068152602001651e17b9bb339f60d11b81525060405160200161109193929190612b4f565b60408051601f1981840301815291905295945050505050565b6001546002546040516331a9108f60e11b815261ffff8416600482015260009283926001600160a01b039182169263854c08f09290911690636352211e90602401602060405180830381865afa158015611108573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112c919061285c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111949190612b04565b905061034b81600f60646114e5565b606082826040516020016111b8929190612b92565b604051602081830303815290604052905092915050565b606060006111dc836115cf565b600101905060008167ffffffffffffffff8111156111fc576111fc612505565b6040519080825280601f01601f191660200182016040528015611226576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461123057509392505050565b6060815160000361128157505060408051602081019091526000815290565b60006040518060600160405280604081526020016133fd60409139905060006003845160026112b09190612c20565b6112ba9190612c33565b6112c5906004612c47565b67ffffffffffffffff8111156112dd576112dd612505565b6040519080825280601f01601f191660200182016040528015611307576020820181803683370190505b509050600182016020820185865187015b80821015611373576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611318565b505060038651066001811461138f57600281146113a2576113aa565b603d6001830353603d60028303536113aa565b603d60018303535b509195945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6114376040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6000611442836116a7565b905061144d83611755565b608082015292915050565b6060600061146583611405565b9050600061147284611e2d565b82604001516040518060c00160405280609f81526020016130ec609f913984606001516040518060400160405280601a81526020016000805160206133dd8339815191528152506040516020016114cd959493929190612c5e565b60408051601f19818403018152919052949350505050565b600080806000198587098587029250828110838203039150508060000361151f5783828161151557611515612c0a565b049250505061034b565b8084116115665760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610cdd565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061160e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061163a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061165857662386f26fc10000830492506010015b6305f5e1008310611670576305f5e100830492506008015b612710831061168457612710830492506004015b60648310611696576064830492506002015b600a8310610eb75760010192915050565b6116d96040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6040805180820190915260038152621a989960e91b602082015260006116fe84611ee7565b9050600061170a611fba565b9050600061171c610b068760016129a7565b6040805160a081018252958652602080870195909552858101939093526060850152508051918201905260008152608082015292915050565b6002546040516331a9108f60e11b815261ffff831660048201526060916000916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156117a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cb919061285c565b60408051602081019091526000808252919250906117f46117eb84612175565b6000600a610283565b905060006118058661ffff16610d4c565b9050600061181285610ebd565b9050600061181f86610ef5565b9050600061182c87610f2d565b9050856040518060400160405280601081526020016f1e3a32bc3a103c1e91191811103c9e9160811b815250611866605061ffff166111cf565b6040518060600160405280602481526020016134636024913961188960006111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b8152506118c76118c28c60026008610283565b61218b565b6040518060400160405280601981526020017f223e736b65707469633c2f747370616e3e203c747370616e3e000000000000008152508c6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611933929190612cc9565b60408051601f1981840301815290829052611958999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b60208301529650869061199b610b06605060286129a7565b604051806060016040528060248152602001613463602491396119be60016111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b8152506119f76118c28c60026008610283565b6040518060400160405280601881526020017f223e7374616b65643c2f747370616e3e203c747370616e3e00000000000000008152508a6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611a63929190612cc9565b60408051601f1981840301815290829052611a88999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611acb610b06605060286129a7565b60405180606001604052806024815260200161346360249139611aee60026111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611b276118c28c60026008610283565b6040518060400160405280601881526020017f223e6275726e65643c2f747370616e3e203c747370616e3e0000000000000000815250896040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611b93929190612cc9565b60408051601f1981840301815290829052611bb8999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611bfb610b06605060286129a7565b60405180606001604052806024815260200161346360249139611c1e60036111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611c576118c28c60026008610283565b6040518060400160405280601a81526020017f223e74696d65202868293c2f747370616e3e203c747370616e3e000000000000815250886040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611cc3929190612cc9565b60408051601f1981840301815290829052611ce8999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611d2a610b066050806129a7565b60405180606001604052806024815260200161346360249139611d4d60046111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611d866118c28c60026008610283565b60405180604001604052806016815260200175111f3930b7359e17ba39b830b71f101e3a39b830b71f60511b8152508b6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611deb929190612cc9565b60408051601f1981840301815290829052611e10999897969594939291602001612cf8565b60408051601f198184030181529190529998505050505050505050565b60606000611e3a83611405565b905060006040518060a00160405280606c8152602001613487606c9139604051806040016040528060078152602001661e39ba3cb6329f60c91b8152508360200151604051806040016040528060088152602001671e17b9ba3cb6329f60c11b8152506040518060600160405280604081526020016134f360409139604051806101e001604052806101b681526020016132276101b691396040516020016114cd96959493929190612db9565b6060600060046000611ef8856110aa565b61ffff16815260208101919091526040016000908120549150611f1c826078612246565b611f27836060612246565b611f32846048612246565b604051602001611f4493929190612e38565b604051602081830303815290604052905080611f61836030612246565b611f6c846018612246565b611f77856000612246565b611f82866048612246565b611f8d876030612246565b611f98886018612246565b611fa3896000612246565b6040516020016114cd989796959493929190612ed6565b606060006040518060a001604052806077815260200161318b60779139604051602001611fe79190613031565b604051602081830303815290604052905060005b600c61ffff82161161216f5760008161ffff166007036120195750600f5b826040518060400160405280600e81526020016d078e0c2e8d040d2c87a44e0c2e8d60931b81525061204e8461ffff166111cf565b60405180606001604052806026815260200161343d6026913961208f8561207688602861304d565b61ffff166120849190612c20565b610eb2906050612c20565b6040518060400160405280600c81526020016b081a0c08881d1bcf489b4c0b60a21b8152506040516020016120c996959493929190612db9565b60408051601f198184030181529190529250826120eb8261207685602861304d565b60405180606001604052806025815260200161320260259139612112610b068660026129a7565b6040518060400160405280600b81526020016a3991179f1e17b830ba341f60a91b81525060405160200161214a959493929190612c5e565b604051602081830303815290604052925050808061216790613073565b915050611ffb565b50919050565b6060610eb76001600160a01b03831660146122b6565b60606000600461219a84610791565b6121a49190613094565b9050806000036121cf57505060408051808201909152600381526274776f60e81b6020820152919050565b806001036121fa575050604080518082019091526005815264746872656560d81b6020820152919050565b806002036122245750506040805180820190915260048152633337bab960e11b6020820152919050565b50506040805180820190915260048152636669766560e01b6020820152919050565b6060612270612267612259846010612b36565b60ff1685901c60ff16612452565b60026004610283565b61228f612267612281856008612b36565b60ff1686901c60ff16612452565b6122a46122678560ff1687901c60ff16612452565b6040516020016111b893929190612b4f565b606060006122c5836002612c47565b6122d0906002612c20565b67ffffffffffffffff8111156122e8576122e8612505565b6040519080825280601f01601f191660200182016040528015612312576020820181803683370190505b509050600360fc1b8160008151811061232d5761232d6127f9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061235c5761235c6127f9565b60200101906001600160f81b031916908160001a9053506000612380846002612c47565b61238b906001612c20565b90505b6001811115612403576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123bf576123bf6127f9565b1a60f81b8282815181106123d5576123d56127f9565b60200101906001600160f81b031916908160001a90535060049490941c936123fc816130a8565b905061238e565b50831561034b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cdd565b6060610eb78261246184612469565b6001016122b6565b600080608083901c156124815760809290921c916010015b604083901c156124965760409290921c916008015b602083901c156124ab5760209290921c916004015b601083901c156124c05760109290921c916002015b600883901c15610eb75760010192915050565b6001600160a01b0381168114610cef57600080fd5b6000602082840312156124fa57600080fd5b813561034b816124d3565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261252c57600080fd5b813567ffffffffffffffff8082111561254757612547612505565b604051601f8301601f19908116603f0116810190828211818310171561256f5761256f612505565b8160405283815286602085880101111561258857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156125bd57600080fd5b833567ffffffffffffffff8111156125d457600080fd5b6125e08682870161251b565b9660208601359650604090950135949350505050565b60005b838110156126115781810151838201526020016125f9565b50506000910152565b600081518084526126328160208601602086016125f6565b601f01601f19169290920160200192915050565b60208152600061034b602083018461261a565b803561ffff8116811461266b57600080fd5b919050565b60006020828403121561268257600080fd5b61034b82612659565b8281526040602082015260006126a4604083018461261a565b949350505050565b6080815260006126bf608083018761261a565b82810360208401526126d1818761261a565b905082810360408401526126e5818661261a565b905082810360608401526126f9818561261a565b979650505050505050565b60a08152600061271760a083018861261a565b8281036020840152612729818861261a565b9050828103604084015261273d818761261a565b90508281036060840152612751818661261a565b90508281036080840152612765818561261a565b98975050505050505050565b60006020828403121561278357600080fd5b813567ffffffffffffffff81111561279a57600080fd5b6126a48482850161251b565b600080604083850312156127b957600080fd5b6127c283612659565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610eb757610eb76127d0565b634e487b7160e01b600052603260045260246000fd5b600060018201612821576128216127d0565b5060010190565b600181811c9082168061283c57607f821691505b60208210810361216f57634e487b7160e01b600052602260045260246000fd5b60006020828403121561286e57600080fd5b815161034b816124d3565b6000815161288b8185602086016125f6565b9290920192915050565b6f226174747269627574657322203a205b60801b815289516000906128c1816010850160208f016125f6565b8a516128d68160108487010160208f016125f6565b8a516128ed81601084868901010160208f016125f6565b8a519285019091010190612908816010840160208d016125f6565b885161291d8160108486010160208d016125f6565b885161293481601084868801010160208d016125f6565b88519390920101019061294e816010840160208a016125f6565b85516129638160108486010160208a016125f6565b855161297a81601084868801010160208a016125f6565b61299460108284868801010101605d60f81b815260010190565b9f9e505050505050505050505050505050565b61ffff8181168382160190808211156129c2576129c26127d0565b5092915050565b60008a516129db818460208f016125f6565b8a516129ed8183860160208f016125f6565b630111016160e51b918401019081528951612a0f816004840160208e016125f6565b7f22646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000600492909101918201528851612a4d81601f840160208d016125f6565b601160f91b601f92909101918201528751612a6f816020808501908c016125f6565b8751612a848160208486010160208c016125f6565b8751929091010190612a9d816020808501908a016125f6565b612ab5612aaf60208385010188612879565b86612879565b9d9c50505050505050505050505050565b7519185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8b60521b815260008251612af78160168501602087016125f6565b9190910160160192915050565b600060208284031215612b1657600080fd5b5051919050565b60ff8281168282160390811115610eb757610eb76127d0565b60ff8181168382160190811115610eb757610eb76127d0565b60008451612b618184602089016125f6565b845190830190612b758183602089016125f6565b8451910190612b888183602088016125f6565b0195945050505050565b713d90113a3930b4ba2fba3cb83291101d101160711b81528251600090612bc08160128501602088016125f6565b6d111610113b30b63ab291101d101160911b6012918401918201528351612bee8160208085019088016125f6565b6222207d60e81b60209290910191820152602301949350505050565b634e487b7160e01b600052601260045260246000fd5b80820180821115610eb757610eb76127d0565b600082612c4257612c42612c0a565b500490565b8082028115828204841417610eb757610eb76127d0565b60008651612c70818460208b016125f6565b865190830190612c84818360208b016125f6565b8651910190612c97818360208a016125f6565b8551910190612caa8183602089016125f6565b8451910190612cbd8183602088016125f6565b01979650505050505050565b60008351612cdb8184602088016125f6565b835190830190612cef8183602088016125f6565b01949350505050565b60008a51612d0a818460208f016125f6565b8a51612d1c8183860160208f016125f6565b8a519184010190612d31818360208e016125f6565b8951612d438183850160208e016125f6565b8951929091010190612d59818360208c016125f6565b8751612d6b8183850160208c016125f6565b8751929091010190612d81818360208a016125f6565b8551612d938183850160208a016125f6565b8551929091010190612da98183602088016125f6565b019b9a5050505050505050505050565b600087516020612dcc8285838d016125f6565b885191840191612ddf8184848d016125f6565b8851920191612df18184848c016125f6565b8751920191612e038184848b016125f6565b8651920191612e158184848a016125f6565b8551920191612e2781848489016125f6565b919091019998505050505050505050565b692e62677b66696c6c3a2360b01b815260008451612e5d81600a8501602089016125f6565b6d3b7d2e746578747b66696c6c3a2360901b600a918401918201528451612e8b8160188401602089016125f6565b7f3b666f6e743a3330707820636f75726965723b7d2e74776f7b66696c6c3a2300601892909101918201528351612ec98160378401602088016125f6565b0160370195945050505050565b60008951612ee8818460208e016125f6565b6e3b7d2e74687265657b66696c6c3a2360881b9083019081528951612f1481600f840160208e016125f6565b6d3b7d2e666f75727b66696c6c3a2360901b600f92909101918201528851612f4381601d840160208d016125f6565b6d3b7d2e666976657b66696c6c3a2360901b601d92909101918201528751612f7281602b840160208c016125f6565b613b7d60f01b602b92909101918201526a2e7369787b66696c6c3a2360a81b602d820152613022613014612aaf612ffa612ff4612fd9612fd3612fb8603889018f612879565b6e3b7d2e736576656e7b66696c6c3a2360881b8152600f0190565b8c612879565b6e3b7d2e65696768747b66696c6c3a2360881b8152600f0190565b89612879565b6d3b7d2e6e696e657b66696c6c3a2360901b8152600e0190565b613b7d60f01b815260020190565b9b9a5050505050505050505050565b600082516130438184602087016125f6565b9190910192915050565b61ffff81811683821602808216919082811461306b5761306b6127d0565b505092915050565b600061ffff80831681810361308a5761308a6127d0565b6001019392505050565b6000826130a3576130a3612c0a565b500690565b6000816130b7576130b76127d0565b50600019019056fe226465736372697074696f6e223a22492061696e2774207374616b696e67207468697320736869742e2e2e223c7465787420783d2232302220793d2234302220636c6173733d2274657874223e3c746578745061746820687265663d22237061746854223e3c747370616e20636c6173733d227468726565223e207e203c2f747370616e3e3c747370616e20636c6173733d2266697665223e24203c2f747370616e3e3c747370616e3e2e2f68696265726e6174652e7368202d63203c2f747370616e3e3c747370616e3e3c706174682069643d227061746854223e3c616e696d617465206174747269627574654e616d653d2264222066726f6d3d226d302c34302068302220746f3d226d302c34302068383030222066696c6c3d22667265657a6522206475723d2233732220626567696e3d22307322202f3e3c2f706174683e2068383030222066696c6c3d22667265657a6522206475723d2233732220626567696e3d223c7465787420636c6173733d227465787422206f7061636974793d2231223e3c746578745061746820687265663d22237061746837223e3c747370616e20636c6173733d2274776f2220783d2233323622203e2d5e2a2a5e2d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d22237061746838223e3c747370616e20636c6173733d2274687265652220783d22333234223eca95e28c92e1b4a5e28c92ca942e7a5a3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d22237061746839223e3c747370616e20636c6173733d22666f75722220783d22333138223e7b2d223a222d7d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d2223706174683130223e3c747370616e20636c6173733d22666976652220783d22333138223e2d222d2d2d222d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c2f747370616e3e3c2f74657874506174683e3c2f746578743e0000000000004142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f223e3c616e696d617465206174747269627574654e616d653d2264222066726f6d3d226d302c2220636c6173733d2274657874223e3c746578745061746820687265663d2223706174683c7376672077696474683d2235313222206865696768743d223531322220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e3c6720636c6173733d22626f78223e3c726563742077696474683d223130302522206865696768743d22313030252220636c6173733d226267222f3e3c2f673ea2646970667358221220d4ddfe8631f5eef37795a2abfbb8829e8039bc8c22bb576ad29c24978493197864736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063419eba341161008c5780639dd373b9116100665780639dd373b91461020d578063b80e8a3b14610220578063ee99205c14610233578063f2fde38b1461024657600080fd5b8063419eba34146101e1578063715018a6146101f45780638da5cb5b146101fc57600080fd5b806326a3c0dc116100c857806326a3c0dc1461014e578063286966101461017157806329d9fc8e1461019c5780633443105e146101c057600080fd5b806309bc73da146100ef5780631dcd9b55146101045780631f2e1b401461012d575b600080fd5b6101026100fd3660046124e8565b610259565b005b6101176101123660046125a8565b610283565b6040516101249190612646565b60405180910390f35b61014061013b366004612670565b610352565b60405161012492919061268b565b61016161015c366004612670565b6103f7565b60405161012494939291906126ac565b600254610184906001600160a01b031681565b6040516001600160a01b039091168152602001610124565b6101af6101aa366004612670565b6104bb565b604051610124959493929190612704565b6101d36101ce366004612771565b610791565b604051908152602001610124565b6101176101ef366004612670565b6107f2565b610102610bfe565b6000546001600160a01b0316610184565b61010261021b3660046124e8565b610c12565b61018461022e3660046127a6565b610c3c565b600154610184906001600160a01b031681565b6101026102543660046124e8565b610c74565b610261610cf2565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b606083600061029285856127e6565b67ffffffffffffffff8111156102aa576102aa612505565b6040519080825280601f01601f1916602001820160405280156102d4576020820181803683370190505b509050845b84811015610346578281815181106102f3576102f36127f9565b01602001516001600160f81b0319168261030d88846127e6565b8151811061031d5761031d6127f9565b60200101906001600160f81b031916908160001a9053508061033e8161280f565b9150506102d9565b509150505b9392505050565b6004602052600090815260409020805460018201805491929161037490612828565b80601f01602080910402602001604051908101604052809291908181526020018280546103a090612828565b80156103ed5780601f106103c2576101008083540402835291602001916103ed565b820191906000526020600020905b8154815290600101906020018083116103d057829003601f168201915b5050505050905082565b6002546040516331a9108f60e11b815261ffff831660048201526060918291829182916000916001600160a01b031690636352211e90602401602060405180830381865afa15801561044d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610471919061285c565b905060006104828761ffff16610d4c565b9050600061048f83610ebd565b9050600061049c84610ef5565b905060006104a985610f2d565b939a9299509097509195509350505050565b6005602052600090815260409020805481906104d690612828565b80601f016020809104026020016040519081016040528092919081815260200182805461050290612828565b801561054f5780601f106105245761010080835404028352916020019161054f565b820191906000526020600020905b81548152906001019060200180831161053257829003601f168201915b50505050509080600101805461056490612828565b80601f016020809104026020016040519081016040528092919081815260200182805461059090612828565b80156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b5050505050908060020180546105f290612828565b80601f016020809104026020016040519081016040528092919081815260200182805461061e90612828565b801561066b5780601f106106405761010080835404028352916020019161066b565b820191906000526020600020905b81548152906001019060200180831161064e57829003601f168201915b50505050509080600301805461068090612828565b80601f01602080910402602001604051908101604052809291908181526020018280546106ac90612828565b80156106f95780601f106106ce576101008083540402835291602001916106f9565b820191906000526020600020905b8154815290600101906020018083116106dc57829003601f168201915b50505050509080600401805461070e90612828565b80601f016020809104026020016040519081016040528092919081815260200182805461073a90612828565b80156107875780601f1061075c57610100808354040283529160200191610787565b820191906000526020600020905b81548152906001019060200180831161076a57829003601f168201915b5050505050905085565b60008181805b82518110156107ea57600482901b91506107d08382815181106107bc576107bc6127f9565b01602001516001600160f81b031916610f65565b60ff168217915080806107e29061280f565b915050610797565b509392505050565b606060006107ff8361103c565b6002546040516331a9108f60e11b815261ffff8616600482015291925060609182916000916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a919061285c565b9050600061088782610ebd565b9050600061089483610ef5565b905060006108a184610f2d565b905060006108b28a61ffff16610d4c565b9050610989604051806040016040528060058152602001645468656d6560d81b815250600460006108e28e6110aa565b61ffff1661ffff168152602001908152602001600020600101805461090690612828565b80601f016020809104026020016040519081016040528092919081815260200182805461093290612828565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b50505050506111a3565b6040518060400160405280600381526020016201016160ed1b8152506109cd6040518060400160405280600681526020016514dd185ad95960d21b815250876111a3565b6040518060400160405280600381526020016201016160ed1b815250610a1160405180604001604052806006815260200165109d5c9b995960d21b815250886111a3565b6040518060400160405280600381526020016201016160ed1b815250610a6c6040518060400160405280601981526020017f436f6d62696e656420486f757273206f66205374616b696e6700000000000000815250896111a3565b6040518060400160405280600381526020016201016160ed1b815250610aae6040518060400160405280600481526020016352616e6b60e01b8152508a6111a3565b604051602001610ac699989796959493929190612895565b60408051601f19818403018152828201909152601082526f7b20226e616d65223a2022504f48202360801b60208301529750610b0f610b068c60016129a7565b61ffff166111cf565b6040518060400160405280600981526020016801134b6b0b3b2911d160bd1b815250610b3a8b611262565b6040518060400160405280600381526020016201016160ed1b8152506040518060600160405280602c81526020016130c0602c91396040518060400160405280600381526020016201016160ed1b8152508d604051806040016040528060018152602001607d60f81b815250604051602001610bbe999897969594939291906129c9565b604051602081830303815290604052955085604051602001610be09190612ac6565b60405160208183030381529060405298505050505050505050919050565b610c06610cf2565b610c1060006113b5565b565b610c1a610cf2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60036020528160005260406000208181548110610c5857600080fd5b6000918252602090912001546001600160a01b03169150829050565b610c7c610cf2565b6001600160a01b038116610ce65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610cef816113b5565b50565b6000546001600160a01b03163314610c105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cdd565b6001546002546040516331a9108f60e11b815260048101849052606092610eb7926001600160a01b039182169263246828179290911690636352211e90602401602060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd919061285c565b600160009054906101000a90046001600160a01b03166001600160a01b031663a93959c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e449190612b04565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015b602060405180830381865afa158015610e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb29190612b04565b6111cf565b92915050565b6001546040516342cd30f560e01b81526001600160a01b038381166004830152606092610eb7929116906342cd30f590602401610e71565b600154604051631a6f855b60e01b81526001600160a01b038381166004830152606092610eb792911690631a6f855b90602401610e71565b60015460405163a5d9ff1f60e01b81526001600160a01b038381166004830152606092610eb79291169063a5d9ff1f90602401610e71565b6000600360fc1b6001600160f81b0319831610801590610f935750603960f81b6001600160f81b0319831611155b15610fa757610eb7603060f884901c612b1d565b604160f81b6001600160f81b0319831610801590610fd35750602360f91b6001600160f81b0319831611155b15610ff3576041610fe960f884901c600a612b36565b610eb79190612b1d565b606160f81b6001600160f81b031983161080159061101f5750603360f91b6001600160f81b0319831611155b15611035576061610fe960f884901c600a612b36565b5060f81c90565b6060600061104983611405565b9050600061105684611458565b90506000818360800151604051806040016040528060068152602001651e17b9bb339f60d11b81525060405160200161109193929190612b4f565b60408051601f1981840301815291905295945050505050565b6001546002546040516331a9108f60e11b815261ffff8416600482015260009283926001600160a01b039182169263854c08f09290911690636352211e90602401602060405180830381865afa158015611108573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112c919061285c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111949190612b04565b905061034b81600f60646114e5565b606082826040516020016111b8929190612b92565b604051602081830303815290604052905092915050565b606060006111dc836115cf565b600101905060008167ffffffffffffffff8111156111fc576111fc612505565b6040519080825280601f01601f191660200182016040528015611226576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461123057509392505050565b6060815160000361128157505060408051602081019091526000815290565b60006040518060600160405280604081526020016133fd60409139905060006003845160026112b09190612c20565b6112ba9190612c33565b6112c5906004612c47565b67ffffffffffffffff8111156112dd576112dd612505565b6040519080825280601f01601f191660200182016040528015611307576020820181803683370190505b509050600182016020820185865187015b80821015611373576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611318565b505060038651066001811461138f57600281146113a2576113aa565b603d6001830353603d60028303536113aa565b603d60018303535b509195945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6114376040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6000611442836116a7565b905061144d83611755565b608082015292915050565b6060600061146583611405565b9050600061147284611e2d565b82604001516040518060c00160405280609f81526020016130ec609f913984606001516040518060400160405280601a81526020016000805160206133dd8339815191528152506040516020016114cd959493929190612c5e565b60408051601f19818403018152919052949350505050565b600080806000198587098587029250828110838203039150508060000361151f5783828161151557611515612c0a565b049250505061034b565b8084116115665760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610cdd565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061160e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061163a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061165857662386f26fc10000830492506010015b6305f5e1008310611670576305f5e100830492506008015b612710831061168457612710830492506004015b60648310611696576064830492506002015b600a8310610eb75760010192915050565b6116d96040518060a0016040528060608152602001606081526020016060815260200160608152602001606081525090565b6040805180820190915260038152621a989960e91b602082015260006116fe84611ee7565b9050600061170a611fba565b9050600061171c610b068760016129a7565b6040805160a081018252958652602080870195909552858101939093526060850152508051918201905260008152608082015292915050565b6002546040516331a9108f60e11b815261ffff831660048201526060916000916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156117a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cb919061285c565b60408051602081019091526000808252919250906117f46117eb84612175565b6000600a610283565b905060006118058661ffff16610d4c565b9050600061181285610ebd565b9050600061181f86610ef5565b9050600061182c87610f2d565b9050856040518060400160405280601081526020016f1e3a32bc3a103c1e91191811103c9e9160811b815250611866605061ffff166111cf565b6040518060600160405280602481526020016134636024913961188960006111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b8152506118c76118c28c60026008610283565b61218b565b6040518060400160405280601981526020017f223e736b65707469633c2f747370616e3e203c747370616e3e000000000000008152508c6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611933929190612cc9565b60408051601f1981840301815290829052611958999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b60208301529650869061199b610b06605060286129a7565b604051806060016040528060248152602001613463602491396119be60016111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b8152506119f76118c28c60026008610283565b6040518060400160405280601881526020017f223e7374616b65643c2f747370616e3e203c747370616e3e00000000000000008152508a6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611a63929190612cc9565b60408051601f1981840301815290829052611a88999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611acb610b06605060286129a7565b60405180606001604052806024815260200161346360249139611aee60026111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611b276118c28c60026008610283565b6040518060400160405280601881526020017f223e6275726e65643c2f747370616e3e203c747370616e3e0000000000000000815250896040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611b93929190612cc9565b60408051601f1981840301815290829052611bb8999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611bfb610b06605060286129a7565b60405180606001604052806024815260200161346360249139611c1e60036111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611c576118c28c60026008610283565b6040518060400160405280601a81526020017f223e74696d65202868293c2f747370616e3e203c747370616e3e000000000000815250886040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611cc3929190612cc9565b60408051601f1981840301815290829052611ce8999897969594939291602001612cf8565b60408051601f19818403018152828201909152601082526f1e3a32bc3a103c1e91191811103c9e9160811b602083015296508690611d2a610b066050806129a7565b60405180606001604052806024815260200161346360249139611d4d60046111cf565b6040518060400160405280601081526020016f111f1e3a39b830b71031b630b9b99e9160811b815250611d866118c28c60026008610283565b60405180604001604052806016815260200175111f3930b7359e17ba39b830b71f101e3a39b830b71f60511b8152508b6040518060400160405280601a81526020016000805160206133dd833981519152815250604051602001611deb929190612cc9565b60408051601f1981840301815290829052611e10999897969594939291602001612cf8565b60408051601f198184030181529190529998505050505050505050565b60606000611e3a83611405565b905060006040518060a00160405280606c8152602001613487606c9139604051806040016040528060078152602001661e39ba3cb6329f60c91b8152508360200151604051806040016040528060088152602001671e17b9ba3cb6329f60c11b8152506040518060600160405280604081526020016134f360409139604051806101e001604052806101b681526020016132276101b691396040516020016114cd96959493929190612db9565b6060600060046000611ef8856110aa565b61ffff16815260208101919091526040016000908120549150611f1c826078612246565b611f27836060612246565b611f32846048612246565b604051602001611f4493929190612e38565b604051602081830303815290604052905080611f61836030612246565b611f6c846018612246565b611f77856000612246565b611f82866048612246565b611f8d876030612246565b611f98886018612246565b611fa3896000612246565b6040516020016114cd989796959493929190612ed6565b606060006040518060a001604052806077815260200161318b60779139604051602001611fe79190613031565b604051602081830303815290604052905060005b600c61ffff82161161216f5760008161ffff166007036120195750600f5b826040518060400160405280600e81526020016d078e0c2e8d040d2c87a44e0c2e8d60931b81525061204e8461ffff166111cf565b60405180606001604052806026815260200161343d6026913961208f8561207688602861304d565b61ffff166120849190612c20565b610eb2906050612c20565b6040518060400160405280600c81526020016b081a0c08881d1bcf489b4c0b60a21b8152506040516020016120c996959493929190612db9565b60408051601f198184030181529190529250826120eb8261207685602861304d565b60405180606001604052806025815260200161320260259139612112610b068660026129a7565b6040518060400160405280600b81526020016a3991179f1e17b830ba341f60a91b81525060405160200161214a959493929190612c5e565b604051602081830303815290604052925050808061216790613073565b915050611ffb565b50919050565b6060610eb76001600160a01b03831660146122b6565b60606000600461219a84610791565b6121a49190613094565b9050806000036121cf57505060408051808201909152600381526274776f60e81b6020820152919050565b806001036121fa575050604080518082019091526005815264746872656560d81b6020820152919050565b806002036122245750506040805180820190915260048152633337bab960e11b6020820152919050565b50506040805180820190915260048152636669766560e01b6020820152919050565b6060612270612267612259846010612b36565b60ff1685901c60ff16612452565b60026004610283565b61228f612267612281856008612b36565b60ff1686901c60ff16612452565b6122a46122678560ff1687901c60ff16612452565b6040516020016111b893929190612b4f565b606060006122c5836002612c47565b6122d0906002612c20565b67ffffffffffffffff8111156122e8576122e8612505565b6040519080825280601f01601f191660200182016040528015612312576020820181803683370190505b509050600360fc1b8160008151811061232d5761232d6127f9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061235c5761235c6127f9565b60200101906001600160f81b031916908160001a9053506000612380846002612c47565b61238b906001612c20565b90505b6001811115612403576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123bf576123bf6127f9565b1a60f81b8282815181106123d5576123d56127f9565b60200101906001600160f81b031916908160001a90535060049490941c936123fc816130a8565b905061238e565b50831561034b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cdd565b6060610eb78261246184612469565b6001016122b6565b600080608083901c156124815760809290921c916010015b604083901c156124965760409290921c916008015b602083901c156124ab5760209290921c916004015b601083901c156124c05760109290921c916002015b600883901c15610eb75760010192915050565b6001600160a01b0381168114610cef57600080fd5b6000602082840312156124fa57600080fd5b813561034b816124d3565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261252c57600080fd5b813567ffffffffffffffff8082111561254757612547612505565b604051601f8301601f19908116603f0116810190828211818310171561256f5761256f612505565b8160405283815286602085880101111561258857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156125bd57600080fd5b833567ffffffffffffffff8111156125d457600080fd5b6125e08682870161251b565b9660208601359650604090950135949350505050565b60005b838110156126115781810151838201526020016125f9565b50506000910152565b600081518084526126328160208601602086016125f6565b601f01601f19169290920160200192915050565b60208152600061034b602083018461261a565b803561ffff8116811461266b57600080fd5b919050565b60006020828403121561268257600080fd5b61034b82612659565b8281526040602082015260006126a4604083018461261a565b949350505050565b6080815260006126bf608083018761261a565b82810360208401526126d1818761261a565b905082810360408401526126e5818661261a565b905082810360608401526126f9818561261a565b979650505050505050565b60a08152600061271760a083018861261a565b8281036020840152612729818861261a565b9050828103604084015261273d818761261a565b90508281036060840152612751818661261a565b90508281036080840152612765818561261a565b98975050505050505050565b60006020828403121561278357600080fd5b813567ffffffffffffffff81111561279a57600080fd5b6126a48482850161251b565b600080604083850312156127b957600080fd5b6127c283612659565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610eb757610eb76127d0565b634e487b7160e01b600052603260045260246000fd5b600060018201612821576128216127d0565b5060010190565b600181811c9082168061283c57607f821691505b60208210810361216f57634e487b7160e01b600052602260045260246000fd5b60006020828403121561286e57600080fd5b815161034b816124d3565b6000815161288b8185602086016125f6565b9290920192915050565b6f226174747269627574657322203a205b60801b815289516000906128c1816010850160208f016125f6565b8a516128d68160108487010160208f016125f6565b8a516128ed81601084868901010160208f016125f6565b8a519285019091010190612908816010840160208d016125f6565b885161291d8160108486010160208d016125f6565b885161293481601084868801010160208d016125f6565b88519390920101019061294e816010840160208a016125f6565b85516129638160108486010160208a016125f6565b855161297a81601084868801010160208a016125f6565b61299460108284868801010101605d60f81b815260010190565b9f9e505050505050505050505050505050565b61ffff8181168382160190808211156129c2576129c26127d0565b5092915050565b60008a516129db818460208f016125f6565b8a516129ed8183860160208f016125f6565b630111016160e51b918401019081528951612a0f816004840160208e016125f6565b7f22646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000600492909101918201528851612a4d81601f840160208d016125f6565b601160f91b601f92909101918201528751612a6f816020808501908c016125f6565b8751612a848160208486010160208c016125f6565b8751929091010190612a9d816020808501908a016125f6565b612ab5612aaf60208385010188612879565b86612879565b9d9c50505050505050505050505050565b7519185d184e985c1c1b1a58d85d1a5bdb8bda9cdbdb8b60521b815260008251612af78160168501602087016125f6565b9190910160160192915050565b600060208284031215612b1657600080fd5b5051919050565b60ff8281168282160390811115610eb757610eb76127d0565b60ff8181168382160190811115610eb757610eb76127d0565b60008451612b618184602089016125f6565b845190830190612b758183602089016125f6565b8451910190612b888183602088016125f6565b0195945050505050565b713d90113a3930b4ba2fba3cb83291101d101160711b81528251600090612bc08160128501602088016125f6565b6d111610113b30b63ab291101d101160911b6012918401918201528351612bee8160208085019088016125f6565b6222207d60e81b60209290910191820152602301949350505050565b634e487b7160e01b600052601260045260246000fd5b80820180821115610eb757610eb76127d0565b600082612c4257612c42612c0a565b500490565b8082028115828204841417610eb757610eb76127d0565b60008651612c70818460208b016125f6565b865190830190612c84818360208b016125f6565b8651910190612c97818360208a016125f6565b8551910190612caa8183602089016125f6565b8451910190612cbd8183602088016125f6565b01979650505050505050565b60008351612cdb8184602088016125f6565b835190830190612cef8183602088016125f6565b01949350505050565b60008a51612d0a818460208f016125f6565b8a51612d1c8183860160208f016125f6565b8a519184010190612d31818360208e016125f6565b8951612d438183850160208e016125f6565b8951929091010190612d59818360208c016125f6565b8751612d6b8183850160208c016125f6565b8751929091010190612d81818360208a016125f6565b8551612d938183850160208a016125f6565b8551929091010190612da98183602088016125f6565b019b9a5050505050505050505050565b600087516020612dcc8285838d016125f6565b885191840191612ddf8184848d016125f6565b8851920191612df18184848c016125f6565b8751920191612e038184848b016125f6565b8651920191612e158184848a016125f6565b8551920191612e2781848489016125f6565b919091019998505050505050505050565b692e62677b66696c6c3a2360b01b815260008451612e5d81600a8501602089016125f6565b6d3b7d2e746578747b66696c6c3a2360901b600a918401918201528451612e8b8160188401602089016125f6565b7f3b666f6e743a3330707820636f75726965723b7d2e74776f7b66696c6c3a2300601892909101918201528351612ec98160378401602088016125f6565b0160370195945050505050565b60008951612ee8818460208e016125f6565b6e3b7d2e74687265657b66696c6c3a2360881b9083019081528951612f1481600f840160208e016125f6565b6d3b7d2e666f75727b66696c6c3a2360901b600f92909101918201528851612f4381601d840160208d016125f6565b6d3b7d2e666976657b66696c6c3a2360901b601d92909101918201528751612f7281602b840160208c016125f6565b613b7d60f01b602b92909101918201526a2e7369787b66696c6c3a2360a81b602d820152613022613014612aaf612ffa612ff4612fd9612fd3612fb8603889018f612879565b6e3b7d2e736576656e7b66696c6c3a2360881b8152600f0190565b8c612879565b6e3b7d2e65696768747b66696c6c3a2360881b8152600f0190565b89612879565b6d3b7d2e6e696e657b66696c6c3a2360901b8152600e0190565b613b7d60f01b815260020190565b9b9a5050505050505050505050565b600082516130438184602087016125f6565b9190910192915050565b61ffff81811683821602808216919082811461306b5761306b6127d0565b505092915050565b600061ffff80831681810361308a5761308a6127d0565b6001019392505050565b6000826130a3576130a3612c0a565b500690565b6000816130b7576130b76127d0565b50600019019056fe226465736372697074696f6e223a22492061696e2774207374616b696e67207468697320736869742e2e2e223c7465787420783d2232302220793d2234302220636c6173733d2274657874223e3c746578745061746820687265663d22237061746854223e3c747370616e20636c6173733d227468726565223e207e203c2f747370616e3e3c747370616e20636c6173733d2266697665223e24203c2f747370616e3e3c747370616e3e2e2f68696265726e6174652e7368202d63203c2f747370616e3e3c747370616e3e3c706174682069643d227061746854223e3c616e696d617465206174747269627574654e616d653d2264222066726f6d3d226d302c34302068302220746f3d226d302c34302068383030222066696c6c3d22667265657a6522206475723d2233732220626567696e3d22307322202f3e3c2f706174683e2068383030222066696c6c3d22667265657a6522206475723d2233732220626567696e3d223c7465787420636c6173733d227465787422206f7061636974793d2231223e3c746578745061746820687265663d22237061746837223e3c747370616e20636c6173733d2274776f2220783d2233323622203e2d5e2a2a5e2d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d22237061746838223e3c747370616e20636c6173733d2274687265652220783d22333234223eca95e28c92e1b4a5e28c92ca942e7a5a3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d22237061746839223e3c747370616e20636c6173733d22666f75722220783d22333138223e7b2d223a222d7d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c7465787420636c6173733d2274657874223e3c746578745061746820687265663d2223706174683130223e3c747370616e20636c6173733d22666976652220783d22333138223e2d222d2d2d222d3c2f747370616e3e3c2f74657874506174683e3c2f746578743e3c2f747370616e3e3c2f74657874506174683e3c2f746578743e0000000000004142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f223e3c616e696d617465206174747269627574654e616d653d2264222066726f6d3d226d302c2220636c6173733d2274657874223e3c746578745061746820687265663d2223706174683c7376672077696474683d2235313222206865696768743d223531322220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e3c6720636c6173733d22626f78223e3c726563742077696474683d223130302522206865696768743d22313030252220636c6173733d226267222f3e3c2f673ea2646970667358221220d4ddfe8631f5eef37795a2abfbb8829e8039bc8c22bb576ad29c24978493197864736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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