ETH Price: $3,352.05 (+4.98%)

Token

Consensus Layer Bear (CLB)

Overview

Max Total Supply

3,675 CLB

Holders

1,846

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
1 CLB
0x45a1fe688c01ccfd4606ac31d1f7b10fe2aa875e
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

3675 Consensus Layer Bears to celebrate the Merge (EIP3675). Holders of both an Execution Layer Bear + a Consensus Layer Bear can mint a Merge bear. All royalties go to Ethereum Core Developers via the Protocol Guild.

Contract Source Code Verified (Exact Match)

Contract Name:
ConsensusLayerBear

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : ConsensusLayerBear.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ERC4883Composer} from "./ERC4883Composer.sol";
import {IERC4883} from "./IERC4883.sol";
import {ERC4883} from "./ERC4883.sol";
import {Colours} from "./Colours.sol";
import {EthereumClients} from "./EthereumClients.sol";
import {Base64} from "@openzeppelin/contracts/utils//Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC721Metadata} from "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import {ERC721Holder} from "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import {IClientBear} from "./IClientBear.sol";

// ░█▀▀░█▀█░█▀█░█▀▀░█▀▀░█▀█░█▀▀░█░█░█▀▀░░░█░░░█▀█░█░█░█▀▀░█▀▄░░░█▀▄░█▀▀░█▀█░█▀▄
// ░█░░░█░█░█░█░▀▀█░█▀▀░█░█░▀▀█░█░█░▀▀█░░░█░░░█▀█░░█░░█▀▀░█▀▄░░░█▀▄░█▀▀░█▀█░█▀▄
// ░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀░▀░░▀░░▀▀▀░▀░▀░░░▀▀░░▀▀▀░▀░▀░▀░▀
contract ConsensusLayerBear is IClientBear, ERC4883Composer, Colours, EthereumClients, ERC721Holder {
    /// ERRORS

    // Thrown when Merge Bear already set
    error MergeBearAlreadySet();

    // Thrown when not the Merge Bear
    error NotMergeBear();

    // Thrown when JWT already set
    error JwtAlreadySet();

    /// EVENTS

    mapping(uint256 => uint256) private _jwt;
    address private _mergeBear;

    constructor() ERC4883Composer("Consensus Layer Bear", "CLB", 0.00042 ether, 119, 3675) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override (ERC4883, IERC165) returns (bool) {
        return interfaceId == type(IClientBear).interfaceId || super.supportsInterface(interfaceId);
    }

    function setMergeBear(address mergeBear_) public onlyOwner {
        if (_mergeBear != address(0)) {
            revert MergeBearAlreadySet();
        }

        _mergeBear = mergeBear_;
    }

    function setJwt(uint256 tokenId, uint256 clientTokenId) public {
        if (msg.sender != _mergeBear) {
            revert NotMergeBear();
        }

        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        if (_jwt[tokenId] != 0) {
            revert JwtAlreadySet();
        }

        _jwt[tokenId] = clientTokenId;
    }

    function clientId(uint256 tokenId) public view returns (uint8) {
        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        return _generateClientId(tokenId);
    }

    function colourId(uint256 tokenId) public view returns (uint8) {
        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        return _generateColourId(tokenId);
    }

    function _generateDescription(uint256 tokenId) internal view virtual override returns (string memory) {
        return string.concat("Consensus Layer Bear.  Bear #", Strings.toString(tokenId), ".  ERC4883 composable NFT");
    }

    function _generateAttributes(uint256 tokenId) internal view virtual override returns (string memory) {
        string memory attributes = string.concat(
            '{"trait_type": "Client", "value": "',
            _generateClient(tokenId),
            '"}, {"trait_type": "Ethereum Logo", "value": "',
            _generateColour(tokenId),
            '"}, {"trait_type": "Status", "value": "',
            _generateStatus(tokenId),
            '"}',
            _generateAccessoryAttributes(tokenId),
            _generateBackgroundAttributes(tokenId)
        );

        return string.concat('"attributes": [', attributes, "]");
    }

    function _generateSVG(uint256 tokenId) internal view virtual override returns (string memory) {
        string memory svg = string.concat(
            '<svg id="consensus-layer-bear" width="500" height="500" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">',
            _generateBackground(tokenId),
            _generateSVGBody(tokenId),
            _generateAccessories(tokenId),
            "</svg>"
        );

        return svg;
    }

    function _generateSVGBody(uint256 tokenId) internal view virtual override returns (string memory) {
        string memory colourValue = _generateColour(tokenId);

        return string.concat(
            '<g id="consensus-layer-bear-',
            Strings.toString(tokenId),
            '">' "<desc>Consensus Layer Bear</desc>"
            '<g stroke="black" stroke-width="10" stroke-linecap="round" stroke-linejoin="round">'
            '<path d="M141.746 364.546C88.0896 338.166 67.7686 339.117 54.9706 378.618C58.0112 418.292 64.3272 429.537 80.7686 437.25C104.636 448.709 170.876 432.772 247.283 422.005C354.846 435.377 424.823 445.054 438.422 437.25C458.371 424.569 466.499 414.297 464.22 378.618C445.099 351.034 433.356 339.684 403.243 356.338L365.719 336.403L141.746 364.546Z" fill="#F8F8F8" />'
            '<path d="M289.498 101.876C331.996 80.7832 329.868 101.341 328.195 149.954L289.498 101.876Z" fill="#DCDCDC" />'
            '<path d="M166.371 134.71C159.627 93.6161 168.829 83.778 208.586 96.0128L166.371 134.71Z" fill="#DCDCDC" />'
            '<path d="M328.195 149.954C287.152 66.6969 206.241 66.6969 162.853 142.918C142.529 198.634 141.272 222.583 172.234 241.419C236.394 285.393 269.181 279.975 334.058 241.419C342.266 228.521 349.3 182.978 328.195 149.954Z" fill="#F8F8F8" />'
            '<path d="M182.788 416.142L172.234 319.986H305.915V425.523C267.207 438.31 226.501 448.015 182.788 416.142Z" fill="#DCDCDC" />'
            '<path d="M203.895 438.422C188.866 441.956 126.168 466.883 112.43 429.041C113.412 402.012 115.628 378.479 120.983 355.165C128.972 320.386 143.947 286.097 172.234 241.42C237.262 281.898 267.857 272.611 332.885 242.592C361.052 282.666 377.85 317.581 377.663 346.957C377.6 356.842 380.012 367.162 377.663 378.618C377.663 378.618 373.927 400.898 373.927 429.041C373.927 457.185 297.706 465.393 289.498 429.041C281.289 392.69 286.505 410.486 297.706 346.957C263.52 339.96 240.669 340.596 195.687 346.957C202.359 358.413 218.925 434.889 203.895 438.422Z" fill="#F8F8F8" />'
            '<path d="M244.5 271.287C324.5 271.287 334 160.882 240 160.882C146 160.882 164.5 271.287 244.5 271.287Z" fill="#DCDCDC" />'
            '<path d="M215.622 195.687C226.175 185.133 255.491 189.824 260.182 198.032C248.455 209.758 227.348 207.413 215.622 195.687Z" fill="black" />'
            '<path d="M221.485 228.521C242.828 237.607 245.499 236.723 263.7 228.521" fill="none" />' "</g>"
            '<circle cx="194.788" cy="165.645" r="10" fill="black"/>'
            '<circle cx="286.599" cy="166.99" r="10" fill="black"/>'
            // Ethereum Logo
            '<g stroke="',
            colourValue,
            '" stroke-width="2.28109" stroke-linecap="round" stroke-linejoin="round" fill="none">'
            '<path d="M286.732 276L286.367 277.242V313.288L286.732 313.653L303.464 303.763L286.732 276Z" />'
            '<path d="M286.732 276L270 303.763L286.732 313.653V296.158V276Z" />'
            '<path d="M286.732 313.653L303.464 303.763L286.732 296.158V313.653Z" />'
            '<path d="M270 303.763L286.732 313.653V296.158L270 303.763Z" />' "</g>" '<g stroke="',
            colourValue,
            '" stroke-width="2.28109" stroke-linecap="round" stroke-linejoin="round" fill="none">'
            '<path d="M286.732 330.514V316.821L270 306.936L286.732 330.514Z" />'
            '<path d="M286.732 316.821L286.526 317.072V329.913L286.732 330.514L303.474 306.936L286.732 316.821Z" />'
            "</g>" "</g>"
        );

        // Execution Layer Bear SVG
        // <svg width="500" height="500" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
        // <g stroke="black" stroke-width="10" stroke-linecap="round" stroke-linejoin="round">
        // <path d="M141.746 364.546C88.0896 338.166 67.7686 339.117 54.9706 378.618C58.0112 418.292 64.3272 429.537 80.7686 437.25C104.636 448.709 170.876 432.772 247.283 422.005C354.846 435.377 424.823 445.054 438.422 437.25C458.371 424.569 466.499 414.297 464.22 378.618C445.099 351.034 433.356 339.684 403.243 356.338L365.719 336.403L141.746 364.546Z" fill="#F8F8F8" />
        // <path d="M289.498 101.876C331.996 80.7832 329.868 101.341 328.195 149.954L289.498 101.876Z" fill="#DCDCDC" />
        // <path d="M166.371 134.71C159.627 93.6161 168.829 83.778 208.586 96.0128L166.371 134.71Z" fill="#DCDCDC" />
        // <path d="M328.195 149.954C287.152 66.6969 206.241 66.6969 162.853 142.918C142.529 198.634 141.272 222.583 172.234 241.419C236.394 285.393 269.181 279.975 334.058 241.419C342.266 228.521 349.3 182.978 328.195 149.954Z" fill="#F8F8F8" />
        // <path d="M182.788 416.142L172.234 319.986H305.915V425.523C267.207 438.31 226.501 448.015 182.788 416.142Z" fill="#DCDCDC" />
        // <path d="M203.895 438.422C188.866 441.956 126.168 466.883 112.43 429.041C113.412 402.012 115.628 378.479 120.983 355.165C128.972 320.386 143.947 286.097 172.234 241.42C237.262 281.898 267.857 272.611 332.885 242.592C361.052 282.666 377.85 317.581 377.663 346.957C377.6 356.842 380.012 367.162 377.663 378.618C377.663 378.618 373.927 400.898 373.927 429.041C373.927 457.185 297.706 465.393 289.498 429.041C281.289 392.69 286.505 410.486 297.706 346.957C263.52 339.96 240.669 340.596 195.687 346.957C202.359 358.413 218.925 434.889 203.895 438.422Z" fill="#F8F8F8" />
        // <path d="M244.5 271.287C324.5 271.287 334 160.882 240 160.882C146 160.882 164.5 271.287 244.5 271.287Z" fill="#DCDCDC" />
        // <path d="M215.622 195.687C226.175 185.133 255.491 189.824 260.182 198.032C248.455 209.758 227.348 207.413 215.622 195.687Z" fill="black" />
        // <path d="M221.485 228.521C242.828 237.607 245.499 236.723 263.7 228.521" fill="none" />
        // </g>
        // <circle cx="194.788" cy="165.645" r="10" fill="black"/>
        // <circle cx="286.599" cy="166.99" r="10" fill="black"/>
        // </svg>

        // Ethereum Logo SVG
        // <svg width="500" height="500" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg">
        // <g stroke="#FFC0CB" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" fill="none">
        // <path d="M287.216 286L286.968 286.843V311.308L287.216 311.556L298.572 304.843L287.216 286Z" />
        // <path d="M287.216 286L275.86 304.843L287.216 311.556V299.681V286Z" />
        // <path d="M287.216 313.706L287.076 313.877V322.592L287.216 323L298.579 306.997L287.216 313.706Z" />
        // <path d="M287.216 323V313.706L275.86 306.997L287.216 323Z" />
        // <path d="M287.216 311.556L298.572 304.843L287.216 299.681V311.556Z" />
        // <path d="M275.86 304.843L287.216 311.556V299.681L275.86 304.843Z" />
        // </g>
        // </svg>
    }

    function _generateColourId(uint256 tokenId) internal view returns (uint8) {
        uint256 id = uint256(keccak256(abi.encodePacked("Bear Colour", address(this), Strings.toString(tokenId))));
        return uint8(id % colours.length);
    }

    function _generateClientId(uint256 tokenId) internal view returns (uint8) {
        uint256 id = uint256(
            keccak256(abi.encodePacked("Consensus Layer Client Diversity", address(this), Strings.toString(tokenId)))
        );
        return uint8(id % consensusLayerClients.length);
    }

    function _generateStatus(uint256 tokenId) internal view returns (string memory) {
        string memory status = "Bellatrix";

        if (_jwt[tokenId] != 0) {
            status = "Merge Ready";
        }

        return status;
    }

    function _generateClient(uint256 tokenId) internal view returns (string memory) {
        return consensusLayerClients[_generateClientId(tokenId)];
    }

    function _generateColour(uint256 tokenId) internal view returns (string memory) {
        return colours[_generateColourId(tokenId)];
    }

    function _generateTokenName(uint256 tokenId) internal view virtual override returns (string memory) {
        return string.concat(_generateClient(tokenId), " Bear");
    }
}

//  ______________________
// < Consensus Layer Bear >
//  ----------------------
//         \   ^__^
//          \  (oo)\_______
//             (__)\       )\/\
//                 ||----w |

File 2 of 22 : ERC4883Composer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ERC4883} from "./ERC4883.sol";
import {IERC4883} from "./IERC4883.sol";
import {Base64} from "@openzeppelin/contracts/utils//Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC721Metadata} from "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import {ERC721Holder} from "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";

abstract contract ERC4883Composer is ERC4883 {
    /// ERRORS

    /// @notice Thrown when not the accessory owner
    error NotAccessoryOwner();

    /// @notice Thrown when accessory already added
    error AccessoryAlreadyAdded();

    /// @notice Thrown when accessory not found
    error AccessoryNotFound();

    /// @notice Thrown when maximum number of accessories already added
    error MaximumAccessories();

    /// @notice Thrown when not the background owner
    error NotBackgroundOwner();

    /// @notice Thrown when background already added
    error BackgroundAlreadyAdded();

    /// @notice Thrown when background already removed
    error BackgroundAlreadyRemoved();

    /// @notice Thrown when token doesn't implement ERC4883
    error NotERC4883();

    /// EVENTS

    /// @notice Emitted when accessory added
    event AccessoryAdded(uint256 tokenId, address accessoryToken, uint256 accessoryTokenId);

    /// @notice Emitted when accessory removed
    event AccessoryRemoved(uint256 tokenId, address accessoryToken, uint256 accessoryTokenId);

    /// @notice Emitted when background added
    event BackgroundAdded(uint256 tokenId, address backgroundToken, uint256 backgroundTokenId);

    /// @notice Emitted when background removed
    event BackgroundRemoved(uint256 tokenId, address backgroundToken, uint256 backgroundTokenId);

    struct Token {
        address tokenAddress;
        uint256 tokenId;
    }

    struct Composable {
        Token background;
        Token[] accessories;
    }

    uint256 constant MAX_ACCESSORIES = 3;

    mapping(uint256 => Composable) public composables;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 price_,
        uint256 ownerAllocation_,
        uint256 supplyCap_
    )
        ERC4883(name_, symbol_, price_, ownerAllocation_, supplyCap_)
    {}

    function _generateTokenName(address tokenAddress) internal view virtual returns (string memory) {
        string memory tokenName = "";

        if (tokenAddress != address(0)) {
            IERC721Metadata token = IERC721Metadata(tokenAddress);

            if (token.supportsInterface(type(IERC721Metadata).interfaceId)) {
                tokenName = token.name();
            }
        }

        return tokenName;
    }

    function _generateAccessoryAttributes(uint256 tokenId) internal view virtual returns (string memory) {
        string memory attributes = "";

        string memory tokenName;

        uint256 accessoryCount = composables[tokenId].accessories.length;
        for (uint256 index = 0; index < accessoryCount;) {
            tokenName = _generateTokenName(composables[tokenId].accessories[index].tokenAddress);

            if (bytes(tokenName).length != 0) {
                attributes = string.concat(
                    attributes,
                    ', {"trait_type": "Accessory',
                    Strings.toString(index + 1),
                    '", "value": "',
                    tokenName,
                    '"}'
                );
            }

            unchecked {
                ++index;
            }
        }

        return attributes;
    }

    function _generateBackgroundAttributes(uint256 tokenId) internal view virtual returns (string memory) {
        string memory attributes = "";

        string memory tokenName = _generateTokenName(composables[tokenId].background.tokenAddress);

        if (bytes(tokenName).length != 0) {
            attributes = string.concat(', {"trait_type": "Background", "value": "', tokenName, '"}');
        }

        return attributes;
    }

    function _generateBackground(uint256 tokenId) internal view virtual returns (string memory) {
        string memory background = "";

        if (composables[tokenId].background.tokenAddress != address(0)) {
            background = IERC4883(composables[tokenId].background.tokenAddress).renderTokenById(
                composables[tokenId].background.tokenId
            );
        }

        return background;
    }

    function _generateAccessories(uint256 tokenId) internal view virtual returns (string memory) {
        string memory accessories = "";

        uint256 accessoryCount = composables[tokenId].accessories.length;
        for (uint256 index = 0; index < accessoryCount;) {
            accessories = string.concat(
                accessories,
                IERC4883(composables[tokenId].accessories[index].tokenAddress).renderTokenById(
                    composables[tokenId].accessories[index].tokenId
                )
            );

            unchecked {
                ++index;
            }
        }

        return accessories;
    }

    function renderTokenById(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        return string.concat(_generateBackground(tokenId), _generateSVGBody(tokenId), _generateAccessories(tokenId));
    }

    function addAccessory(uint256 tokenId, address accessoryTokenAddress, uint256 accessoryTokenId) public {
        address tokenOwner = ownerOf(tokenId);
        if (tokenOwner != msg.sender) {
            revert NotTokenOwner();
        }

        // check for maximum accessories
        uint256 accessoryCount = composables[tokenId].accessories.length;

        if (accessoryCount == MAX_ACCESSORIES) {
            revert MaximumAccessories();
        }

        IERC4883 accessoryToken = IERC4883(accessoryTokenAddress);

        if (!accessoryToken.supportsInterface(type(IERC4883).interfaceId)) {
            revert NotERC4883();
        }

        if (accessoryToken.ownerOf(accessoryTokenId) != msg.sender) {
            revert NotAccessoryOwner();
        }

        // check if accessory already added
        for (uint256 index = 0; index < accessoryCount;) {
            if (composables[tokenId].accessories[index].tokenAddress == accessoryTokenAddress) {
                revert AccessoryAlreadyAdded();
            }

            unchecked {
                ++index;
            }
        }

        // add accessory
        composables[tokenId].accessories.push(Token(accessoryTokenAddress, accessoryTokenId));

        accessoryToken.safeTransferFrom(tokenOwner, address(this), accessoryTokenId);

        emit AccessoryAdded(tokenId, accessoryTokenAddress, accessoryTokenId);
    }

    function removeAccessory(uint256 tokenId, address accessoryTokenAddress) public {
        address tokenOwner = ownerOf(tokenId);
        if (tokenOwner != msg.sender) {
            revert NotTokenOwner();
        }

        // find accessory
        uint256 accessoryCount = composables[tokenId].accessories.length;
        bool accessoryFound = false;
        uint256 index = 0;
        for (; index < accessoryCount;) {
            if (composables[tokenId].accessories[index].tokenAddress == accessoryTokenAddress) {
                accessoryFound = true;
                break;
            }

            unchecked {
                ++index;
            }
        }

        if (!accessoryFound) {
            revert AccessoryNotFound();
        }

        Token memory accessory = composables[tokenId].accessories[index];

        // remove accessory
        for (uint256 i = index; i < accessoryCount - 1;) {
            composables[tokenId].accessories[i] = composables[tokenId].accessories[i + 1];

            unchecked {
                ++i;
            }
        }
        composables[tokenId].accessories.pop();

        IERC4883 accessoryToken = IERC4883(accessory.tokenAddress);
        accessoryToken.safeTransferFrom(address(this), tokenOwner, accessory.tokenId);

        emit BackgroundRemoved(tokenId, accessory.tokenAddress, accessory.tokenId);
    }

    function addBackground(uint256 tokenId, address backgroundTokenAddress, uint256 backgroundTokenId) public {
        address tokenOwner = ownerOf(tokenId);
        if (tokenOwner != msg.sender) {
            revert NotTokenOwner();
        }

        IERC4883 backgroundToken = IERC4883(backgroundTokenAddress);

        if (!backgroundToken.supportsInterface(type(IERC4883).interfaceId)) {
            revert NotERC4883();
        }

        if (backgroundToken.ownerOf(backgroundTokenId) != msg.sender) {
            revert NotBackgroundOwner();
        }

        if (composables[tokenId].background.tokenAddress != address(0)) {
            revert BackgroundAlreadyAdded();
        }

        composables[tokenId].background = Token(backgroundTokenAddress, backgroundTokenId);

        backgroundToken.safeTransferFrom(tokenOwner, address(this), backgroundTokenId);

        emit BackgroundAdded(tokenId, backgroundTokenAddress, backgroundTokenId);
    }

    function removeBackground(uint256 tokenId) public {
        address tokenOwner = ownerOf(tokenId);
        if (tokenOwner != msg.sender) {
            revert NotTokenOwner();
        }

        Token memory background = composables[tokenId].background;

        if (background.tokenAddress == address(0)) {
            revert BackgroundAlreadyRemoved();
        }

        composables[tokenId].background = Token(address(0), 0);

        IERC4883 backgroundToken = IERC4883(background.tokenAddress);
        backgroundToken.safeTransferFrom(address(this), tokenOwner, background.tokenId);

        emit BackgroundRemoved(tokenId, background.tokenAddress, background.tokenId);
    }
}

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

import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC721} from "@openzeppelin/contracts/interfaces/IERC721.sol";

interface IERC4883 is IERC165, IERC721 {
    function renderTokenById(uint256 id) external view returns (string memory);
}

File 4 of 22 : ERC4883.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC4883} from "./IERC4883.sol";
import {Base64} from "@openzeppelin/contracts/utils//Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";

abstract contract ERC4883 is ERC721, Ownable, IERC4883 {
    /// ERRORS

    /// @notice Thrown when supply cap reached
    error SupplyCapReached();

    /// @notice Thrown when underpaying
    error InsufficientPayment();

    /// @notice Thrown when token doesn't exist
    error NonexistentToken();

    /// @notice Thrown when attempting to call when not the owner
    error NotTokenOwner();

    /// @notice Thrown when owner already minted
    error OwnerAlreadyMinted();

    /// EVENTS

    uint256 public totalSupply;
    uint256 public immutable supplyCap;

    bool private ownerMinted = false;
    uint256 public immutable ownerAllocation;

    uint256 public immutable price;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 price_,
        uint256 ownerAllocation_,
        uint256 supplyCap_
    )
        ERC721(name_, symbol_)
    {
        supplyCap = supplyCap_;
        price = price_;
        ownerAllocation = ownerAllocation_;
    }

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

    function mint() public payable {
        mint(msg.sender);
    }

    function mint(address to) public payable {
        if (msg.value < price) {
            revert InsufficientPayment();
        }
        if (totalSupply >= supplyCap) {
            revert SupplyCapReached();
        }

        _mint(to);
    }

    function ownerMint(address to) public onlyOwner {
        if (ownerMinted) {
            revert OwnerAlreadyMinted();
        }

        uint256 available = ownerAllocation;
        if (totalSupply + ownerAllocation > supplyCap) {
            available = supplyCap - totalSupply;
        }

        for (uint256 index = 0; index < available;) {
            _mint(to);

            unchecked {
                ++index;
            }
        }

        ownerMinted = true;
    }

    function _mint(address to) internal {
        unchecked {
            totalSupply++;
        }

        _safeMint(to, totalSupply);
    }

    function withdraw(address to) public onlyOwner {
        payable(to).transfer(address(this).balance);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        string memory tokenName_ = _generateTokenName(tokenId);
        string memory description = _generateDescription(tokenId);

        string memory image = _generateBase64Image(tokenId);
        string memory attributes = _generateAttributes(tokenId);
        return string.concat(
            "data:application/json;base64,",
            Base64.encode(
                bytes(
                    abi.encodePacked(
                        '{"name":"',
                        tokenName_,
                        '", "description":"',
                        description,
                        '", "image": "data:image/svg+xml;base64,',
                        image,
                        '",',
                        attributes,
                        "}"
                    )
                )
            )
        );
    }

    function _generateTokenName(uint256 tokenId) internal view virtual returns (string memory) {
        return string.concat(name(), " #", Strings.toString(tokenId));
    }

    function _generateDescription(uint256 tokenId) internal view virtual returns (string memory);

    function _generateAttributes(uint256 tokenId) internal view virtual returns (string memory);

    function _generateSVG(uint256 tokenId) internal view virtual returns (string memory);

    function _generateSVGBody(uint256 tokenId) internal view virtual returns (string memory);

    function _generateBase64Image(uint256 tokenId) internal view returns (string memory) {
        return Base64.encode(bytes(_generateSVG(tokenId)));
    }

    function renderTokenById(uint256 tokenId) public view virtual returns (string memory) {
        if (!_exists(tokenId)) {
            revert NonexistentToken();
        }

        return _generateSVGBody(tokenId);
    }
}

File 5 of 22 : Colours.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

contract Colours {
    string[] public colours = [
        "AliceBlue",
        "AntiqueWhite",
        "Aqua",
        "Aquamarine",
        "Azure",
        "Beige",
        "Bisque",
        "Black",
        "BlanchedAlmond",
        "Blue",
        "BlueViolet",
        "Brown",
        "BurlyWood",
        "CadetBlue",
        "Chartreuse",
        "Chocolate",
        "Coral",
        "CornflowerBlue",
        "Cornsilk",
        "Crimson",
        "Cyan",
        "DarkBlue",
        "DarkCyan",
        "DarkGoldenRod",
        "DarkGreen",
        "DarkGrey",
        "DarkKhaki",
        "DarkMagenta",
        "DarkOliveGreen",
        "DarkOrange",
        "DarkOrchid",
        "DarkRed",
        "DarkSalmon",
        "DarkSeaGreen",
        "DarkSlateBlue",
        "DarkSlateGrey",
        "DarkTurquoise",
        "DarkViolet",
        "DeepPink",
        "DeepSkyBlue",
        "DimGrey",
        "DodgerBlue",
        "FireBrick",
        "FloralWhite",
        "ForestGreen",
        "Fuchsia",
        "Gainsboro",
        "GhostWhite",
        "Gold",
        "GoldenRod",
        "Green",
        "GreenYellow",
        "Grey",
        "HoneyDew",
        "HotPink",
        "IndianRed",
        "Indigo",
        "Ivory",
        "Khaki",
        "Lavender",
        "LavenderBlush",
        "LawnGreen",
        "LemonChiffon",
        "LightBlue",
        "LightCoral",
        "LightCyan",
        "LightGoldenRodYellow",
        "LightGreen",
        "LightGrey",
        "LightPink",
        "LightSalmon",
        "LightSeaGreen",
        "LightSkyBlue",
        "LightSlateGrey",
        "LightSteelBlue",
        "LightYellow",
        "Lime",
        "LimeGreen",
        "Linen",
        "Magenta",
        "Maroon",
        "MediumAquaMarine",
        "MediumBlue",
        "MediumOrchid",
        "MediumPurple",
        "MediumSeaGreen",
        "MediumSlateBlue",
        "MediumSpringGreen",
        "MediumTurquoise",
        "MediumVioletRed",
        "MidnightBlue",
        "MintCream",
        "MistyRose",
        "Moccasin",
        "NavajoWhite",
        "Navy",
        "OldLace",
        "Olive",
        "OliveDrab",
        "Orange",
        "OrangeRed",
        "Orchid",
        "PaleGoldenRod",
        "PaleGreen",
        "PaleTurquoise",
        "PaleVioletRed",
        "PapayaWhip",
        "PeachPuff",
        "Peru",
        "Pink",
        "Plum",
        "PowderBlue",
        "Purple",
        "RebeccaPurple",
        "Red",
        "RosyBrown",
        "RoyalBlue",
        "SaddleBrown",
        "Salmon",
        "SandyBrown",
        "SeaGreen",
        "SeaShell",
        "Sienna",
        "Silver",
        "SkyBlue",
        "SlateBlue",
        "SlateGrey",
        "Snow",
        "SpringGreen",
        "SteelBlue",
        "Tan",
        "Teal",
        "Thistle",
        "Tomato",
        "Turquoise",
        "Violet",
        "Wheat",
        "White",
        "WhiteSmoke",
        "Yellow",
        "YellowGreen"
    ];
}

File 6 of 22 : EthereumClients.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

contract EthereumClients {
    string[] executionLayerClients = ["Besu", "Erigon", "Geth", "Nethermind"];
    string[] consensusLayerClients = ["Lighthouse", "Lodestar", "Nimbus", "Prysm", "Teku"];
}

File 7 of 22 : 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 8 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

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

File 9 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 10 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/extensions/IERC721Metadata.sol";

File 11 of 22 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

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

import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC721} from "@openzeppelin/contracts/interfaces/IERC721.sol";

interface IClientBear is IERC165, IERC721 {
    function setJwt(uint256 tokenId, uint256 clientTokenId) external;

    function clientId(uint256 tokenId) external view returns (uint8);

    function colourId(uint256 tokenId) external view returns (uint8);
}

File 13 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 14 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 15 of 22 : 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 16 of 22 : 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 17 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 18 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 19 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

    /**
     * @dev 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 20 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 21 of 22 : 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 22 of 22 : 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;
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "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"},{"inputs":[],"name":"AccessoryAlreadyAdded","type":"error"},{"inputs":[],"name":"AccessoryNotFound","type":"error"},{"inputs":[],"name":"BackgroundAlreadyAdded","type":"error"},{"inputs":[],"name":"BackgroundAlreadyRemoved","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"JwtAlreadySet","type":"error"},{"inputs":[],"name":"MaximumAccessories","type":"error"},{"inputs":[],"name":"MergeBearAlreadySet","type":"error"},{"inputs":[],"name":"NonexistentToken","type":"error"},{"inputs":[],"name":"NotAccessoryOwner","type":"error"},{"inputs":[],"name":"NotBackgroundOwner","type":"error"},{"inputs":[],"name":"NotERC4883","type":"error"},{"inputs":[],"name":"NotMergeBear","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[],"name":"OwnerAlreadyMinted","type":"error"},{"inputs":[],"name":"SupplyCapReached","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"accessoryToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"accessoryTokenId","type":"uint256"}],"name":"AccessoryAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"accessoryToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"accessoryTokenId","type":"uint256"}],"name":"AccessoryRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"backgroundToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"backgroundTokenId","type":"uint256"}],"name":"BackgroundAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"backgroundToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"backgroundTokenId","type":"uint256"}],"name":"BackgroundRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"accessoryTokenAddress","type":"address"},{"internalType":"uint256","name":"accessoryTokenId","type":"uint256"}],"name":"addAccessory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"backgroundTokenAddress","type":"address"},{"internalType":"uint256","name":"backgroundTokenId","type":"uint256"}],"name":"addBackground","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"clientId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"colourId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"colours","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"composables","outputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct ERC4883Composer.Token","name":"background","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"accessoryTokenAddress","type":"address"}],"name":"removeAccessory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeBackground","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"renderTokenById","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"clientTokenId","type":"uint256"}],"name":"setJwt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mergeBear_","type":"address"}],"name":"setMergeBear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6008805460ff19168155600961128081815268416c696365426c756560b81b6112a05260e0908152600c6112c08181526b416e7469717565576869746560a01b6112e052610100526004611300818152634171756160e01b6113205261012052600a61134081815269417175616d6172696e6560b01b6113605261014052600561138081815264417a75726560d81b6113a052610160526113c081815264426569676560d81b6113e0526101805260066114008181526542697371756560d01b611420526101a05261144082815264426c61636b60d81b611460526101c052600e6114808181526d109b185b98da1959105b1b5bdb9960921b6114a0526101e0526114c085815263426c756560e01b6114e0526102005261150084815269109b1d59559a5bdb195d60b21b611520526102205261154083815264213937bbb760d91b611560526102405261158088815268109d5c9b1e55dbdbd960ba1b6115a052610260526115c0888152684361646574426c756560b81b6115e05261028052611600848152694368617274726575736560b01b611620526102a0526116408881526843686f636f6c61746560b81b611660526102c0526116808381526410dbdc985b60da1b6116a0526102e0526116c08181526d436f726e666c6f776572426c756560901b6116e0526103005261170089815267436f726e73696c6b60c01b611720526103205260076117408181526621b934b6b9b7b760c91b61176052610340526117808681526321bcb0b760e11b6117a052610360526117c08a8152674461726b426c756560c01b6117e052610380526118008a8152672230b935a1bcb0b760c11b611820526103a052600d6118408181526c11185c9ad1dbdb19195b949bd9609a1b611860526103c0526118808a8152682230b935a3b932b2b760b91b6118a0526103e0526118c08b8152674461726b4772657960c01b6118e052610400526119008a8152684461726b4b68616b6960b81b6119205261042052600b6119408181526a4461726b4d6167656e746160a81b61196052610440526119808481526d2230b935a7b634bb32a3b932b2b760911b6119a052610460526119c0878152694461726b4f72616e676560b01b6119e05261048052611a008781526911185c9ad3dc98da1a5960b21b611a20526104a052611a408381526611185c9ad4995960ca1b611a60526104c052611a80878152692230b935a9b0b636b7b760b11b611aa0526104e052611ac08981526b2230b935a9b2b0a3b932b2b760a11b611ae05261050052611b008281526c4461726b536c617465426c756560981b611b205261052052611b408281526c4461726b536c6174654772657960981b611b605261054052611b808281526c4461726b54757271756f69736560981b611ba05261056052611bc08781526911185c9ad59a5bdb195d60b21b611be05261058052611c008c8152674465657050696e6b60c01b611c20526105a052611c408181526a44656570536b79426c756560a81b611c60526105c052611c808381526644696d4772657960c81b611ca0526105e052611cc087815269446f64676572426c756560b01b611ce05261060052611d008b81526846697265427269636b60b81b611d205261062052611d408181526a466c6f72616c576869746560a81b611d605261064052611d808181526a2337b932b9ba23b932b2b760a91b611da05261066052611dc0838152664675636873696160c81b611de05261068052611e008b8152684761696e73626f726f60b81b611e20526106a052611e408781526947686f7374576869746560b01b611e60526106c052611e808881526311dbdb1960e21b611ea0526106e052611ec08b81526811dbdb19195b949bd960ba1b611ee05261070052611f008681526423b932b2b760d91b611f205261072052611f408181526a477265656e59656c6c6f7760a81b611f605261074052611f80888152634772657960e01b611fa05261076052611fc08c815267486f6e657944657760c01b611fe0526107805261200083815266486f7450696e6b60c81b612020526107a0526120408b815268125b991a585b94995960ba1b612060526107c05261208085815265496e6469676f60d01b6120a0526107e0526120c08681526449766f727960d81b6120e05261080052612100868152644b68616b6960d81b61212052610820526121408c8152672630bb32b73232b960c11b61216052610840526121808281526c098c2eccadcc8cae484d8eae6d609b1b6121a052610860526121c08b8152682630bbb723b932b2b760b91b6121e052610880526122008981526b2632b6b7b721b434b33337b760a11b612220526108a0526122408b8152684c69676874426c756560b81b612260526108c05261228087815269131a59da1d10dbdc985b60b21b6122a0526108e0526122c08b8152682634b3b43a21bcb0b760b91b6122e0526109005260146123009081527f4c69676874476f6c64656e526f6459656c6c6f770000000000000000000000006123205261092052612340878152692634b3b43a23b932b2b760b11b61236052610940526123808b8152684c696768744772657960b81b6123a052610960526123c08b8152684c6967687450696e6b60b81b6123e052610980526124008181526a2634b3b43a29b0b636b7b760a91b612420526109a0526124408281526c2634b3b43a29b2b0a3b932b2b760991b612460526109c0526124808981526b4c69676874536b79426c756560a01b6124a0526109e0526124c08481526d4c69676874536c6174654772657960901b6124e052610a00526125008481526d4c69676874537465656c426c756560901b61252052610a20526125408181526a4c6967687459656c6c6f7760a81b61256052610a4052612580888152634c696d6560e01b6125a052610a60526125c08b8152682634b6b2a3b932b2b760b91b6125e052610a8052612600868152642634b732b760d91b61262052610aa052612640838152664d6167656e746160c81b61266052610ac0526126808581526526b0b937b7b760d11b6126a052610ae05260106126c09081526f4d656469756d417175614d6172696e6560801b6126e052610b0052612700878152694d656469756d426c756560b01b61272052610b20526127408981526b1359591a5d5b53dc98da1a5960a21b61276052610b40526127808981526b4d656469756d507572706c6560a01b6127a052610b60526127c09384526d26b2b234bab6a9b2b0a3b932b2b760911b6127e052610b8093909352600f6128008181526e4d656469756d536c617465426c756560881b61282052610ba05260116128409081527026b2b234bab6a9b83934b733a3b932b2b760791b61286052610bc0526128808181526e4d656469756d54757271756f69736560881b6128a052610be0526128c09081526e1359591a5d5b559a5bdb195d149959608a1b6128e052610c00526129009788526b4d69646e69676874426c756560a01b61292052610c2097909752612940898152684d696e74437265616d60b81b61296052610c4052612980898152684d69737479526f736560b81b6129a052610c60526129c08a81526726b7b1b1b0b9b4b760c11b6129e052610c8052612a008281526a4e6176616a6f576869746560a81b612a2052610ca052612a40868152634e61767960e01b612a6052610cc052612a80818152664f6c644c61636560c81b612aa052610ce052612ac0848152644f6c69766560d81b612ae052610d0052612b008981526827b634bb32a23930b160b91b612b2052610d2052612b40838152654f72616e676560d01b612b6052610d4052612b808981526813dc985b99d954995960ba1b612ba052610d6052612bc08381526513dc98da1a5960d21b612be052610d8052612c008781526c14185b1951dbdb19195b949bd9609a1b612c2052610da052612c40898152682830b632a3b932b2b760b91b612c6052610dc052612c808781526c50616c6554757271756f69736560981b612ca052610de052612cc08781526c14185b19559a5bdb195d149959609a1b612ce052610e0052612d00858152690506170617961576869760b41b612d2052610e2052612d40898152682832b0b1b4283ab33360b91b612d6052610e4052612d80868152635065727560e01b612da052610e6052612dc08681526350696e6b60e01b612de052610e8052612e0086815263506c756d60e01b612e2052610ea052612e4085815269506f77646572426c756560b01b612e6052610ec052612e8083815265507572706c6560d01b612ea052610ee052612ec09687526c52656265636361507572706c6560981b612ee052610f00969096526003612f008181526214995960ea1b612f2052610f2052612f40898152682937b9bca13937bbb760b91b612f6052610f4052612f8089815268526f79616c426c756560b81b612fa052610f6052612fc08281526a29b0b2323632a13937bbb760a91b612fe052610f80526130008381526529b0b636b7b760d11b61302052610fa0526130408581526929b0b7323ca13937bbb760b11b61306052610fc0526130808a81526729b2b0a3b932b2b760c11b6130a052610fe0526130c0998a526714d95854da195b1b60c21b6130e05261100099909952613100828152655369656e6e6160d01b61312052611020526131408281526529b4b63b32b960d11b613160526110405261318086815266536b79426c756560c81b6131a052611060526131c088815268536c617465426c756560b81b6131e0526110805261320088815268536c6174654772657960b81b613220526110a05261324085815263536e6f7760e01b613260526110c0526132808181526a29b83934b733a3b932b2b760a91b6132a0526110e0526132c088815268537465656c426c756560b81b6132e05261110052613300988952622a30b760e91b6133205261112098909852613340938452631519585b60e21b61336052611140939093526133809384526654686973746c6560c81b6133a052611160939093526133c082815265546f6d61746f60d01b6133e052611180526134009485526854757271756f69736560b81b613420526111a09490945261344081815265159a5bdb195d60d21b613460526111c0526134808281526415da19585d60da1b6134a0526111e0526134c091825264576869746560d81b6134e05261120091909152613500838152695768697465536d6f6b6560b01b61352052611220526135409081526559656c6c6f7760d01b61356052611240526135c06040526135809283526a2cb2b63637bba3b932b2b760a91b6135a0526112609290925262000f3691608d620011c2565b506040805160c081018252600460808201818152634265737560e01b60a0840152825282518084018452600681526522b934b3b7b760d11b60208281019190915280840191909152835180850185528281526308ecae8d60e31b81830152838501528351808501909452600a84526913995d1a195c9b5a5b9960b21b90840152606082019290925262000fcd91600b91906200121f565b506040518060a001604052806040518060400160405280600a8152602001694c69676874686f75736560b01b8152508152602001604051806040016040528060088152602001672637b232b9ba30b960c11b8152508152602001604051806040016040528060068152602001654e696d62757360d01b815250815260200160405180604001604052806005815260200164507279736d60d81b81525081526020016040518060400160405280600481526020016354656b7560e01b815250815250600c906005620010a09291906200126a565b50348015620010ae57600080fd5b506040518060400160405280601481526020017f436f6e73656e737573204c6179657220426561720000000000000000000000008152506040518060400160405280600381526020016221a62160e91b81525066017dfcdece40006077610e5b848484848484848160009081620011269190620013d4565b506001620011358282620013d4565b505050620011526200114c6200116c60201b60201c565b62001170565b60805260c09190915260a05250620014a095505050505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200120d579160200282015b828111156200120d5782518290620011fc9082620013d4565b5091602001919060010190620011e3565b506200121b929150620012b5565b5090565b8280548282559060005260206000209081019282156200120d579160200282015b828111156200120d5782518290620012599082620013d4565b509160200191906001019062001240565b8280548282559060005260206000209081019282156200120d579160200282015b828111156200120d5782518290620012a49082620013d4565b50916020019190600101906200128b565b808211156200121b576000620012cc8282620012d6565b50600101620012b5565b508054620012e49062001345565b6000825580601f10620012f5575050565b601f01602090049060005260206000209081019062001315919062001318565b50565b5b808211156200121b576000815560010162001319565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200135a57607f821691505b6020821081036200137b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620013cf57600081815260208120601f850160051c81016020861015620013aa5750805b601f850160051c820191505b81811015620013cb57828155600101620013b6565b5050505b505050565b81516001600160401b03811115620013f057620013f06200132f565b620014088162001401845462001345565b8462001381565b602080601f831160018114620014405760008415620014275750858301515b600019600386901b1c1916600185901b178555620013cb565b600085815260208120601f198616915b82811015620014715788860151825594840194600190910190840162001450565b5085821015620014905787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c0516145b4620014f36000396000818161059001526110c80152600081816104d50152610f2801526000818161052701528181610f4a01528181610f84015261110901526145b46000f3fe60806040526004361061020f5760003560e01c806379eadc2511610118578063b88d4fde116100a0578063d755e5a51161006f578063d755e5a514610692578063e985e9c5146106c4578063ef987d15146106e4578063f08f419c14610704578063f2fde38b1461072457600080fd5b8063b88d4fde14610612578063c76ab94014610632578063c87b56dd14610652578063cbf167a61461067257600080fd5b806395d89b41116100e757806395d89b4114610569578063a035b1fe1461057e578063a22cb465146105b2578063a2d6c6da146105d2578063b59274ac146105f257600080fd5b806379eadc25146104c35780638da5cb5b146104f75780638f770ad0146105155780639581adc31461054957600080fd5b80631e3bcc8e1161019b57806356dd4e5d1161016a57806356dd4e5d146103ea5780636352211e1461045b5780636a6278421461047b57806370a082311461048e578063715018a6146104ae57600080fd5b80631e3bcc8e1461036a57806323b872dd1461038a57806342842e0e146103aa57806351cff8d9146103ca57600080fd5b80630dc4f648116101e25780630dc4f648146102c557806310d0d54c146102e55780631249c58b14610305578063150b7a021461030d57806318160ddd1461034657600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004612b75565b610744565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61076f565b6040516102409190612be2565b34801561027757600080fd5b5061028b610286366004612bf5565b610801565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004612c23565b610828565b005b3480156102d157600080fd5b506102c36102e0366004612c4f565b610942565b3480156102f157600080fd5b506102c3610300366004612c4f565b610bc3565b6102c3610edb565b34801561031957600080fd5b5061032d610328366004612cf6565b610ee6565b6040516001600160e01b03199091168152602001610240565b34801561035257600080fd5b5061035c60075481565b604051908152602001610240565b34801561037657600080fd5b506102c3610385366004612da5565b610ef7565b34801561039657600080fd5b506102c36103a5366004612dc2565b610fd9565b3480156103b657600080fd5b506102c36103c5366004612dc2565b61100a565b3480156103d657600080fd5b506102c36103e5366004612da5565b611025565b3480156103f657600080fd5b50610437610405366004612bf5565b600960209081526000918252604091829020825180840190935280546001600160a01b03168352600101549082015281565b6040805182516001600160a01b031681526020928301519281019290925201610240565b34801561046757600080fd5b5061028b610476366004612bf5565b611066565b6102c3610489366004612da5565b6110c6565b34801561049a57600080fd5b5061035c6104a9366004612da5565b611155565b3480156104ba57600080fd5b506102c36111db565b3480156104cf57600080fd5b5061035c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561050357600080fd5b506006546001600160a01b031661028b565b34801561052157600080fd5b5061035c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561055557600080fd5b506102c3610564366004612df2565b6111ed565b34801561057557600080fd5b5061025e6114d9565b34801561058a57600080fd5b5061035c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105be57600080fd5b506102c36105cd366004612e30565b6114e8565b3480156105de57600080fd5b5061025e6105ed366004612bf5565b6114f3565b3480156105fe57600080fd5b506102c361060d366004612da5565b61155e565b34801561061e57600080fd5b506102c361062d366004612cf6565b6115b2565b34801561063e57600080fd5b5061025e61064d366004612bf5565b6115ea565b34801561065e57600080fd5b5061025e61066d366004612bf5565b611696565b34801561067e57600080fd5b506102c361068d366004612e5e565b61174a565b34801561069e57600080fd5b506106b26106ad366004612bf5565b6117da565b60405160ff9091168152602001610240565b3480156106d057600080fd5b506102346106df366004612e80565b61180b565b3480156106f057600080fd5b506102c36106ff366004612bf5565b611839565b34801561071057600080fd5b506106b261071f366004612bf5565b6119c0565b34801561073057600080fd5b506102c361073f366004612da5565b6119f1565b60006001600160e01b0319821663ec2bc39f60e01b1480610769575061076982611a67565b92915050565b60606000805461077e90612eae565b80601f01602080910402602001604051908101604052809291908181526020018280546107aa90612eae565b80156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b5050505050905090565b600061080c82611a8c565b506000908152600460205260409020546001600160a01b031690565b600061083382611066565b9050806001600160a01b0316836001600160a01b0316036108a55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108c157506108c1813361180b565b6109335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161089c565b61093d8383611adc565b505050565b600061094d84611066565b90506001600160a01b0381163314610978576040516359dc379f60e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190612ee8565b610a0657604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810184905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190612f05565b6001600160a01b031614610a985760405163452d40a160e01b815260040160405180910390fd5b6000858152600960205260409020546001600160a01b031615610ace5760405163618edabf60e11b815260040160405180910390fd5b6040805180820182526001600160a01b038681168252602080830187815260008a8152600990925290849020925183546001600160a01b031916908316178355516001909201919091559051632142170760e11b8152908216906342842e0e90610b4090859030908890600401612f22565b600060405180830381600087803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b5050604080518881526001600160a01b03881660208201529081018690527f6fb89e18301bb67cec000c9c666d1c4a6239ad6796e1f579d23d5490739ff16a9250606001905060405180910390a15050505050565b6000610bce84611066565b90506001600160a01b0381163314610bf9576040516359dc379f60e01b815260040160405180910390fd5b6000848152600960205260409020600201546002198101610c2d5760405163defeaaf960e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015284906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e9190612ee8565b610cbb57604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810185905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d269190612f05565b6001600160a01b031614610d4d57604051630ff76c1760e01b815260040160405180910390fd5b60005b82811015610dc757600087815260096020526040902060020180546001600160a01b038816919083908110610d8757610d87612f46565b60009182526020909120600290910201546001600160a01b031603610dbf57604051639e73380760e01b815260040160405180910390fd5b600101610d50565b506000868152600960209081526040808320815180830183526001600160a01b038a811682528185018a815260029384018054600180820183559189529690972092519590930290910180546001600160a01b0319169482169490941784559051929093019190915551632142170760e11b8152908216906342842e0e90610e5790869030908990600401612f22565b600060405180830381600087803b158015610e7157600080fd5b505af1158015610e85573d6000803e3d6000fd5b5050604080518981526001600160a01b03891660208201529081018790527f6cd6260f2c433df224ddb1f6a6bf56527967124ebe7cfbab89be9a27faaf15619250606001905060405180910390a1505050505050565b610ee4336110c6565b565b630a85bd0160e11b5b949350505050565b610eff611b4a565b60085460ff1615610f2357604051630e203e8b60e01b815260040160405180910390fd5b6007547f0000000000000000000000000000000000000000000000000000000000000000907f000000000000000000000000000000000000000000000000000000000000000090610f75908390612f72565b1115610fab57600754610fa8907f0000000000000000000000000000000000000000000000000000000000000000612f85565b90505b60005b81811015610fc757610fbf83611ba4565b600101610fae565b50506008805460ff1916600117905550565b610fe33382611bba565b610fff5760405162461bcd60e51b815260040161089c90612f98565b61093d838383611c18565b61093d838383604051806020016040528060008152506115b2565b61102d611b4a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611062573d6000803e3d6000fd5b5050565b6000818152600260205260408120546001600160a01b0316806107695760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161089c565b7f00000000000000000000000000000000000000000000000000000000000000003410156111075760405163cd1c886760e01b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000060075410611149576040516354db2d5d60e11b815260040160405180910390fd5b61115281611ba4565b50565b60006001600160a01b0382166111bf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161089c565b506001600160a01b031660009081526003602052604090205490565b6111e3611b4a565b610ee46000611db4565b60006111f883611066565b90506001600160a01b0381163314611223576040516359dc379f60e01b815260040160405180910390fd5b60008381526009602052604081206002015490805b8281101561129f57600086815260096020526040902060020180546001600160a01b03871691908390811061126f5761126f612f46565b60009182526020909120600290910201546001600160a01b031603611297576001915061129f565b600101611238565b816112bd57604051631a96433f60e11b815260040160405180910390fd5b60008681526009602052604081206002018054839081106112e0576112e0612f46565b60009182526020918290206040805180820190915260029092020180546001600160a01b0316825260010154918101919091529050815b611322600186612f85565b8110156113c9576000888152600960205260409020600201611345826001612f72565b8154811061135557611355612f46565b9060005260206000209060020201600960008a8152602001908152602001600020600201828154811061138a5761138a612f46565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501611317565b5060008781526009602052604090206002018054806113ea576113ea612fe6565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101919091559155815190820151604051632142170760e11b81526001600160a01b038316916342842e0e9161144c9130918b9190600401612f22565b600060405180830381600087803b15801561146657600080fd5b505af115801561147a573d6000803e3d6000fd5b50508351602080860151604080518e81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a15050505050505050565b60606001805461077e90612eae565b611062338383611e06565b60606114fe82611ed4565b61151b5760405163163a09e160e31b815260040160405180910390fd5b61152482611ef1565b61152d83611fab565b61153684611fee565b60405160200161154893929190613018565b6040516020818303038152906040529050919050565b611566611b4a565b600e546001600160a01b0316156115905760405163050b807160e11b815260040160405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6115bc3383611bba565b6115d85760405162461bcd60e51b815260040161089c90612f98565b6115e48484848461212c565b50505050565b600a81815481106115fa57600080fd5b90600052602060002001600091509050805461161590612eae565b80601f016020809104026020016040519081016040528092919081815260200182805461164190612eae565b801561168e5780601f106116635761010080835404028352916020019161168e565b820191906000526020600020905b81548152906001019060200180831161167157829003601f168201915b505050505081565b60606116a182611ed4565b6116be5760405163163a09e160e31b815260040160405180910390fd5b60006116c98361215f565b905060006116d68461217a565b905060006116e385612195565b905060006116f0866121a8565b90506117208484848460405160200161170c949392919061305b565b60405160208183030381529060405261220f565b604051602001611730919061313f565b604051602081830303815290604052945050505050919050565b600e546001600160a01b031633146117755760405163e5e1f94b60e01b815260040160405180910390fd5b61177e82611ed4565b61179b5760405163163a09e160e31b815260040160405180910390fd5b6000828152600d6020526040902054156117c85760405163c66eddef60e01b815260040160405180910390fd5b6000918252600d602052604090912055565b60006117e582611ed4565b6118025760405163163a09e160e31b815260040160405180910390fd5b61076982612362565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061184482611066565b90506001600160a01b038116331461186f576040516359dc379f60e01b815260040160405180910390fd5b600082815260096020908152604091829020825180840190935280546001600160a01b0316808452600190910154918301919091526118c15760405163a629928760e01b815260040160405180910390fd5b604080518082018252600080825260208083018281528783526009825291849020925183546001600160a01b0319166001600160a01b0391821617845591516001909301929092558351918401519251632142170760e11b81529192908316916342842e0e916119379130918891600401612f22565b600060405180830381600087803b15801561195157600080fd5b505af1158015611965573d6000803e3d6000fd5b50508351602080860151604080518a81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a150505050565b60006119cb82611ed4565b6119e85760405163163a09e160e31b815260040160405180910390fd5b610769826123a8565b6119f9611b4a565b6001600160a01b038116611a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161089c565b61115281611db4565b60006001600160e01b0319821663516b636d60e11b14806107695750610769826123ee565b611a9581611ed4565b6111525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161089c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b1182611066565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089c565b600780546001019081905561115290829061243e565b600080611bc683611066565b9050806001600160a01b0316846001600160a01b03161480611bed5750611bed818561180b565b80610eef5750836001600160a01b0316611c0684610801565b6001600160a01b031614949350505050565b826001600160a01b0316611c2b82611066565b6001600160a01b031614611c8f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161089c565b6001600160a01b038216611cf15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161089c565b611cfc600082611adc565b6001600160a01b0383166000908152600360205260408120805460019290611d25908490612f85565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d53908490612f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000908152600260205260409020546001600160a01b0316151590565b6040805160208082018352600080835284815260099091529190912054606091906001600160a01b03161561076957600083815260096020526040908190208054600190910154915163516b636d60e11b815260048101929092526001600160a01b03169063a2d6c6da90602401600060405180830381865afa158015611f7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fa49190810190613184565b9392505050565b60606000611fb883612458565b9050611fc383612512565b8182604051602001611fd7939291906131fb565b604051602081830303815290604052915050919050565b604080516020808201835260008083528481526009909152918220600201546060925b8181101561212357600085815260096020526040902060020180548491908390811061203f5761203f612f46565b6000918252602080832060029283020154898452600990915260409092200180546001600160a01b039092169163a2d6c6da91908590811061208357612083612f46565b9060005260206000209060020201600101546040518263ffffffff1660e01b81526004016120b391815260200190565b600060405180830381865afa1580156120d0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120f89190810190613184565b604051602001612109929190613f74565b60408051601f198184030181529190529250600101612011565b50909392505050565b612137848484611c18565b61214384848484612613565b6115e45760405162461bcd60e51b815260040161089c90613fa3565b606061216a82612711565b6040516020016115489190613ff5565b606061218582612512565b604051602001611548919061401e565b60606107696121a38361271e565b61220f565b606060006121b583612711565b6121be84612458565b6121c785612766565b6121d0866127ca565b6121d987612895565b6040516020016121ed95949392919061408a565b604051602081830303815290604052905080604051602001611fd791906141af565b6060815160000361222e57505060408051602081019091526000815290565b600060405180606001604052806040815260200161453f604091399050600060038451600261225d9190612f72565b6122679190614208565b61227290600461421c565b67ffffffffffffffff81111561228a5761228a612c87565b6040519080825280601f01601f1916602001820160405280156122b4576020820181803683370190505b509050600182016020820185865187015b80821015612320576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506122c5565b505060038651066001811461233c576002811461234f57612357565b603d6001830353603d6002830353612357565b603d60018303535b509195945050505050565b6000803061236f84612512565b604051602001612380929190614233565b60408051601f198184030181529190528051602090910120600a54909150611fa4908261427f565b600080306123b584612512565b6040516020016123c6929190614293565b60408051601f198184030181529190528051602090910120600c54909150611fa4908261427f565b60006001600160e01b031982166380ac58cd60e01b148061241f57506001600160e01b03198216635b5e139f60e01b145b8061076957506301ffc9a760e01b6001600160e01b0319831614610769565b6110628282604051806020016040528060008152506128fc565b6060600a61246583612362565b60ff168154811061247857612478612f46565b90600052602060002001805461248d90612eae565b80601f01602080910402602001604051908101604052809291908181526020018280546124b990612eae565b80156125065780601f106124db57610100808354040283529160200191612506565b820191906000526020600020905b8154815290600101906020018083116124e957829003601f168201915b50505050509050919050565b6060816000036125395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612563578061254d816142f1565b915061255c9050600a83614208565b915061253d565b60008167ffffffffffffffff81111561257e5761257e612c87565b6040519080825280601f01601f1916602001820160405280156125a8576020820181803683370190505b5090505b8415610eef576125bd600183612f85565b91506125ca600a8661427f565b6125d5906030612f72565b60f81b8183815181106125ea576125ea612f46565b60200101906001600160f81b031916908160001a90535061260c600a86614208565b94506125ac565b60006001600160a01b0384163b1561270957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061265790339089908890889060040161430a565b6020604051808303816000875af1925050508015612692575060408051601f3d908101601f1916820190925261268f9181019061433d565b60015b6126ef573d8080156126c0576040519150601f19603f3d011682016040523d82523d6000602084013e6126c5565b606091505b5080516000036126e75760405162461bcd60e51b815260040161089c90613fa3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610eef565b506001610eef565b6060600c612465836123a8565b6060600061272b83611ef1565b61273484611fab565b61273d85611fee565b60405160200161274f9392919061435a565b60408051601f198184030181529190529392505050565b6040805180820182526009815268084cad8d8c2e8e4d2f60bb1b6020808301919091526000848152600d90915291909120546060919015610769575060408051808201909152600b81526a4d6572676520526561647960a81b602082015292915050565b604080516020808201835260008083528481526009909152918220600201546060928391905b8181101561288b576000868152600960205260409020600201805461283f91908390811061282057612820612f46565b60009182526020909120600290910201546001600160a01b031661292f565b92508251600014612883578361285e612859836001612f72565b612512565b8460405160200161287193929190614445565b60405160208183030381529060405293505b6001016127f0565b5091949350505050565b60408051602080820183526000808352848152600990915291822054606092906128c7906001600160a01b031661292f565b905080516000146128f557806040516020016128e391906144db565b60405160208183030381529060405291505b5092915050565b6129068383612a2c565b6129136000848484612613565b61093d5760405162461bcd60e51b815260040161089c90613fa3565b6040805160208101909152600081526060906001600160a01b03831615610769576040516301ffc9a760e01b8152635b5e139f60e01b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa15801561299d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c19190612ee8565b156128f557806001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015612a04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eef9190810190613184565b6001600160a01b038216612a825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089c565b612a8b81611ed4565b15612ad85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089c565b6001600160a01b0382166000908152600360205260408120805460019290612b01908490612f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461115257600080fd5b600060208284031215612b8757600080fd5b8135611fa481612b5f565b60005b83811015612bad578181015183820152602001612b95565b50506000910152565b60008151808452612bce816020860160208601612b92565b601f01601f19169290920160200192915050565b602081526000611fa46020830184612bb6565b600060208284031215612c0757600080fd5b5035919050565b6001600160a01b038116811461115257600080fd5b60008060408385031215612c3657600080fd5b8235612c4181612c0e565b946020939093013593505050565b600080600060608486031215612c6457600080fd5b833592506020840135612c7681612c0e565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cc657612cc6612c87565b604052919050565b600067ffffffffffffffff821115612ce857612ce8612c87565b50601f01601f191660200190565b60008060008060808587031215612d0c57600080fd5b8435612d1781612c0e565b93506020850135612d2781612c0e565b925060408501359150606085013567ffffffffffffffff811115612d4a57600080fd5b8501601f81018713612d5b57600080fd5b8035612d6e612d6982612cce565b612c9d565b818152886020838501011115612d8357600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600060208284031215612db757600080fd5b8135611fa481612c0e565b600080600060608486031215612dd757600080fd5b8335612de281612c0e565b92506020840135612c7681612c0e565b60008060408385031215612e0557600080fd5b823591506020830135612e1781612c0e565b809150509250929050565b801515811461115257600080fd5b60008060408385031215612e4357600080fd5b8235612e4e81612c0e565b91506020830135612e1781612e22565b60008060408385031215612e7157600080fd5b50508035926020909101359150565b60008060408385031215612e9357600080fd5b8235612e9e81612c0e565b91506020830135612e1781612c0e565b600181811c90821680612ec257607f821691505b602082108103612ee257634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612efa57600080fd5b8151611fa481612e22565b600060208284031215612f1757600080fd5b8151611fa481612c0e565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561076957610769612f5c565b8181038181111561076957610769612f5c565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6000815161300e818560208601612b92565b9290920192915050565b6000845161302a818460208901612b92565b84519083019061303e818360208901612b92565b8451910190613051818360208801612b92565b0195945050505050565b683d913730b6b2911d1160b91b81528451600090613080816009850160208a01612b92565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015285516130b281601b840160208a01612b92565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b601b92909101918201526618985cd94d8d0b60ca1b603b8201528451613100816042840160208901612b92565b61088b60f21b604292909101918201528351613123816044840160208801612b92565b607d60f81b604492909101918201526045019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161317781601d850160208701612b92565b91909101601d0192915050565b60006020828403121561319657600080fd5b815167ffffffffffffffff8111156131ad57600080fd5b8201601f810184136131be57600080fd5b80516131cc612d6982612cce565b8181528560208385010111156131e157600080fd5b6131f2826020830160208601612b92565b95945050505050565b7f3c672069643d22636f6e73656e7375732d6c617965722d626561722d0000000081526000845161323381601c850160208901612b92565b7f223e3c646573633e436f6e73656e737573204c6179657220426561723c2f6465601c918401918201527f73633e3c67207374726f6b653d22626c61636b22207374726f6b652d77696474603c8201527f683d22313022207374726f6b652d6c696e656361703d22726f756e6422207374605c8201527f726f6b652d6c696e656a6f696e3d22726f756e64223e3c7061746820643d224d607c8201527f3134312e373436203336342e3534364338382e30383936203333382e31363620609c8201527f36372e37363836203333392e3131372035342e39373036203337382e3631384360bc8201527f35382e30313132203431382e3239322036342e33323732203432392e3533372060dc8201527f38302e37363836203433372e3235433130342e363336203434382e373039203160fc8201527f37302e383736203433322e373732203234372e323833203432322e303035433361011c8201527f35342e383436203433352e333737203432342e383233203434352e303534203461013c8201527f33382e343232203433372e3235433435382e333731203432342e35363920343661015c8201527f362e343939203431342e323937203436342e3232203337382e3631384334343561017c8201527f2e303939203335312e303334203433332e333536203333392e3638342034303361019c8201527f2e323433203335362e3333384c3336352e373139203333362e3430334c3134316101bc8201527f2e373436203336342e3534365a222066696c6c3d222346384638463822202f3e6101dc8201527f3c7061746820643d224d3238392e343938203130312e383736433333312e39396101fc8201527f362038302e37383332203332392e383638203130312e333431203332382e313961021c8201527f35203134392e3935344c3238392e343938203130312e3837365a222066696c6c61023c8201527f3d222344434443444322202f3e3c7061746820643d224d3136362e333731203161025c8201527f33342e3731433135392e3632372039332e36313631203136382e38323920383361027c8201527f2e373738203230382e3538362039362e303132384c3136362e3337312031333461029c8201527f2e37315a222066696c6c3d222344434443444322202f3e3c7061746820643d226102bc8201527f4d3332382e313935203134392e393534433238372e3135322036362e363936396102dc8201527f203230362e3234312036362e36393639203136322e383533203134322e3931386102fc8201527f433134322e353239203139382e363334203134312e323732203232322e35383361031c8201527f203137322e323334203234312e343139433233362e333934203238352e33393361033c8201527f203236392e313831203237392e393735203333342e303538203234312e34313961035c8201527f433334322e323636203232382e353231203334392e33203138322e393738203361037c8201527f32382e313935203134392e3935345a222066696c6c3d2223463846384638222061039c8201527f2f3e3c7061746820643d224d3138322e373838203431362e3134324c3137322e6103bc8201527f323334203331392e393836483330352e393135563432352e353233433236372e6103dc8201527f323037203433382e3331203232362e353031203434382e303135203138322e376103fc8201527f3838203431362e3134325a222066696c6c3d222344434443444322202f3e3c7061041c8201527f61746820643d224d3230332e383935203433382e343232433138382e3836362061043c8201527f3434312e393536203132362e313638203436362e383833203131322e3433203461045c8201527f32392e303431433131332e343132203430322e303132203131352e363238203361047c8201527f37382e343739203132302e393833203335352e313635433132382e393732203361049c8201527f32302e333836203134332e393437203238362e303937203137322e32333420326104bc8201527f34312e3432433233372e323632203238312e383938203236372e3835372032376104dc8201527f322e363131203333322e383835203234322e353932433336312e3035322032386104fc8201527f322e363636203337372e3835203331372e353831203337372e3636332033343661051c8201527f2e393537433337372e36203335362e383432203338302e303132203336372e3161053c8201527f3632203337372e363633203337382e363138433337372e363633203337382e3661055c8201527f3138203337332e393237203430302e383938203337332e393237203432392e3061057c8201527f3431433337332e393237203435372e313835203239372e373036203436352e3361059c8201527f3933203238392e343938203432392e303431433238312e323839203339322e366105bc8201527f39203238362e353035203431302e343836203239372e373036203334362e39356105dc8201527f37433236332e3532203333392e3936203234302e363639203334302e353936206105fc8201527f3139352e363837203334362e393537433230322e333539203335382e3431332061061c8201527f3231382e393235203433342e383839203230332e383935203433382e3432325a61063c8201527f222066696c6c3d222346384638463822202f3e3c7061746820643d224d32343461065c8201527f2e35203237312e323837433332342e35203237312e323837203333342031363061067c8201527f2e38383220323430203136302e38383243313436203136302e3838322031363461069c8201527f2e35203237312e323837203234342e35203237312e3238375a222066696c6c3d6106bc8201527f222344434443444322202f3e3c7061746820643d224d3231352e3632322031396106dc8201527f352e363837433232362e313735203138352e313333203235352e3439312031386106fc8201527f392e383234203236302e313832203139382e303332433234382e34353520323061071c8201527f392e373538203232372e333438203230372e343133203231352e36323220313961073c8201527f352e3638375a222066696c6c3d22626c61636b22202f3e3c7061746820643d2261075c8201527f4d3232312e343835203232382e353231433234322e383238203233372e36303761077c8201527f203234352e343939203233362e373233203236332e37203232382e353231222061079c8201527f66696c6c3d226e6f6e6522202f3e3c2f673e3c636972636c652063783d2231396107bc8201527f342e373838222063793d223136352e3634352220723d223130222066696c6c3d6107dc8201527f22626c61636b222f3e3c636972636c652063783d223238362e353939222063796107fc8201527f3d223136362e39392220723d223130222066696c6c3d22626c61636b222f3e3c61081c82015269339039ba3937b5b29e9160b11b61083c820152613f6a613e28613e22613c41610846850189612ffc565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203237364c3238362e333637203237372e323432563331332e323860608201527f384c3238362e373332203331332e3635334c3330332e343634203330332e373660808201527f334c3238362e373332203237365a22202f3e3c7061746820643d224d3238362e60a08201527f373332203237364c323730203330332e3736334c3238362e373332203331332e60c08201527f363533563239362e313538563237365a22202f3e3c7061746820643d224d323860e08201527f362e373332203331332e3635334c3330332e343634203330332e3736334c32386101008201527f362e373332203239362e313538563331332e3635335a22202f3e3c70617468206101208201527f643d224d323730203330332e3736334c3238362e373332203331332e363533566101408201527f3239362e3135384c323730203330332e3736335a22202f3e3c2f673e3c672073610160820152663a3937b5b29e9160c91b6101808201526101870190565b86612ffc565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203333302e353134563331362e3832314c323730203330362e393360608201527f364c3238362e373332203333302e3531345a22202f3e3c7061746820643d224d60808201527f3238362e373332203331362e3832314c3238362e353236203331372e3037325660a08201527f3332392e3931334c3238362e373332203333302e3531344c3330332e3437342060c08201527f3330362e3933364c3238362e373332203331362e3832315a22202f3e3c2f673e60e0820152631e17b39f60e11b6101008201526101040190565b9695505050505050565b60008351613f86818460208801612b92565b835190830190613f9a818360208801612b92565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008251614007818460208701612b92565b64102132b0b960d91b920191825250600501919050565b7f436f6e73656e737573204c6179657220426561722e202042656172202300000081526000825161405681601d850160208701612b92565b7f2e20204552433438383320636f6d706f7361626c65204e465400000000000000601d939091019283015250603601919050565b7f7b2274726169745f74797065223a2022436c69656e74222c202276616c7565228152621d101160e91b6020820152600086516140ce816023850160208b01612b92565b7f227d2c207b2274726169745f74797065223a2022457468657265756d204c6f676023918401918201526d37911610113b30b63ab2911d101160911b60438201528651614122816051840160208b01612b92565b7f227d2c207b2274726169745f74797065223a2022537461747573222c202276616051929091019182015266363ab2911d101160c91b60718201528551614170816078840160208a01612b92565b61227d60f01b60789290910191820152845161419381607a840160208901612b92565b6141a2607a8284010186612ffc565b9998505050505050505050565b6e2261747472696275746573223a205b60881b815281516000906141da81600f850160208701612b92565b605d60f81b600f939091019283015250601001919050565b634e487b7160e01b600052601260045260246000fd5b600082614217576142176141f2565b500490565b808202811582820484141761076957610769612f5c565b6a2132b0b91021b7b637bab960a91b81526bffffffffffffffffffffffff198360601b16600b8201526000825161427181601f850160208701612b92565b91909101601f019392505050565b60008261428e5761428e6141f2565b500690565b7f436f6e73656e737573204c6179657220436c69656e742044697665727369747981526bffffffffffffffffffffffff198360601b166020820152600082516142e3816034850160208701612b92565b919091016034019392505050565b60006001820161430357614303612f5c565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f6a90830184612bb6565b60006020828403121561434f57600080fd5b8151611fa481612b5f565b7f3c7376672069643d22636f6e73656e7375732d6c617965722d6265617222207781527f696474683d2235303022206865696768743d22353030222076696577426f783d60208201527f2230203020353030203530302220786d6c6e733d22687474703a2f2f7777772e6040820152703b999737b933979918181817b9bb33911f60791b6060820152600084516143f8816071850160208901612b92565b84519083019061440f816071840160208901612b92565b8451910190614425816071840160208801612b92565b651e17b9bb339f60d11b6071929091019182015260770195945050505050565b60008451614457818460208901612b92565b7f2c207b2274726169745f74797065223a20224163636573736f72790000000000908301908152845161449181601b840160208901612b92565b6c111610113b30b63ab2911d101160991b601b929091019182015283516144bf816028840160208801612b92565b61227d60f01b60289290910191820152602a0195945050505050565b7f2c207b2274726169745f74797065223a20224261636b67726f756e64222c20228152683b30b63ab2911d101160b91b602082015260008251614525816029850160208701612b92565b61227d60f01b6029939091019283015250602b0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122060f09ab89867cac20ebbf6c84f605e8dda2c22b108a9da2556ec0defad2b498564736f6c63430008110033

Deployed Bytecode

0x60806040526004361061020f5760003560e01c806379eadc2511610118578063b88d4fde116100a0578063d755e5a51161006f578063d755e5a514610692578063e985e9c5146106c4578063ef987d15146106e4578063f08f419c14610704578063f2fde38b1461072457600080fd5b8063b88d4fde14610612578063c76ab94014610632578063c87b56dd14610652578063cbf167a61461067257600080fd5b806395d89b41116100e757806395d89b4114610569578063a035b1fe1461057e578063a22cb465146105b2578063a2d6c6da146105d2578063b59274ac146105f257600080fd5b806379eadc25146104c35780638da5cb5b146104f75780638f770ad0146105155780639581adc31461054957600080fd5b80631e3bcc8e1161019b57806356dd4e5d1161016a57806356dd4e5d146103ea5780636352211e1461045b5780636a6278421461047b57806370a082311461048e578063715018a6146104ae57600080fd5b80631e3bcc8e1461036a57806323b872dd1461038a57806342842e0e146103aa57806351cff8d9146103ca57600080fd5b80630dc4f648116101e25780630dc4f648146102c557806310d0d54c146102e55780631249c58b14610305578063150b7a021461030d57806318160ddd1461034657600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004612b75565b610744565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61076f565b6040516102409190612be2565b34801561027757600080fd5b5061028b610286366004612bf5565b610801565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004612c23565b610828565b005b3480156102d157600080fd5b506102c36102e0366004612c4f565b610942565b3480156102f157600080fd5b506102c3610300366004612c4f565b610bc3565b6102c3610edb565b34801561031957600080fd5b5061032d610328366004612cf6565b610ee6565b6040516001600160e01b03199091168152602001610240565b34801561035257600080fd5b5061035c60075481565b604051908152602001610240565b34801561037657600080fd5b506102c3610385366004612da5565b610ef7565b34801561039657600080fd5b506102c36103a5366004612dc2565b610fd9565b3480156103b657600080fd5b506102c36103c5366004612dc2565b61100a565b3480156103d657600080fd5b506102c36103e5366004612da5565b611025565b3480156103f657600080fd5b50610437610405366004612bf5565b600960209081526000918252604091829020825180840190935280546001600160a01b03168352600101549082015281565b6040805182516001600160a01b031681526020928301519281019290925201610240565b34801561046757600080fd5b5061028b610476366004612bf5565b611066565b6102c3610489366004612da5565b6110c6565b34801561049a57600080fd5b5061035c6104a9366004612da5565b611155565b3480156104ba57600080fd5b506102c36111db565b3480156104cf57600080fd5b5061035c7f000000000000000000000000000000000000000000000000000000000000007781565b34801561050357600080fd5b506006546001600160a01b031661028b565b34801561052157600080fd5b5061035c7f0000000000000000000000000000000000000000000000000000000000000e5b81565b34801561055557600080fd5b506102c3610564366004612df2565b6111ed565b34801561057557600080fd5b5061025e6114d9565b34801561058a57600080fd5b5061035c7f00000000000000000000000000000000000000000000000000017dfcdece400081565b3480156105be57600080fd5b506102c36105cd366004612e30565b6114e8565b3480156105de57600080fd5b5061025e6105ed366004612bf5565b6114f3565b3480156105fe57600080fd5b506102c361060d366004612da5565b61155e565b34801561061e57600080fd5b506102c361062d366004612cf6565b6115b2565b34801561063e57600080fd5b5061025e61064d366004612bf5565b6115ea565b34801561065e57600080fd5b5061025e61066d366004612bf5565b611696565b34801561067e57600080fd5b506102c361068d366004612e5e565b61174a565b34801561069e57600080fd5b506106b26106ad366004612bf5565b6117da565b60405160ff9091168152602001610240565b3480156106d057600080fd5b506102346106df366004612e80565b61180b565b3480156106f057600080fd5b506102c36106ff366004612bf5565b611839565b34801561071057600080fd5b506106b261071f366004612bf5565b6119c0565b34801561073057600080fd5b506102c361073f366004612da5565b6119f1565b60006001600160e01b0319821663ec2bc39f60e01b1480610769575061076982611a67565b92915050565b60606000805461077e90612eae565b80601f01602080910402602001604051908101604052809291908181526020018280546107aa90612eae565b80156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b5050505050905090565b600061080c82611a8c565b506000908152600460205260409020546001600160a01b031690565b600061083382611066565b9050806001600160a01b0316836001600160a01b0316036108a55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108c157506108c1813361180b565b6109335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161089c565b61093d8383611adc565b505050565b600061094d84611066565b90506001600160a01b0381163314610978576040516359dc379f60e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190612ee8565b610a0657604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810184905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a719190612f05565b6001600160a01b031614610a985760405163452d40a160e01b815260040160405180910390fd5b6000858152600960205260409020546001600160a01b031615610ace5760405163618edabf60e11b815260040160405180910390fd5b6040805180820182526001600160a01b038681168252602080830187815260008a8152600990925290849020925183546001600160a01b031916908316178355516001909201919091559051632142170760e11b8152908216906342842e0e90610b4090859030908890600401612f22565b600060405180830381600087803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b5050604080518881526001600160a01b03881660208201529081018690527f6fb89e18301bb67cec000c9c666d1c4a6239ad6796e1f579d23d5490739ff16a9250606001905060405180910390a15050505050565b6000610bce84611066565b90506001600160a01b0381163314610bf9576040516359dc379f60e01b815260040160405180910390fd5b6000848152600960205260409020600201546002198101610c2d5760405163defeaaf960e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015284906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e9190612ee8565b610cbb57604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810185905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d269190612f05565b6001600160a01b031614610d4d57604051630ff76c1760e01b815260040160405180910390fd5b60005b82811015610dc757600087815260096020526040902060020180546001600160a01b038816919083908110610d8757610d87612f46565b60009182526020909120600290910201546001600160a01b031603610dbf57604051639e73380760e01b815260040160405180910390fd5b600101610d50565b506000868152600960209081526040808320815180830183526001600160a01b038a811682528185018a815260029384018054600180820183559189529690972092519590930290910180546001600160a01b0319169482169490941784559051929093019190915551632142170760e11b8152908216906342842e0e90610e5790869030908990600401612f22565b600060405180830381600087803b158015610e7157600080fd5b505af1158015610e85573d6000803e3d6000fd5b5050604080518981526001600160a01b03891660208201529081018790527f6cd6260f2c433df224ddb1f6a6bf56527967124ebe7cfbab89be9a27faaf15619250606001905060405180910390a1505050505050565b610ee4336110c6565b565b630a85bd0160e11b5b949350505050565b610eff611b4a565b60085460ff1615610f2357604051630e203e8b60e01b815260040160405180910390fd5b6007547f0000000000000000000000000000000000000000000000000000000000000077907f0000000000000000000000000000000000000000000000000000000000000e5b90610f75908390612f72565b1115610fab57600754610fa8907f0000000000000000000000000000000000000000000000000000000000000e5b612f85565b90505b60005b81811015610fc757610fbf83611ba4565b600101610fae565b50506008805460ff1916600117905550565b610fe33382611bba565b610fff5760405162461bcd60e51b815260040161089c90612f98565b61093d838383611c18565b61093d838383604051806020016040528060008152506115b2565b61102d611b4a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611062573d6000803e3d6000fd5b5050565b6000818152600260205260408120546001600160a01b0316806107695760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161089c565b7f00000000000000000000000000000000000000000000000000017dfcdece40003410156111075760405163cd1c886760e01b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000e5b60075410611149576040516354db2d5d60e11b815260040160405180910390fd5b61115281611ba4565b50565b60006001600160a01b0382166111bf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161089c565b506001600160a01b031660009081526003602052604090205490565b6111e3611b4a565b610ee46000611db4565b60006111f883611066565b90506001600160a01b0381163314611223576040516359dc379f60e01b815260040160405180910390fd5b60008381526009602052604081206002015490805b8281101561129f57600086815260096020526040902060020180546001600160a01b03871691908390811061126f5761126f612f46565b60009182526020909120600290910201546001600160a01b031603611297576001915061129f565b600101611238565b816112bd57604051631a96433f60e11b815260040160405180910390fd5b60008681526009602052604081206002018054839081106112e0576112e0612f46565b60009182526020918290206040805180820190915260029092020180546001600160a01b0316825260010154918101919091529050815b611322600186612f85565b8110156113c9576000888152600960205260409020600201611345826001612f72565b8154811061135557611355612f46565b9060005260206000209060020201600960008a8152602001908152602001600020600201828154811061138a5761138a612f46565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501611317565b5060008781526009602052604090206002018054806113ea576113ea612fe6565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101919091559155815190820151604051632142170760e11b81526001600160a01b038316916342842e0e9161144c9130918b9190600401612f22565b600060405180830381600087803b15801561146657600080fd5b505af115801561147a573d6000803e3d6000fd5b50508351602080860151604080518e81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a15050505050505050565b60606001805461077e90612eae565b611062338383611e06565b60606114fe82611ed4565b61151b5760405163163a09e160e31b815260040160405180910390fd5b61152482611ef1565b61152d83611fab565b61153684611fee565b60405160200161154893929190613018565b6040516020818303038152906040529050919050565b611566611b4a565b600e546001600160a01b0316156115905760405163050b807160e11b815260040160405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6115bc3383611bba565b6115d85760405162461bcd60e51b815260040161089c90612f98565b6115e48484848461212c565b50505050565b600a81815481106115fa57600080fd5b90600052602060002001600091509050805461161590612eae565b80601f016020809104026020016040519081016040528092919081815260200182805461164190612eae565b801561168e5780601f106116635761010080835404028352916020019161168e565b820191906000526020600020905b81548152906001019060200180831161167157829003601f168201915b505050505081565b60606116a182611ed4565b6116be5760405163163a09e160e31b815260040160405180910390fd5b60006116c98361215f565b905060006116d68461217a565b905060006116e385612195565b905060006116f0866121a8565b90506117208484848460405160200161170c949392919061305b565b60405160208183030381529060405261220f565b604051602001611730919061313f565b604051602081830303815290604052945050505050919050565b600e546001600160a01b031633146117755760405163e5e1f94b60e01b815260040160405180910390fd5b61177e82611ed4565b61179b5760405163163a09e160e31b815260040160405180910390fd5b6000828152600d6020526040902054156117c85760405163c66eddef60e01b815260040160405180910390fd5b6000918252600d602052604090912055565b60006117e582611ed4565b6118025760405163163a09e160e31b815260040160405180910390fd5b61076982612362565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061184482611066565b90506001600160a01b038116331461186f576040516359dc379f60e01b815260040160405180910390fd5b600082815260096020908152604091829020825180840190935280546001600160a01b0316808452600190910154918301919091526118c15760405163a629928760e01b815260040160405180910390fd5b604080518082018252600080825260208083018281528783526009825291849020925183546001600160a01b0319166001600160a01b0391821617845591516001909301929092558351918401519251632142170760e11b81529192908316916342842e0e916119379130918891600401612f22565b600060405180830381600087803b15801561195157600080fd5b505af1158015611965573d6000803e3d6000fd5b50508351602080860151604080518a81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a150505050565b60006119cb82611ed4565b6119e85760405163163a09e160e31b815260040160405180910390fd5b610769826123a8565b6119f9611b4a565b6001600160a01b038116611a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161089c565b61115281611db4565b60006001600160e01b0319821663516b636d60e11b14806107695750610769826123ee565b611a9581611ed4565b6111525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161089c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b1182611066565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089c565b600780546001019081905561115290829061243e565b600080611bc683611066565b9050806001600160a01b0316846001600160a01b03161480611bed5750611bed818561180b565b80610eef5750836001600160a01b0316611c0684610801565b6001600160a01b031614949350505050565b826001600160a01b0316611c2b82611066565b6001600160a01b031614611c8f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161089c565b6001600160a01b038216611cf15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161089c565b611cfc600082611adc565b6001600160a01b0383166000908152600360205260408120805460019290611d25908490612f85565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d53908490612f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000908152600260205260409020546001600160a01b0316151590565b6040805160208082018352600080835284815260099091529190912054606091906001600160a01b03161561076957600083815260096020526040908190208054600190910154915163516b636d60e11b815260048101929092526001600160a01b03169063a2d6c6da90602401600060405180830381865afa158015611f7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fa49190810190613184565b9392505050565b60606000611fb883612458565b9050611fc383612512565b8182604051602001611fd7939291906131fb565b604051602081830303815290604052915050919050565b604080516020808201835260008083528481526009909152918220600201546060925b8181101561212357600085815260096020526040902060020180548491908390811061203f5761203f612f46565b6000918252602080832060029283020154898452600990915260409092200180546001600160a01b039092169163a2d6c6da91908590811061208357612083612f46565b9060005260206000209060020201600101546040518263ffffffff1660e01b81526004016120b391815260200190565b600060405180830381865afa1580156120d0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120f89190810190613184565b604051602001612109929190613f74565b60408051601f198184030181529190529250600101612011565b50909392505050565b612137848484611c18565b61214384848484612613565b6115e45760405162461bcd60e51b815260040161089c90613fa3565b606061216a82612711565b6040516020016115489190613ff5565b606061218582612512565b604051602001611548919061401e565b60606107696121a38361271e565b61220f565b606060006121b583612711565b6121be84612458565b6121c785612766565b6121d0866127ca565b6121d987612895565b6040516020016121ed95949392919061408a565b604051602081830303815290604052905080604051602001611fd791906141af565b6060815160000361222e57505060408051602081019091526000815290565b600060405180606001604052806040815260200161453f604091399050600060038451600261225d9190612f72565b6122679190614208565b61227290600461421c565b67ffffffffffffffff81111561228a5761228a612c87565b6040519080825280601f01601f1916602001820160405280156122b4576020820181803683370190505b509050600182016020820185865187015b80821015612320576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506122c5565b505060038651066001811461233c576002811461234f57612357565b603d6001830353603d6002830353612357565b603d60018303535b509195945050505050565b6000803061236f84612512565b604051602001612380929190614233565b60408051601f198184030181529190528051602090910120600a54909150611fa4908261427f565b600080306123b584612512565b6040516020016123c6929190614293565b60408051601f198184030181529190528051602090910120600c54909150611fa4908261427f565b60006001600160e01b031982166380ac58cd60e01b148061241f57506001600160e01b03198216635b5e139f60e01b145b8061076957506301ffc9a760e01b6001600160e01b0319831614610769565b6110628282604051806020016040528060008152506128fc565b6060600a61246583612362565b60ff168154811061247857612478612f46565b90600052602060002001805461248d90612eae565b80601f01602080910402602001604051908101604052809291908181526020018280546124b990612eae565b80156125065780601f106124db57610100808354040283529160200191612506565b820191906000526020600020905b8154815290600101906020018083116124e957829003601f168201915b50505050509050919050565b6060816000036125395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612563578061254d816142f1565b915061255c9050600a83614208565b915061253d565b60008167ffffffffffffffff81111561257e5761257e612c87565b6040519080825280601f01601f1916602001820160405280156125a8576020820181803683370190505b5090505b8415610eef576125bd600183612f85565b91506125ca600a8661427f565b6125d5906030612f72565b60f81b8183815181106125ea576125ea612f46565b60200101906001600160f81b031916908160001a90535061260c600a86614208565b94506125ac565b60006001600160a01b0384163b1561270957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061265790339089908890889060040161430a565b6020604051808303816000875af1925050508015612692575060408051601f3d908101601f1916820190925261268f9181019061433d565b60015b6126ef573d8080156126c0576040519150601f19603f3d011682016040523d82523d6000602084013e6126c5565b606091505b5080516000036126e75760405162461bcd60e51b815260040161089c90613fa3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610eef565b506001610eef565b6060600c612465836123a8565b6060600061272b83611ef1565b61273484611fab565b61273d85611fee565b60405160200161274f9392919061435a565b60408051601f198184030181529190529392505050565b6040805180820182526009815268084cad8d8c2e8e4d2f60bb1b6020808301919091526000848152600d90915291909120546060919015610769575060408051808201909152600b81526a4d6572676520526561647960a81b602082015292915050565b604080516020808201835260008083528481526009909152918220600201546060928391905b8181101561288b576000868152600960205260409020600201805461283f91908390811061282057612820612f46565b60009182526020909120600290910201546001600160a01b031661292f565b92508251600014612883578361285e612859836001612f72565b612512565b8460405160200161287193929190614445565b60405160208183030381529060405293505b6001016127f0565b5091949350505050565b60408051602080820183526000808352848152600990915291822054606092906128c7906001600160a01b031661292f565b905080516000146128f557806040516020016128e391906144db565b60405160208183030381529060405291505b5092915050565b6129068383612a2c565b6129136000848484612613565b61093d5760405162461bcd60e51b815260040161089c90613fa3565b6040805160208101909152600081526060906001600160a01b03831615610769576040516301ffc9a760e01b8152635b5e139f60e01b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa15801561299d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c19190612ee8565b156128f557806001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015612a04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eef9190810190613184565b6001600160a01b038216612a825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089c565b612a8b81611ed4565b15612ad85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089c565b6001600160a01b0382166000908152600360205260408120805460019290612b01908490612f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461115257600080fd5b600060208284031215612b8757600080fd5b8135611fa481612b5f565b60005b83811015612bad578181015183820152602001612b95565b50506000910152565b60008151808452612bce816020860160208601612b92565b601f01601f19169290920160200192915050565b602081526000611fa46020830184612bb6565b600060208284031215612c0757600080fd5b5035919050565b6001600160a01b038116811461115257600080fd5b60008060408385031215612c3657600080fd5b8235612c4181612c0e565b946020939093013593505050565b600080600060608486031215612c6457600080fd5b833592506020840135612c7681612c0e565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cc657612cc6612c87565b604052919050565b600067ffffffffffffffff821115612ce857612ce8612c87565b50601f01601f191660200190565b60008060008060808587031215612d0c57600080fd5b8435612d1781612c0e565b93506020850135612d2781612c0e565b925060408501359150606085013567ffffffffffffffff811115612d4a57600080fd5b8501601f81018713612d5b57600080fd5b8035612d6e612d6982612cce565b612c9d565b818152886020838501011115612d8357600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600060208284031215612db757600080fd5b8135611fa481612c0e565b600080600060608486031215612dd757600080fd5b8335612de281612c0e565b92506020840135612c7681612c0e565b60008060408385031215612e0557600080fd5b823591506020830135612e1781612c0e565b809150509250929050565b801515811461115257600080fd5b60008060408385031215612e4357600080fd5b8235612e4e81612c0e565b91506020830135612e1781612e22565b60008060408385031215612e7157600080fd5b50508035926020909101359150565b60008060408385031215612e9357600080fd5b8235612e9e81612c0e565b91506020830135612e1781612c0e565b600181811c90821680612ec257607f821691505b602082108103612ee257634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612efa57600080fd5b8151611fa481612e22565b600060208284031215612f1757600080fd5b8151611fa481612c0e565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561076957610769612f5c565b8181038181111561076957610769612f5c565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6000815161300e818560208601612b92565b9290920192915050565b6000845161302a818460208901612b92565b84519083019061303e818360208901612b92565b8451910190613051818360208801612b92565b0195945050505050565b683d913730b6b2911d1160b91b81528451600090613080816009850160208a01612b92565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015285516130b281601b840160208a01612b92565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b601b92909101918201526618985cd94d8d0b60ca1b603b8201528451613100816042840160208901612b92565b61088b60f21b604292909101918201528351613123816044840160208801612b92565b607d60f81b604492909101918201526045019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161317781601d850160208701612b92565b91909101601d0192915050565b60006020828403121561319657600080fd5b815167ffffffffffffffff8111156131ad57600080fd5b8201601f810184136131be57600080fd5b80516131cc612d6982612cce565b8181528560208385010111156131e157600080fd5b6131f2826020830160208601612b92565b95945050505050565b7f3c672069643d22636f6e73656e7375732d6c617965722d626561722d0000000081526000845161323381601c850160208901612b92565b7f223e3c646573633e436f6e73656e737573204c6179657220426561723c2f6465601c918401918201527f73633e3c67207374726f6b653d22626c61636b22207374726f6b652d77696474603c8201527f683d22313022207374726f6b652d6c696e656361703d22726f756e6422207374605c8201527f726f6b652d6c696e656a6f696e3d22726f756e64223e3c7061746820643d224d607c8201527f3134312e373436203336342e3534364338382e30383936203333382e31363620609c8201527f36372e37363836203333392e3131372035342e39373036203337382e3631384360bc8201527f35382e30313132203431382e3239322036342e33323732203432392e3533372060dc8201527f38302e37363836203433372e3235433130342e363336203434382e373039203160fc8201527f37302e383736203433322e373732203234372e323833203432322e303035433361011c8201527f35342e383436203433352e333737203432342e383233203434352e303534203461013c8201527f33382e343232203433372e3235433435382e333731203432342e35363920343661015c8201527f362e343939203431342e323937203436342e3232203337382e3631384334343561017c8201527f2e303939203335312e303334203433332e333536203333392e3638342034303361019c8201527f2e323433203335362e3333384c3336352e373139203333362e3430334c3134316101bc8201527f2e373436203336342e3534365a222066696c6c3d222346384638463822202f3e6101dc8201527f3c7061746820643d224d3238392e343938203130312e383736433333312e39396101fc8201527f362038302e37383332203332392e383638203130312e333431203332382e313961021c8201527f35203134392e3935344c3238392e343938203130312e3837365a222066696c6c61023c8201527f3d222344434443444322202f3e3c7061746820643d224d3136362e333731203161025c8201527f33342e3731433135392e3632372039332e36313631203136382e38323920383361027c8201527f2e373738203230382e3538362039362e303132384c3136362e3337312031333461029c8201527f2e37315a222066696c6c3d222344434443444322202f3e3c7061746820643d226102bc8201527f4d3332382e313935203134392e393534433238372e3135322036362e363936396102dc8201527f203230362e3234312036362e36393639203136322e383533203134322e3931386102fc8201527f433134322e353239203139382e363334203134312e323732203232322e35383361031c8201527f203137322e323334203234312e343139433233362e333934203238352e33393361033c8201527f203236392e313831203237392e393735203333342e303538203234312e34313961035c8201527f433334322e323636203232382e353231203334392e33203138322e393738203361037c8201527f32382e313935203134392e3935345a222066696c6c3d2223463846384638222061039c8201527f2f3e3c7061746820643d224d3138322e373838203431362e3134324c3137322e6103bc8201527f323334203331392e393836483330352e393135563432352e353233433236372e6103dc8201527f323037203433382e3331203232362e353031203434382e303135203138322e376103fc8201527f3838203431362e3134325a222066696c6c3d222344434443444322202f3e3c7061041c8201527f61746820643d224d3230332e383935203433382e343232433138382e3836362061043c8201527f3434312e393536203132362e313638203436362e383833203131322e3433203461045c8201527f32392e303431433131332e343132203430322e303132203131352e363238203361047c8201527f37382e343739203132302e393833203335352e313635433132382e393732203361049c8201527f32302e333836203134332e393437203238362e303937203137322e32333420326104bc8201527f34312e3432433233372e323632203238312e383938203236372e3835372032376104dc8201527f322e363131203333322e383835203234322e353932433336312e3035322032386104fc8201527f322e363636203337372e3835203331372e353831203337372e3636332033343661051c8201527f2e393537433337372e36203335362e383432203338302e303132203336372e3161053c8201527f3632203337372e363633203337382e363138433337372e363633203337382e3661055c8201527f3138203337332e393237203430302e383938203337332e393237203432392e3061057c8201527f3431433337332e393237203435372e313835203239372e373036203436352e3361059c8201527f3933203238392e343938203432392e303431433238312e323839203339322e366105bc8201527f39203238362e353035203431302e343836203239372e373036203334362e39356105dc8201527f37433236332e3532203333392e3936203234302e363639203334302e353936206105fc8201527f3139352e363837203334362e393537433230322e333539203335382e3431332061061c8201527f3231382e393235203433342e383839203230332e383935203433382e3432325a61063c8201527f222066696c6c3d222346384638463822202f3e3c7061746820643d224d32343461065c8201527f2e35203237312e323837433332342e35203237312e323837203333342031363061067c8201527f2e38383220323430203136302e38383243313436203136302e3838322031363461069c8201527f2e35203237312e323837203234342e35203237312e3238375a222066696c6c3d6106bc8201527f222344434443444322202f3e3c7061746820643d224d3231352e3632322031396106dc8201527f352e363837433232362e313735203138352e313333203235352e3439312031386106fc8201527f392e383234203236302e313832203139382e303332433234382e34353520323061071c8201527f392e373538203232372e333438203230372e343133203231352e36323220313961073c8201527f352e3638375a222066696c6c3d22626c61636b22202f3e3c7061746820643d2261075c8201527f4d3232312e343835203232382e353231433234322e383238203233372e36303761077c8201527f203234352e343939203233362e373233203236332e37203232382e353231222061079c8201527f66696c6c3d226e6f6e6522202f3e3c2f673e3c636972636c652063783d2231396107bc8201527f342e373838222063793d223136352e3634352220723d223130222066696c6c3d6107dc8201527f22626c61636b222f3e3c636972636c652063783d223238362e353939222063796107fc8201527f3d223136362e39392220723d223130222066696c6c3d22626c61636b222f3e3c61081c82015269339039ba3937b5b29e9160b11b61083c820152613f6a613e28613e22613c41610846850189612ffc565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203237364c3238362e333637203237372e323432563331332e323860608201527f384c3238362e373332203331332e3635334c3330332e343634203330332e373660808201527f334c3238362e373332203237365a22202f3e3c7061746820643d224d3238362e60a08201527f373332203237364c323730203330332e3736334c3238362e373332203331332e60c08201527f363533563239362e313538563237365a22202f3e3c7061746820643d224d323860e08201527f362e373332203331332e3635334c3330332e343634203330332e3736334c32386101008201527f362e373332203239362e313538563331332e3635335a22202f3e3c70617468206101208201527f643d224d323730203330332e3736334c3238362e373332203331332e363533566101408201527f3239362e3135384c323730203330332e3736335a22202f3e3c2f673e3c672073610160820152663a3937b5b29e9160c91b6101808201526101870190565b86612ffc565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203333302e353134563331362e3832314c323730203330362e393360608201527f364c3238362e373332203333302e3531345a22202f3e3c7061746820643d224d60808201527f3238362e373332203331362e3832314c3238362e353236203331372e3037325660a08201527f3332392e3931334c3238362e373332203333302e3531344c3330332e3437342060c08201527f3330362e3933364c3238362e373332203331362e3832315a22202f3e3c2f673e60e0820152631e17b39f60e11b6101008201526101040190565b9695505050505050565b60008351613f86818460208801612b92565b835190830190613f9a818360208801612b92565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008251614007818460208701612b92565b64102132b0b960d91b920191825250600501919050565b7f436f6e73656e737573204c6179657220426561722e202042656172202300000081526000825161405681601d850160208701612b92565b7f2e20204552433438383320636f6d706f7361626c65204e465400000000000000601d939091019283015250603601919050565b7f7b2274726169745f74797065223a2022436c69656e74222c202276616c7565228152621d101160e91b6020820152600086516140ce816023850160208b01612b92565b7f227d2c207b2274726169745f74797065223a2022457468657265756d204c6f676023918401918201526d37911610113b30b63ab2911d101160911b60438201528651614122816051840160208b01612b92565b7f227d2c207b2274726169745f74797065223a2022537461747573222c202276616051929091019182015266363ab2911d101160c91b60718201528551614170816078840160208a01612b92565b61227d60f01b60789290910191820152845161419381607a840160208901612b92565b6141a2607a8284010186612ffc565b9998505050505050505050565b6e2261747472696275746573223a205b60881b815281516000906141da81600f850160208701612b92565b605d60f81b600f939091019283015250601001919050565b634e487b7160e01b600052601260045260246000fd5b600082614217576142176141f2565b500490565b808202811582820484141761076957610769612f5c565b6a2132b0b91021b7b637bab960a91b81526bffffffffffffffffffffffff198360601b16600b8201526000825161427181601f850160208701612b92565b91909101601f019392505050565b60008261428e5761428e6141f2565b500690565b7f436f6e73656e737573204c6179657220436c69656e742044697665727369747981526bffffffffffffffffffffffff198360601b166020820152600082516142e3816034850160208701612b92565b919091016034019392505050565b60006001820161430357614303612f5c565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f6a90830184612bb6565b60006020828403121561434f57600080fd5b8151611fa481612b5f565b7f3c7376672069643d22636f6e73656e7375732d6c617965722d6265617222207781527f696474683d2235303022206865696768743d22353030222076696577426f783d60208201527f2230203020353030203530302220786d6c6e733d22687474703a2f2f7777772e6040820152703b999737b933979918181817b9bb33911f60791b6060820152600084516143f8816071850160208901612b92565b84519083019061440f816071840160208901612b92565b8451910190614425816071840160208801612b92565b651e17b9bb339f60d11b6071929091019182015260770195945050505050565b60008451614457818460208901612b92565b7f2c207b2274726169745f74797065223a20224163636573736f72790000000000908301908152845161449181601b840160208901612b92565b6c111610113b30b63ab2911d101160991b601b929091019182015283516144bf816028840160208801612b92565b61227d60f01b60289290910191820152602a0195945050505050565b7f2c207b2274726169745f74797065223a20224261636b67726f756e64222c20228152683b30b63ab2911d101160b91b602082015260008251614525816029850160208701612b92565b61227d60f01b6029939091019283015250602b0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122060f09ab89867cac20ebbf6c84f605e8dda2c22b108a9da2556ec0defad2b498564736f6c63430008110033

[ Download: CSV Export  ]
[ Download: CSV Export  ]

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