ETH Price: $3,746.31 (-2.70%)

Token

Merge Bear (MB)

Overview

Max Total Supply

2,341 MB

Holders

1,564

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MB
0x04f004eb2431e8f79fe0c671c807ecb2f5cc71ff
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:
MergeBear

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

import {ERC4883Composer} from "./ERC4883Composer.sol";
import {IERC4883} from "./IERC4883.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 MergeBear is ERC4883Composer, Colours, EthereumClients, ERC721Holder {
    /// ERRORS

    /// @notice Thrown when not a client bear
    error NotClientBear();

    /// @notice Thrown when not the Consensus Layer Bear owner
    error NotConsensusLayerBearOwner();

    /// @notice Thrown when not the Execution Layer Bear owner
    error NotExecutionLayerBearOwner();

    /// EVENTS

    struct MergeData {
        uint8 consensusClientId;
        uint8 consensusColourId;
        uint8 executionClientId;
        uint8 executionColourId;
    }

    mapping(uint256 => MergeData) private _mergeData;

    IClientBear private immutable consensusLayerBear;
    IClientBear private immutable executionLayerBear;

    // Supply is controlled by supply of Consensus & Execution Layer Bears
    constructor(address consensusLayerBear_, address executionLayerBear_)
        ERC4883Composer("Merge Bear", "MB", 0.00042 ether, 0, 0)
    {
        consensusLayerBear = IClientBear(consensusLayerBear_);

        if (!consensusLayerBear.supportsInterface(type(IClientBear).interfaceId)) {
            revert NotClientBear();
        }

        executionLayerBear = IClientBear(executionLayerBear_);

        if (!executionLayerBear.supportsInterface(type(IClientBear).interfaceId)) {
            revert NotClientBear();
        }
    }

    function mint(uint256 consensusLayerBearTokenId, uint256 executionLayerBearTokenId) public payable {
        mint(msg.sender, consensusLayerBearTokenId, executionLayerBearTokenId);
    }

    function mint(address to, uint256 consensusLayerBearTokenId, uint256 executionLayerBearTokenId) public payable {
        if (msg.value < price) {
            revert InsufficientPayment();
        }

        // Check token owners match sender
        if (consensusLayerBear.ownerOf(consensusLayerBearTokenId) != msg.sender) {
            revert NotConsensusLayerBearOwner();
        }

        if (executionLayerBear.ownerOf(executionLayerBearTokenId) != msg.sender) {
            revert NotExecutionLayerBearOwner();
        }

        // Set JWT
        consensusLayerBear.setJwt(consensusLayerBearTokenId, executionLayerBearTokenId);
        executionLayerBear.setJwt(executionLayerBearTokenId, consensusLayerBearTokenId);

        unchecked {
            totalSupply++;
        }

        _mergeData[totalSupply] = MergeData(
            consensusLayerBear.clientId(consensusLayerBearTokenId),
            consensusLayerBear.colourId(consensusLayerBearTokenId),
            executionLayerBear.clientId(executionLayerBearTokenId),
            executionLayerBear.colourId(executionLayerBearTokenId)
        );

        _safeMint(to, totalSupply);
    }

    function _generateDescription(uint256 tokenId) internal view virtual override returns (string memory) {
        return string.concat("Merge 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": "Execution Client", "value": "',
            _generateExecutionClient(tokenId),
            '"}, {"trait_type": "Consensus Client", "value": "',
            _generateConsensusClient(tokenId),
            '"}, {"trait_type": "Execution Colour", "value": "',
            _generateExecutionColour(tokenId),
            '"}, {"trait_type": "Consensus Colour", "value": "',
            _generateConsensusColour(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="merge-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 consensusColourValue = _generateConsensusColour(tokenId);
        string memory executionColourValue = _generateExecutionColour(tokenId);

        return string.concat(
            '<g id="merge-bear-',
            Strings.toString(tokenId),
            '">' "<desc>Merge Bear</desc>"
            // Merge bear
            '<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="#383838" />'
            '<path d="M289.498 101.876C331.996 80.7832 329.868 101.341 328.195 149.954L289.498 101.876Z" fill="#383838" />'
            '<path d="M166.371 134.71C159.627 93.6161 168.829 83.778 208.586 96.0128L166.371 134.71Z" fill="#383838" />'
            '<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="#F8F8F8" />'
            '<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="#383838" />'
            '<path d="M294.188 133.537C278.558 140.565 272.033 146.383 264.872 160.508C283.729 170.948 293.316 180.152 308.26 203.895L321.159 186.306C315.382 159.43 310.699 146.264 294.188 133.537Z" fill="#696969" stroke="black" stroke-width="7.62162" stroke-linecap="round" stroke-linejoin="round"/>'
            '<path d="M207.241 139.228C219.2 152.324 213.673 152.092 217.794 160.335C206.104 161.8 197.052 169.693 176.752 195.514C174.004 187.729 173.302 187.34 169.716 175.579C166.13 163.819 195.281 126.131 207.241 139.228Z" fill="#696969" stroke="black" stroke-width="7.62162" stroke-linecap="round" stroke-linejoin="round"/>'
            '<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="#F8F8F8" stroke="black" stroke-width="10"/>'
            '<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="',
            consensusColourValue,
            '" 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="',
            executionColourValue,
            '" 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>"
        );

        // Merge Bear SVG

        // <svg width="500" height="500" viewBox="0 0 500 500" fill="none" 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="#383838" />
        // <path d="M289.498 101.876C331.996 80.7832 329.868 101.341 328.195 149.954L289.498 101.876Z" fill="#383838" />
        // <path d="M166.371 134.71C159.627 93.6161 168.829 83.778 208.586 96.0128L166.371 134.71Z" fill="#383838" />
        // <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="#F8F8F8" />
        // <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="#383838" />
        // <path d="M294.188 133.537C278.558 140.565 272.033 146.383 264.872 160.508C283.729 170.948 293.316 180.152 308.26 203.895L321.159 186.306C315.382 159.43 310.699 146.264 294.188 133.537Z" fill="#696969" stroke="black" stroke-width="7.62162" stroke-linecap="round" stroke-linejoin="round"/>
        // <path d="M207.241 139.228C219.2 152.324 213.673 152.092 217.794 160.335C206.104 161.8 197.052 169.693 176.752 195.514C174.004 187.729 173.302 187.34 169.716 175.579C166.13 163.819 195.281 126.131 207.241 139.228Z" fill="#696969" stroke="black" stroke-width="7.62162" stroke-linecap="round" stroke-linejoin="round"/>
        // <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="#F8F8F8" stroke="black" stroke-width="10"/>
        // <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="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="#FFC0CB" 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>
        // </svg>
    }

    function _generateConsensusClient(uint256 tokenId) internal view returns (string memory) {
        return consensusLayerClients[_mergeData[tokenId].consensusClientId];
    }

    function _generateExecutionClient(uint256 tokenId) internal view returns (string memory) {
        return executionLayerClients[_mergeData[tokenId].executionClientId];
    }

    function _generateConsensusColour(uint256 tokenId) internal view returns (string memory) {
        return colours[_mergeData[tokenId].consensusColourId];
    }

    function _generateExecutionColour(uint256 tokenId) internal view returns (string memory) {
        return colours[_mergeData[tokenId].executionColourId];
    }

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

//  ____________
// < Merge 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 : 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 5 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 6 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 7 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 8 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 9 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 10 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 11 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 12 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 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 : 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 15 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 16 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 17 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 18 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 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":[{"internalType":"address","name":"consensusLayerBear_","type":"address"},{"internalType":"address","name":"executionLayerBear_","type":"address"}],"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":"MaximumAccessories","type":"error"},{"inputs":[],"name":"NonexistentToken","type":"error"},{"inputs":[],"name":"NotAccessoryOwner","type":"error"},{"inputs":[],"name":"NotBackgroundOwner","type":"error"},{"inputs":[],"name":"NotClientBear","type":"error"},{"inputs":[],"name":"NotConsensusLayerBearOwner","type":"error"},{"inputs":[],"name":"NotERC4883","type":"error"},{"inputs":[],"name":"NotExecutionLayerBearOwner","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":"","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"},{"internalType":"uint256","name":"consensusLayerBearTokenId","type":"uint256"},{"internalType":"uint256","name":"executionLayerBearTokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"consensusLayerBearTokenId","type":"uint256"},{"internalType":"uint256","name":"executionLayerBearTokenId","type":"uint256"}],"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":[],"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"}]

6008805460ff1916815560096112c081815268416c696365426c756560b81b6112e052610120908152600c6113008181526b416e7469717565576869746560a01b61132052610140526004611340818152634171756160e01b6113605261016052600a61138081815269417175616d6172696e6560b01b6113a0526101805260056113c081815264417a75726560d81b6113e0526101a05261140081815264426569676560d81b611420526101c05260066114408181526542697371756560d01b611460526101e05261148082815264426c61636b60d81b6114a05261020052600e6114c08181526d109b185b98da1959105b1b5bdb9960921b6114e0526102205261150085815263426c756560e01b611520526102405261154084815269109b1d59559a5bdb195d60b21b611560526102605261158083815264213937bbb760d91b6115a052610280526115c088815268109d5c9b1e55dbdbd960ba1b6115e0526102a052611600888152684361646574426c756560b81b611620526102c052611640848152694368617274726575736560b01b611660526102e0526116808881526843686f636f6c61746560b81b6116a052610300526116c08381526410dbdc985b60da1b6116e052610320526117008181526d436f726e666c6f776572426c756560901b611720526103405261174089815267436f726e73696c6b60c01b611760526103605260076117808181526621b934b6b9b7b760c91b6117a052610380526117c08681526321bcb0b760e11b6117e0526103a0526118008a8152674461726b426c756560c01b611820526103c0526118408a8152672230b935a1bcb0b760c11b611860526103e052600d6118808181526c11185c9ad1dbdb19195b949bd9609a1b6118a052610400526118c08a8152682230b935a3b932b2b760b91b6118e052610420526119008b8152674461726b4772657960c01b61192052610440526119408a8152684461726b4b68616b6960b81b6119605261046052600b6119808181526a4461726b4d6167656e746160a81b6119a052610480526119c08481526d2230b935a7b634bb32a3b932b2b760911b6119e0526104a052611a00878152694461726b4f72616e676560b01b611a20526104c052611a408781526911185c9ad3dc98da1a5960b21b611a60526104e052611a808381526611185c9ad4995960ca1b611aa05261050052611ac0878152692230b935a9b0b636b7b760b11b611ae05261052052611b008981526b2230b935a9b2b0a3b932b2b760a11b611b205261054052611b408281526c4461726b536c617465426c756560981b611b605261056052611b808281526c4461726b536c6174654772657960981b611ba05261058052611bc08281526c4461726b54757271756f69736560981b611be0526105a052611c008781526911185c9ad59a5bdb195d60b21b611c20526105c052611c408c8152674465657050696e6b60c01b611c60526105e052611c808181526a44656570536b79426c756560a81b611ca05261060052611cc08381526644696d4772657960c81b611ce05261062052611d0087815269446f64676572426c756560b01b611d205261064052611d408b81526846697265427269636b60b81b611d605261066052611d808181526a466c6f72616c576869746560a81b611da05261068052611dc08181526a2337b932b9ba23b932b2b760a91b611de0526106a052611e00838152664675636873696160c81b611e20526106c052611e408b8152684761696e73626f726f60b81b611e60526106e052611e808781526947686f7374576869746560b01b611ea05261070052611ec08881526311dbdb1960e21b611ee05261072052611f008b81526811dbdb19195b949bd960ba1b611f205261074052611f408681526423b932b2b760d91b611f605261076052611f808181526a477265656e59656c6c6f7760a81b611fa05261078052611fc0888152634772657960e01b611fe0526107a0526120008c815267486f6e657944657760c01b612020526107c05261204083815266486f7450696e6b60c81b612060526107e0526120808b815268125b991a585b94995960ba1b6120a052610800526120c085815265496e6469676f60d01b6120e052610820526121008681526449766f727960d81b6121205261084052612140868152644b68616b6960d81b61216052610860526121808c8152672630bb32b73232b960c11b6121a052610880526121c08281526c098c2eccadcc8cae484d8eae6d609b1b6121e0526108a0526122008b8152682630bbb723b932b2b760b91b612220526108c0526122408981526b2632b6b7b721b434b33337b760a11b612260526108e0526122808b8152684c69676874426c756560b81b6122a052610900526122c087815269131a59da1d10dbdc985b60b21b6122e052610920526123008b8152682634b3b43a21bcb0b760b91b612320526109405260146123409081527f4c69676874476f6c64656e526f6459656c6c6f770000000000000000000000006123605261096052612380878152692634b3b43a23b932b2b760b11b6123a052610980526123c08b8152684c696768744772657960b81b6123e0526109a0526124008b8152684c6967687450696e6b60b81b612420526109c0526124408181526a2634b3b43a29b0b636b7b760a91b612460526109e0526124808281526c2634b3b43a29b2b0a3b932b2b760991b6124a052610a00526124c08981526b4c69676874536b79426c756560a01b6124e052610a20526125008481526d4c69676874536c6174654772657960901b61252052610a40526125408481526d4c69676874537465656c426c756560901b61256052610a60526125808181526a4c6967687459656c6c6f7760a81b6125a052610a80526125c0888152634c696d6560e01b6125e052610aa0526126008b8152682634b6b2a3b932b2b760b91b61262052610ac052612640868152642634b732b760d91b61266052610ae052612680838152664d6167656e746160c81b6126a052610b00526126c08581526526b0b937b7b760d11b6126e052610b205260106127009081526f4d656469756d417175614d6172696e6560801b61272052610b4052612740878152694d656469756d426c756560b01b61276052610b60526127808981526b1359591a5d5b53dc98da1a5960a21b6127a052610b80526127c08981526b4d656469756d507572706c6560a01b6127e052610ba0526128009384526d26b2b234bab6a9b2b0a3b932b2b760911b61282052610bc093909352600f6128408181526e4d656469756d536c617465426c756560881b61286052610be05260116128809081527026b2b234bab6a9b83934b733a3b932b2b760791b6128a052610c00526128c08181526e4d656469756d54757271756f69736560881b6128e052610c20526129009081526e1359591a5d5b559a5bdb195d149959608a1b61292052610c40526129409788526b4d69646e69676874426c756560a01b61296052610c6097909752612980898152684d696e74437265616d60b81b6129a052610c80526129c0898152684d69737479526f736560b81b6129e052610ca052612a008a81526726b7b1b1b0b9b4b760c11b612a2052610cc052612a408281526a4e6176616a6f576869746560a81b612a6052610ce052612a80868152634e61767960e01b612aa052610d0052612ac0818152664f6c644c61636560c81b612ae052610d2052612b00848152644f6c69766560d81b612b2052610d4052612b408981526827b634bb32a23930b160b91b612b6052610d6052612b80838152654f72616e676560d01b612ba052610d8052612bc08981526813dc985b99d954995960ba1b612be052610da052612c008381526513dc98da1a5960d21b612c2052610dc052612c408781526c14185b1951dbdb19195b949bd9609a1b612c6052610de052612c80898152682830b632a3b932b2b760b91b612ca052610e0052612cc08781526c50616c6554757271756f69736560981b612ce052610e2052612d008781526c14185b19559a5bdb195d149959609a1b612d2052610e4052612d40858152690506170617961576869760b41b612d6052610e6052612d80898152682832b0b1b4283ab33360b91b612da052610e8052612dc0868152635065727560e01b612de052610ea052612e008681526350696e6b60e01b612e2052610ec052612e4086815263506c756d60e01b612e6052610ee052612e8085815269506f77646572426c756560b01b612ea052610f0052612ec083815265507572706c6560d01b612ee052610f2052612f009687526c52656265636361507572706c6560981b612f2052610f40969096526003612f408181526214995960ea1b612f6052610f6052612f80898152682937b9bca13937bbb760b91b612fa052610f8052612fc089815268526f79616c426c756560b81b612fe052610fa0526130008281526a29b0b2323632a13937bbb760a91b61302052610fc0526130408381526529b0b636b7b760d11b61306052610fe0526130808581526929b0b7323ca13937bbb760b11b6130a052611000526130c08a81526729b2b0a3b932b2b760c11b6130e05261102052613100998a526714d95854da195b1b60c21b6131205261104099909952613140828152655369656e6e6160d01b61316052611060526131808281526529b4b63b32b960d11b6131a052611080526131c086815266536b79426c756560c81b6131e0526110a05261320088815268536c617465426c756560b81b613220526110c05261324088815268536c6174654772657960b81b613260526110e05261328085815263536e6f7760e01b6132a052611100526132c08181526a29b83934b733a3b932b2b760a91b6132e0526111205261330088815268537465656c426c756560b81b6133205261114052613340988952622a30b760e91b6133605261116098909852613380938452631519585b60e21b6133a052611180939093526133c09384526654686973746c6560c81b6133e0526111a09390935261340082815265546f6d61746f60d01b613420526111c0526134409485526854757271756f69736560b81b613460526111e09490945261348081815265159a5bdb195d60d21b6134a052611200526134c08281526415da19585d60da1b6134e0526112205261350091825264576869746560d81b6135205261124091909152613540838152695768697465536d6f6b6560b01b61356052611260526135809081526559656c6c6f7760d01b6135a052611280526136006040526135c09283526a2cb2b63637bba3b932b2b760a91b6135e0526112a09290925262000f3791608d620012fc565b506040805160c081018252600460808201818152634265737560e01b60a0840152825282518084018452600681526522b934b3b7b760d11b60208281019190915280840191909152835180850185528281526308ecae8d60e31b81830152838501528351808501909452600a84526913995d1a195c9b5a5b9960b21b90840152606082019290925262000fce91600b919062001359565b506040518060a001604052806040518060400160405280600a8152602001694c69676874686f75736560b01b8152508152602001604051806040016040528060088152602001672637b232b9ba30b960c11b8152508152602001604051806040016040528060068152602001654e696d62757360d01b815250815260200160405180604001604052806005815260200164507279736d60d81b81525081526020016040518060400160405280600481526020016354656b7560e01b815250815250600c906005620010a1929190620013a4565b50348015620010af57600080fd5b506040516200634d3803806200634d833981016040819052620010d29162001486565b6040518060400160405280600a81526020016926b2b933b2902132b0b960b11b8152506040518060400160405280600281526020016126a160f11b81525066017dfcdece400060008084848484848484816000908162001133919062001563565b50600162001142828262001563565b5050506200115f62001159620012a660201b60201c565b620012aa565b60805260c09190915260a052505050506001600160a01b03851660e08190526040516301ffc9a760e01b815263ec2bc39f60e01b60048201529093506301ffc9a792506024019050602060405180830381865afa158015620011c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011eb91906200162f565b62001209576040516339c1c2df60e21b815260040160405180910390fd5b6001600160a01b0381166101008190526040516301ffc9a760e01b815263ec2bc39f60e01b60048201526301ffc9a790602401602060405180830381865afa1580156200125a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200128091906200162f565b6200129e576040516339c1c2df60e21b815260040160405180910390fd5b50506200165a565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562001347579160200282015b8281111562001347578251829062001336908262001563565b50916020019190600101906200131d565b5062001355929150620013ef565b5090565b82805482825590600052602060002090810192821562001347579160200282015b8281111562001347578251829062001393908262001563565b50916020019190600101906200137a565b82805482825590600052602060002090810192821562001347579160200282015b82811115620013475782518290620013de908262001563565b5091602001919060010190620013c5565b808211156200135557600062001406828262001410565b50600101620013ef565b5080546200141e90620014d4565b6000825580601f106200142f575050565b601f0160209004906000526020600020908101906200144f919062001452565b50565b5b8082111562001355576000815560010162001453565b80516001600160a01b03811681146200148157600080fd5b919050565b600080604083850312156200149a57600080fd5b620014a58362001469565b9150620014b56020840162001469565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620014e957607f821691505b6020821081036200150a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200155e57600081815260208120601f850160051c81016020861015620015395750805b601f850160051c820191505b818110156200155a5782815560010162001545565b5050505b505050565b81516001600160401b038111156200157f576200157f620014be565b6200159781620015908454620014d4565b8462001510565b602080601f831160018114620015cf5760008415620015b65750858301515b600019600386901b1c1916600185901b1785556200155a565b600085815260208120601f198616915b828110156200160057888601518255948401946001909101908401620015df565b50858210156200161f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200164257600080fd5b815180151581146200165357600080fd5b9392505050565b60805160a05160c05160e05161010051614c5a620016f360003960008181610f88015281816110b60152818161125901526112f0015260008181610ed6015281816110370152818161114601526111c20152600081816105a001528181610e7701526115da0152600081816104e5015261143e015260008181610537015281816114600152818161149a015261161b0152614c5a6000f3fe6080604052600436106101f95760003560e01c80636a6278421161010d578063a035b1fe116100a0578063c76ab9401161006f578063c76ab94014610622578063c87b56dd14610642578063e985e9c514610662578063ef987d1514610682578063f2fde38b146106a257600080fd5b8063a035b1fe1461058e578063a22cb465146105c2578063a2d6c6da146105e2578063b88d4fde1461060257600080fd5b80638da5cb5b116100dc5780638da5cb5b146105075780638f770ad0146105255780639581adc31461055957806395d89b411461057957600080fd5b80636a6278421461048b57806370a082311461049e578063715018a6146104be57806379eadc25146104d357600080fd5b8063156e29f61161019057806323b872dd1161015f57806323b872dd1461039a57806342842e0e146103ba57806351cff8d9146103da57806356dd4e5d146103fa5780636352211e1461046b57600080fd5b8063156e29f61461033057806318160ddd146103435780631b2ef1ca146103675780631e3bcc8e1461037a57600080fd5b80630dc4f648116101cc5780630dc4f648146102af57806310d0d54c146102cf5780631249c58b146102ef578063150b7a02146102f757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612f0b565b6106c2565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106ed565b60405161022a9190612f78565b34801561026157600080fd5b50610275610270366004612f8b565b61077f565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004612fb9565b6107a6565b005b3480156102bb57600080fd5b506102ad6102ca366004612fe5565b6108c0565b3480156102db57600080fd5b506102ad6102ea366004612fe5565b610b41565b6102ad610e59565b34801561030357600080fd5b5061031761031236600461308c565b610e64565b6040516001600160e01b0319909116815260200161022a565b6102ad61033e36600461313b565b610e75565b34801561034f57600080fd5b5061035960075481565b60405190815260200161022a565b6102ad610375366004613170565b6113fe565b34801561038657600080fd5b506102ad610395366004613192565b61140d565b3480156103a657600080fd5b506102ad6103b53660046131af565b6114ef565b3480156103c657600080fd5b506102ad6103d53660046131af565b611520565b3480156103e657600080fd5b506102ad6103f5366004613192565b61153b565b34801561040657600080fd5b50610447610415366004612f8b565b600960209081526000918252604091829020825180840190935280546001600160a01b03168352600101549082015281565b6040805182516001600160a01b03168152602092830151928101929092520161022a565b34801561047757600080fd5b50610275610486366004612f8b565b611578565b6102ad610499366004613192565b6115d8565b3480156104aa57600080fd5b506103596104b9366004613192565b611667565b3480156104ca57600080fd5b506102ad6116ed565b3480156104df57600080fd5b506103597f000000000000000000000000000000000000000000000000000000000000000081565b34801561051357600080fd5b506006546001600160a01b0316610275565b34801561053157600080fd5b506103597f000000000000000000000000000000000000000000000000000000000000000081565b34801561056557600080fd5b506102ad6105743660046131df565b6116ff565b34801561058557600080fd5b506102486119eb565b34801561059a57600080fd5b506103597f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ce57600080fd5b506102ad6105dd36600461321d565b6119fa565b3480156105ee57600080fd5b506102486105fd366004612f8b565b611a05565b34801561060e57600080fd5b506102ad61061d36600461308c565b611a80565b34801561062e57600080fd5b5061024861063d366004612f8b565b611ab8565b34801561064e57600080fd5b5061024861065d366004612f8b565b611b64565b34801561066e57600080fd5b5061021e61067d36600461324b565b611c28565b34801561068e57600080fd5b506102ad61069d366004612f8b565b611c56565b3480156106ae57600080fd5b506102ad6106bd366004613192565b611ddd565b60006001600160e01b0319821663516b636d60e11b14806106e757506106e782611e53565b92915050565b6060600080546106fc90613279565b80601f016020809104026020016040519081016040528092919081815260200182805461072890613279565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b5050505050905090565b600061078a82611ea3565b506000908152600460205260409020546001600160a01b031690565b60006107b182611578565b9050806001600160a01b0316836001600160a01b0316036108235760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061083f575061083f8133611c28565b6108b15760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161081a565b6108bb8383611f02565b505050565b60006108cb84611578565b90506001600160a01b03811633146108f6576040516359dc379f60e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610943573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096791906132b3565b61098457604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810184905233906001600160a01b03831690636352211e90602401602060405180830381865afa1580156109cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ef91906132d0565b6001600160a01b031614610a165760405163452d40a160e01b815260040160405180910390fd5b6000858152600960205260409020546001600160a01b031615610a4c5760405163618edabf60e11b815260040160405180910390fd5b6040805180820182526001600160a01b038681168252602080830187815260008a8152600990925290849020925183546001600160a01b031916908316178355516001909201919091559051632142170760e11b8152908216906342842e0e90610abe908590309088906004016132ed565b600060405180830381600087803b158015610ad857600080fd5b505af1158015610aec573d6000803e3d6000fd5b5050604080518881526001600160a01b03881660208201529081018690527f6fb89e18301bb67cec000c9c666d1c4a6239ad6796e1f579d23d5490739ff16a9250606001905060405180910390a15050505050565b6000610b4c84611578565b90506001600160a01b0381163314610b77576040516359dc379f60e01b815260040160405180910390fd5b6000848152600960205260409020600201546002198101610bab5760405163defeaaf960e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015284906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1c91906132b3565b610c3957604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810185905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca491906132d0565b6001600160a01b031614610ccb57604051630ff76c1760e01b815260040160405180910390fd5b60005b82811015610d4557600087815260096020526040902060020180546001600160a01b038816919083908110610d0557610d05613311565b60009182526020909120600290910201546001600160a01b031603610d3d57604051639e73380760e01b815260040160405180910390fd5b600101610cce565b506000868152600960209081526040808320815180830183526001600160a01b038a811682528185018a815260029384018054600180820183559189529690972092519590930290910180546001600160a01b0319169482169490941784559051929093019190915551632142170760e11b8152908216906342842e0e90610dd5908690309089906004016132ed565b600060405180830381600087803b158015610def57600080fd5b505af1158015610e03573d6000803e3d6000fd5b5050604080518981526001600160a01b03891660208201529081018790527f6cd6260f2c433df224ddb1f6a6bf56527967124ebe7cfbab89be9a27faaf15619250606001905060405180910390a1505050505050565b610e62336115d8565b565b630a85bd0160e11b5b949350505050565b7f0000000000000000000000000000000000000000000000000000000000000000341015610eb65760405163cd1c886760e01b815260040160405180910390fd5b6040516331a9108f60e11b81526004810183905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906132d0565b6001600160a01b031614610f6857604051634c5678b560e01b815260040160405180910390fd5b6040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610fcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff391906132d0565b6001600160a01b03161461101a5760405163f233e80d60e01b815260040160405180910390fd5b6040516365f8b3d360e11b815260048101839052602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063cbf167a690604401600060405180830381600087803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b50506040516365f8b3d360e11b815260048101849052602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316925063cbf167a69150604401600060405180830381600087803b15801561110457600080fd5b505af1158015611118573d6000803e3d6000fd5b50506007805460010190555050604080516080810191829052633c23d06760e21b90915260848101839052807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f08f419c60a48301602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b89190613327565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d755e5a5856040518263ffffffff1660e01b815260040161120e91815260200190565b602060405180830381865afa15801561122b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124f9190613327565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f08f419c846040518263ffffffff1660e01b81526004016112a591815260200190565b602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e69190613327565b60ff1681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d755e5a5846040518263ffffffff1660e01b815260040161133c91815260200190565b602060405180830381865afa158015611359573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137d9190613327565b60ff908116909152600780546000908152600d6020908152604091829020855181549287015193870151606090970151861663010000000263ff0000001997871662010000029790971663ffff0000199487166101000261ffff199094169190961617919091179190911692909217929092179055546108bb908490611f70565b611409338383610e75565b5050565b611415611f8a565b60085460ff161561143957604051630e203e8b60e01b815260040160405180910390fd5b6007547f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000009061148b908390613360565b11156114c1576007546114be907f0000000000000000000000000000000000000000000000000000000000000000613373565b90505b60005b818110156114dd576114d583611fe4565b6001016114c4565b50506008805460ff1916600117905550565b6114f93382611ffa565b6115155760405162461bcd60e51b815260040161081a90613386565b6108bb838383612058565b6108bb83838360405180602001604052806000815250611a80565b611543611f8a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611409573d6000803e3d6000fd5b6000818152600260205260408120546001600160a01b0316806106e75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161081a565b7f00000000000000000000000000000000000000000000000000000000000000003410156116195760405163cd1c886760e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006007541061165b576040516354db2d5d60e11b815260040160405180910390fd5b61166481611fe4565b50565b60006001600160a01b0382166116d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161081a565b506001600160a01b031660009081526003602052604090205490565b6116f5611f8a565b610e6260006121f4565b600061170a83611578565b90506001600160a01b0381163314611735576040516359dc379f60e01b815260040160405180910390fd5b60008381526009602052604081206002015490805b828110156117b157600086815260096020526040902060020180546001600160a01b03871691908390811061178157611781613311565b60009182526020909120600290910201546001600160a01b0316036117a957600191506117b1565b60010161174a565b816117cf57604051631a96433f60e11b815260040160405180910390fd5b60008681526009602052604081206002018054839081106117f2576117f2613311565b60009182526020918290206040805180820190915260029092020180546001600160a01b0316825260010154918101919091529050815b611834600186613373565b8110156118db576000888152600960205260409020600201611857826001613360565b8154811061186757611867613311565b9060005260206000209060020201600960008a8152602001908152602001600020600201828154811061189c5761189c613311565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501611829565b5060008781526009602052604090206002018054806118fc576118fc6133d4565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101919091559155815190820151604051632142170760e11b81526001600160a01b038316916342842e0e9161195e9130918b91906004016132ed565b600060405180830381600087803b15801561197857600080fd5b505af115801561198c573d6000803e3d6000fd5b50508351602080860151604080518e81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a15050505050505050565b6060600180546106fc90613279565b611409338383612246565b6000818152600260205260409020546060906001600160a01b0316611a3d5760405163163a09e160e31b815260040160405180910390fd5b611a4682612314565b611a4f836123ce565b611a588461241f565b604051602001611a6a93929190613406565b6040516020818303038152906040529050919050565b611a8a3383611ffa565b611aa65760405162461bcd60e51b815260040161081a90613386565b611ab28484848461255d565b50505050565b600a8181548110611ac857600080fd5b906000526020600020016000915090508054611ae390613279565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0f90613279565b8015611b5c5780601f10611b3157610100808354040283529160200191611b5c565b820191906000526020600020905b815481529060010190602001808311611b3f57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b0316611b9c5760405163163a09e160e31b815260040160405180910390fd5b6000611ba783612590565b90506000611bb4846125b5565b90506000611bc1856125d0565b90506000611bce866125e3565b9050611bfe84848484604051602001611bea9493929190613449565b60405160208183030381529060405261266b565b604051602001611c0e919061352d565b604051602081830303815290604052945050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000611c6182611578565b90506001600160a01b0381163314611c8c576040516359dc379f60e01b815260040160405180910390fd5b600082815260096020908152604091829020825180840190935280546001600160a01b031680845260019091015491830191909152611cde5760405163a629928760e01b815260040160405180910390fd5b604080518082018252600080825260208083018281528783526009825291849020925183546001600160a01b0319166001600160a01b0391821617845591516001909301929092558351918401519251632142170760e11b81529192908316916342842e0e91611d5491309188916004016132ed565b600060405180830381600087803b158015611d6e57600080fd5b505af1158015611d82573d6000803e3d6000fd5b50508351602080860151604080518a81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a150505050565b611de5611f8a565b6001600160a01b038116611e4a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081a565b611664816121f4565b60006001600160e01b031982166380ac58cd60e01b1480611e8457506001600160e01b03198216635b5e139f60e01b145b806106e757506301ffc9a760e01b6001600160e01b03198316146106e7565b6000818152600260205260409020546001600160a01b03166116645760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161081a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f3782611578565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6114098282604051806020016040528060008152506127be565b6006546001600160a01b03163314610e625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b6007805460010190819055611664908290611f70565b60008061200683611578565b9050806001600160a01b0316846001600160a01b0316148061202d575061202d8185611c28565b80610e6d5750836001600160a01b03166120468461077f565b6001600160a01b031614949350505050565b826001600160a01b031661206b82611578565b6001600160a01b0316146120cf5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161081a565b6001600160a01b0382166121315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161081a565b61213c600082611f02565b6001600160a01b0383166000908152600360205260408120805460019290612165908490613373565b90915550506001600160a01b0382166000908152600360205260408120805460019290612193908490613360565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122a75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161081a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040805160208082018352600080835284815260099091529190912054606091906001600160a01b0316156106e757600083815260096020526040908190208054600190910154915163516b636d60e11b815260048101929092526001600160a01b03169063a2d6c6da90602401600060405180830381865afa15801561239f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123c79190810190613572565b9392505050565b606060006123db836127f1565b905060006123e8846128b8565b90506123f3846128e7565b8282604051602001612407939291906135e9565b60405160208183030381529060405292505050919050565b604080516020808201835260008083528481526009909152918220600201546060925b8181101561255457600085815260096020526040902060020180548491908390811061247057612470613311565b6000918252602080832060029283020154898452600990915260409092200180546001600160a01b039092169163a2d6c6da9190859081106124b4576124b4613311565b9060005260206000209060020201600101546040518263ffffffff1660e01b81526004016124e491815260200190565b600060405180830381865afa158015612501573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125299190810190613572565b60405160200161253a929190614650565b60408051601f198184030181529190529250600101612442565b50909392505050565b612568848484612058565b612574848484846129e8565b611ab25760405162461bcd60e51b815260040161081a9061467f565b606061259b82612ae6565b6125a483612b0e565b604051602001611a6a9291906146d1565b60606125c0826128e7565b604051602001611a6a9190614721565b60606106e76125de83612b3c565b61266b565b606060006125f083612b0e565b6125f984612ae6565b612602856128b8565b61260b866127f1565b61261487612b84565b61261d88612c4f565b60405160200161263296959493929190614783565b6040516020818303038152906040529050806040516020016126549190614909565b604051602081830303815290604052915050919050565b6060815160000361268a57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614be560409139905060006003845160026126b99190613360565b6126c39190614962565b6126ce906004614976565b67ffffffffffffffff8111156126e6576126e661301d565b6040519080825280601f01601f191660200182016040528015612710576020820181803683370190505b509050600182016020820185865187015b8082101561277c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612721565b505060038651066001811461279857600281146127ab576127b3565b603d6001830353603d60028303536127b3565b603d60018303535b509195945050505050565b6127c88383612cb6565b6127d560008484846129e8565b6108bb5760405162461bcd60e51b815260040161081a9061467f565b6000818152600d6020526040902054600a8054606092610100900460ff1690811061281e5761281e613311565b90600052602060002001805461283390613279565b80601f016020809104026020016040519081016040528092919081815260200182805461285f90613279565b80156128ac5780601f10612881576101008083540402835291602001916128ac565b820191906000526020600020905b81548152906001019060200180831161288f57829003601f168201915b50505050509050919050565b6000818152600d6020526040902054600a80546060926301000000900460ff1690811061281e5761281e613311565b60608160000361290e5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561293857806129228161498d565b91506129319050600a83614962565b9150612912565b60008167ffffffffffffffff8111156129535761295361301d565b6040519080825280601f01601f19166020018201604052801561297d576020820181803683370190505b5090505b8415610e6d57612992600183613373565b915061299f600a866149a6565b6129aa906030613360565b60f81b8183815181106129bf576129bf613311565b60200101906001600160f81b031916908160001a9053506129e1600a86614962565b9450612981565b60006001600160a01b0384163b15612ade57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a2c9033908990889088906004016149ba565b6020604051808303816000875af1925050508015612a67575060408051601f3d908101601f19168201909252612a64918101906149ed565b60015b612ac4573d808015612a95576040519150601f19603f3d011682016040523d82523d6000602084013e612a9a565b606091505b508051600003612abc5760405162461bcd60e51b815260040161081a9061467f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e6d565b506001610e6d565b6000818152600d6020526040902054600c805460609260ff1690811061281e5761281e613311565b6000818152600d6020526040902054600b805460609262010000900460ff1690811061281e5761281e613311565b60606000612b4983612314565b612b52846123ce565b612b5b8561241f565b604051602001612b6d93929190614a0a565b60408051601f198184030181529190529392505050565b604080516020808201835260008083528481526009909152918220600201546060928391905b81811015612c455760008681526009602052604090206002018054612bf9919083908110612bda57612bda613311565b60009182526020909120600290910201546001600160a01b0316612df8565b92508251600014612c3d5783612c18612c13836001613360565b6128e7565b84604051602001612c2b93929190614aeb565b60405160208183030381529060405293505b600101612baa565b5091949350505050565b6040805160208082018352600080835284815260099091529182205460609290612c81906001600160a01b0316612df8565b90508051600014612caf5780604051602001612c9d9190614b81565b60405160208183030381529060405291505b5092915050565b6001600160a01b038216612d0c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161081a565b6000818152600260205260409020546001600160a01b031615612d715760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161081a565b6001600160a01b0382166000908152600360205260408120805460019290612d9a908490613360565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160208101909152600081526060906001600160a01b038316156106e7576040516301ffc9a760e01b8152635b5e139f60e01b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015612e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8a91906132b3565b15612caf57806001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015612ecd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e6d9190810190613572565b6001600160e01b03198116811461166457600080fd5b600060208284031215612f1d57600080fd5b81356123c781612ef5565b60005b83811015612f43578181015183820152602001612f2b565b50506000910152565b60008151808452612f64816020860160208601612f28565b601f01601f19169290920160200192915050565b6020815260006123c76020830184612f4c565b600060208284031215612f9d57600080fd5b5035919050565b6001600160a01b038116811461166457600080fd5b60008060408385031215612fcc57600080fd5b8235612fd781612fa4565b946020939093013593505050565b600080600060608486031215612ffa57600080fd5b83359250602084013561300c81612fa4565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561305c5761305c61301d565b604052919050565b600067ffffffffffffffff82111561307e5761307e61301d565b50601f01601f191660200190565b600080600080608085870312156130a257600080fd5b84356130ad81612fa4565b935060208501356130bd81612fa4565b925060408501359150606085013567ffffffffffffffff8111156130e057600080fd5b8501601f810187136130f157600080fd5b80356131046130ff82613064565b613033565b81815288602083850101111561311957600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060006060848603121561315057600080fd5b833561315b81612fa4565b95602085013595506040909401359392505050565b6000806040838503121561318357600080fd5b50508035926020909101359150565b6000602082840312156131a457600080fd5b81356123c781612fa4565b6000806000606084860312156131c457600080fd5b83356131cf81612fa4565b9250602084013561300c81612fa4565b600080604083850312156131f257600080fd5b82359150602083013561320481612fa4565b809150509250929050565b801515811461166457600080fd5b6000806040838503121561323057600080fd5b823561323b81612fa4565b915060208301356132048161320f565b6000806040838503121561325e57600080fd5b823561326981612fa4565b9150602083013561320481612fa4565b600181811c9082168061328d57607f821691505b6020821081036132ad57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156132c557600080fd5b81516123c78161320f565b6000602082840312156132e257600080fd5b81516123c781612fa4565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561333957600080fd5b815160ff811681146123c757600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106e7576106e761334a565b818103818111156106e7576106e761334a565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b600081516133fc818560208601612f28565b9290920192915050565b60008451613418818460208901612f28565b84519083019061342c818360208901612f28565b845191019061343f818360208801612f28565b0195945050505050565b683d913730b6b2911d1160b91b8152845160009061346e816009850160208a01612f28565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015285516134a081601b840160208a01612f28565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b601b92909101918201526618985cd94d8d0b60ca1b603b82015284516134ee816042840160208901612f28565b61088b60f21b604292909101918201528351613511816044840160208801612f28565b607d60f81b604492909101918201526045019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161356581601d850160208701612f28565b91909101601d0192915050565b60006020828403121561358457600080fd5b815167ffffffffffffffff81111561359b57600080fd5b8201601f810184136135ac57600080fd5b80516135ba6130ff82613064565b8181528560208385010111156135cf57600080fd5b6135e0826020830160208601612f28565b95945050505050565b713c672069643d226d657267652d626561722d60701b81528351600090613617816012850160208901612f28565b7f223e3c646573633e4d6572676520426561723c2f646573633e3c67207374726f6012918401918201527f6b653d22626c61636b22207374726f6b652d77696474683d223130222073747260328201527f6f6b652d6c696e656361703d22726f756e6422207374726f6b652d6c696e656a60528201527f6f696e3d22726f756e64223e3c7061746820643d224d3134312e37343620333660728201527f342e3534364338382e30383936203333382e3136362036372e3736383620333360928201527f392e3131372035342e39373036203337382e3631384335382e3031313220343160b28201527f382e3239322036342e33323732203432392e3533372038302e3736383620343360d28201527f372e3235433130342e363336203434382e373039203137302e3837362034333260f28201527f2e373732203234372e323833203432322e303035433335342e383436203433356101128201527f2e333737203432342e383233203434352e303534203433382e343232203433376101328201527f2e3235433435382e333731203432342e353639203436362e343939203431342e6101528201527f323937203436342e3232203337382e363138433434352e303939203335312e306101728201527f3334203433332e333536203333392e363834203430332e323433203335362e336101928201527f33384c3336352e373139203333362e3430334c3134312e373436203336342e356101b28201527f34365a222066696c6c3d222333383338333822202f3e3c7061746820643d224d6101d28201527f3238392e343938203130312e383736433333312e3939362038302e37383332206101f28201527f3332392e383638203130312e333431203332382e313935203134392e3935344c6102128201527f3238392e343938203130312e3837365a222066696c6c3d2223333833383338226102328201527f202f3e3c7061746820643d224d3136362e333731203133342e3731433135392e6102528201527f3632372039332e36313631203136382e3832392038332e373738203230382e356102728201527f38362039362e303132384c3136362e333731203133342e37315a222066696c6c6102928201527f3d222333383338333822202f3e3c7061746820643d224d3332382e31393520316102b28201527f34392e393534433238372e3135322036362e36393639203230362e32343120366102d28201527f362e36393639203136322e383533203134322e393138433134322e35323920316102f28201527f39382e363334203134312e323732203232322e353833203137322e32333420326103128201527f34312e343139433233362e333934203238352e333933203236392e31383120326103328201527f37392e393735203333342e303538203234312e343139433334322e32363620326103528201527f32382e353231203334392e33203138322e393738203332382e313935203134396103728201527f2e3935345a222066696c6c3d222346384638463822202f3e3c7061746820643d6103928201527f224d3138322e373838203431362e3134324c3137322e323334203331392e39386103b28201527f36483330352e393135563432352e353233433236372e323037203433382e33316103d28201527f203232362e353031203434382e303135203138322e373838203431362e3134326103f28201527f5a222066696c6c3d222346384638463822202f3e3c7061746820643d224d32306104128201527f332e383935203433382e343232433138382e383636203434312e3935362031326104328201527f362e313638203436362e383833203131322e3433203432392e303431433131336104528201527f2e343132203430322e303132203131352e363238203337382e343739203132306104728201527f2e393833203335352e313635433132382e393732203332302e333836203134336104928201527f2e393437203238362e303937203137322e323334203234312e3432433233372e6104b28201527f323632203238312e383938203236372e383537203237322e363131203333322e6104d28201527f383835203234322e353932433336312e303532203238322e363636203337372e6104f28201527f3835203331372e353831203337372e363633203334362e393537433337372e366105128201527f203335362e383432203338302e303132203336372e313632203337372e3636336105328201527f203337382e363138433337372e363633203337382e363138203337332e3932376105528201527f203430302e383938203337332e393237203432392e303431433337332e3932376105728201527f203435372e313835203239372e373036203436352e333933203238392e3439386105928201527f203432392e303431433238312e323839203339322e3639203238362e353035206105b28201527f3431302e343836203239372e373036203334362e393537433236332e353220336105d28201527f33392e3936203234302e363639203334302e353936203139352e3638372033346105f28201527f362e393537433230322e333539203335382e343133203231382e3932352034336106128201527f342e383839203230332e383935203433382e3432325a222066696c6c3d2223336106328201527f383338333822202f3e3c7061746820643d224d3239342e313838203133332e356106528201527f3337433237382e353538203134302e353635203237322e303333203134362e336106728201527f3833203236342e383732203136302e353038433238332e373239203137302e396106928201527f3438203239332e333136203138302e313532203330382e3236203230332e38396106b28201527f354c3332312e313539203138362e333036433331352e333832203135392e34336106d28201527f203331302e363939203134362e323634203239342e313838203133332e3533376106f28201527f5a222066696c6c3d222336393639363922207374726f6b653d22626c61636b226107128201527f207374726f6b652d77696474683d22372e363231363222207374726f6b652d6c6107328201527f696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d226107528201527f726f756e64222f3e3c7061746820643d224d3230372e323431203133392e32326107728201527f38433231392e32203135322e333234203231332e363733203135322e303932206107928201527f3231372e373934203136302e333335433230362e313034203136312e382031396107b28201527f372e303532203136392e363933203137362e373532203139352e3531344331376107d28201527f342e303034203138372e373239203137332e333032203138372e3334203136396107f28201527f2e373136203137352e353739433136362e3133203136332e383139203139352e6108128201527f323831203132362e313331203230372e323431203133392e3232385a222066696108328201527f6c6c3d222336393639363922207374726f6b653d22626c61636b22207374726f6108528201527f6b652d77696474683d22372e363231363222207374726f6b652d6c696e6563616108728201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e646108928201527f222f3e3c7061746820643d224d3234342e35203237312e323837433332342e356108b28201527f203237312e32383720333334203136302e38383220323430203136302e3838326108d28201527f43313436203136302e383832203136342e35203237312e323837203234342e356108f28201527f203237312e3238375a222066696c6c3d222346384638463822207374726f6b656109128201527f3d22626c61636b22207374726f6b652d77696474683d223130222f3e3c7061746109328201527f6820643d224d3231352e363232203139352e363837433232362e3137352031386109528201527f352e313333203235352e343931203138392e383234203236302e3138322031396109728201527f382e303332433234382e343535203230392e373538203232372e3334382032306109928201527f372e343133203231352e363232203139352e3638375a222066696c6c3d22626c6109b28201527f61636b22202f3e3c7061746820643d224d3232312e343835203232382e3532316109d28201527f433234322e383238203233372e363037203234352e343939203233362e3732336109f28201527f203236332e37203232382e353231222066696c6c3d226e6f6e6522202f3e3c2f610a128201527f673e3c636972636c652063783d223139342e373838222063793d223136352e36610a328201527f34352220723d223130222066696c6c3d22626c61636b222f3e3c636972636c65610a528201527f2063783d223238362e353939222063793d223136362e39392220723d22313022610a728201527f2066696c6c3d22626c61636b222f3e3c67207374726f6b653d22000000000000610a928201526146466145046144fe61431d610aac8501896133ea565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203237364c3238362e333637203237372e323432563331332e323860608201527f384c3238362e373332203331332e3635334c3330332e343634203330332e373660808201527f334c3238362e373332203237365a22202f3e3c7061746820643d224d3238362e60a08201527f373332203237364c323730203330332e3736334c3238362e373332203331332e60c08201527f363533563239362e313538563237365a22202f3e3c7061746820643d224d323860e08201527f362e373332203331332e3635334c3330332e343634203330332e3736334c32386101008201527f362e373332203239362e313538563331332e3635335a22202f3e3c70617468206101208201527f643d224d323730203330332e3736334c3238362e373332203331332e363533566101408201527f3239362e3135384c323730203330332e3736335a22202f3e3c2f673e3c672073610160820152663a3937b5b29e9160c91b6101808201526101870190565b866133ea565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203333302e353134563331362e3832314c323730203330362e393360608201527f364c3238362e373332203333302e3531345a22202f3e3c7061746820643d224d60808201527f3238362e373332203331362e3832314c3238362e353236203331372e3037325660a08201527f3332392e3931334c3238362e373332203333302e3531344c3330332e3437342060c08201527f3330362e3933364c3238362e373332203331362e3832315a22202f3e3c2f673e60e0820152631e17b39f60e11b6101008201526101040190565b9695505050505050565b60008351614662818460208801612f28565b835190830190614676818360208801612f28565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600083516146e3818460208801612f28565b6201015960ed1b9083019081528351614703816003840160208801612f28565b64102132b0b960d91b60039290910191820152600801949350505050565b724d6572676520426561722e202042656172202360681b81526000825161474f816013850160208701612f28565b7f2e20204552433438383320636f6d706f7361626c65204e4654000000000000006013939091019283015250602c01919050565b7f7b2274726169745f74797065223a2022457865637574696f6e20436c69656e7481526c111610113b30b63ab2911d101160991b6020820152600087516147d181602d850160208c01612f28565b7f227d2c207b2274726169745f74797065223a2022436f6e73656e73757320436c602d918401918201527034b2b73a111610113b30b63ab2911d101160791b604d820152875161482881605e840160208c01612f28565b7f227d2c207b2274726169745f74797065223a2022457865637574696f6e20436f605e9290910191820152703637bab9111610113b30b63ab2911d101160791b607e820152865161488081608f840160208b01612f28565b6148d56148cf608f838501017f227d2c207b2274726169745f74797065223a2022436f6e73656e73757320436f8152703637bab9111610113b30b63ab2911d101160791b602082015260310190565b886133ea565b9150506148e68161227d60f01b9052565b6148fc6148f660028301876133ea565b856133ea565b9998505050505050505050565b6e2261747472696275746573223a205b60881b8152815160009061493481600f850160208701612f28565b605d60f81b600f939091019283015250601001919050565b634e487b7160e01b600052601260045260246000fd5b6000826149715761497161494c565b500490565b80820281158282048414176106e7576106e761334a565b60006001820161499f5761499f61334a565b5060010190565b6000826149b5576149b561494c565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061464690830184612f4c565b6000602082840312156149ff57600080fd5b81516123c781612ef5565b7f3c7376672069643d226d657267652d62656172222077696474683d223530302281527f206865696768743d22353030222076696577426f783d2230203020353030203560208201527f30302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f3230306040820152661817b9bb33911f60c91b606082015260008451614a9e816067850160208901612f28565b845190830190614ab5816067840160208901612f28565b8451910190614acb816067840160208801612f28565b651e17b9bb339f60d11b60679290910191820152606d0195945050505050565b60008451614afd818460208901612f28565b7f2c207b2274726169745f74797065223a20224163636573736f727900000000009083019081528451614b3781601b840160208901612f28565b6c111610113b30b63ab2911d101160991b601b92909101918201528351614b65816028840160208801612f28565b61227d60f01b60289290910191820152602a0195945050505050565b7f2c207b2274726169745f74797065223a20224261636b67726f756e64222c20228152683b30b63ab2911d101160b91b602082015260008251614bcb816029850160208701612f28565b61227d60f01b6029939091019283015250602b0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208c81805e5d5bb3d1962422ca0c8133908441dbda4e1215e4e78bb4573d5bbb2264736f6c63430008110033000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636a6278421161010d578063a035b1fe116100a0578063c76ab9401161006f578063c76ab94014610622578063c87b56dd14610642578063e985e9c514610662578063ef987d1514610682578063f2fde38b146106a257600080fd5b8063a035b1fe1461058e578063a22cb465146105c2578063a2d6c6da146105e2578063b88d4fde1461060257600080fd5b80638da5cb5b116100dc5780638da5cb5b146105075780638f770ad0146105255780639581adc31461055957806395d89b411461057957600080fd5b80636a6278421461048b57806370a082311461049e578063715018a6146104be57806379eadc25146104d357600080fd5b8063156e29f61161019057806323b872dd1161015f57806323b872dd1461039a57806342842e0e146103ba57806351cff8d9146103da57806356dd4e5d146103fa5780636352211e1461046b57600080fd5b8063156e29f61461033057806318160ddd146103435780631b2ef1ca146103675780631e3bcc8e1461037a57600080fd5b80630dc4f648116101cc5780630dc4f648146102af57806310d0d54c146102cf5780631249c58b146102ef578063150b7a02146102f757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612f0b565b6106c2565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106ed565b60405161022a9190612f78565b34801561026157600080fd5b50610275610270366004612f8b565b61077f565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004612fb9565b6107a6565b005b3480156102bb57600080fd5b506102ad6102ca366004612fe5565b6108c0565b3480156102db57600080fd5b506102ad6102ea366004612fe5565b610b41565b6102ad610e59565b34801561030357600080fd5b5061031761031236600461308c565b610e64565b6040516001600160e01b0319909116815260200161022a565b6102ad61033e36600461313b565b610e75565b34801561034f57600080fd5b5061035960075481565b60405190815260200161022a565b6102ad610375366004613170565b6113fe565b34801561038657600080fd5b506102ad610395366004613192565b61140d565b3480156103a657600080fd5b506102ad6103b53660046131af565b6114ef565b3480156103c657600080fd5b506102ad6103d53660046131af565b611520565b3480156103e657600080fd5b506102ad6103f5366004613192565b61153b565b34801561040657600080fd5b50610447610415366004612f8b565b600960209081526000918252604091829020825180840190935280546001600160a01b03168352600101549082015281565b6040805182516001600160a01b03168152602092830151928101929092520161022a565b34801561047757600080fd5b50610275610486366004612f8b565b611578565b6102ad610499366004613192565b6115d8565b3480156104aa57600080fd5b506103596104b9366004613192565b611667565b3480156104ca57600080fd5b506102ad6116ed565b3480156104df57600080fd5b506103597f000000000000000000000000000000000000000000000000000000000000000081565b34801561051357600080fd5b506006546001600160a01b0316610275565b34801561053157600080fd5b506103597f000000000000000000000000000000000000000000000000000000000000000081565b34801561056557600080fd5b506102ad6105743660046131df565b6116ff565b34801561058557600080fd5b506102486119eb565b34801561059a57600080fd5b506103597f00000000000000000000000000000000000000000000000000017dfcdece400081565b3480156105ce57600080fd5b506102ad6105dd36600461321d565b6119fa565b3480156105ee57600080fd5b506102486105fd366004612f8b565b611a05565b34801561060e57600080fd5b506102ad61061d36600461308c565b611a80565b34801561062e57600080fd5b5061024861063d366004612f8b565b611ab8565b34801561064e57600080fd5b5061024861065d366004612f8b565b611b64565b34801561066e57600080fd5b5061021e61067d36600461324b565b611c28565b34801561068e57600080fd5b506102ad61069d366004612f8b565b611c56565b3480156106ae57600080fd5b506102ad6106bd366004613192565b611ddd565b60006001600160e01b0319821663516b636d60e11b14806106e757506106e782611e53565b92915050565b6060600080546106fc90613279565b80601f016020809104026020016040519081016040528092919081815260200182805461072890613279565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b5050505050905090565b600061078a82611ea3565b506000908152600460205260409020546001600160a01b031690565b60006107b182611578565b9050806001600160a01b0316836001600160a01b0316036108235760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061083f575061083f8133611c28565b6108b15760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161081a565b6108bb8383611f02565b505050565b60006108cb84611578565b90506001600160a01b03811633146108f6576040516359dc379f60e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610943573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096791906132b3565b61098457604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810184905233906001600160a01b03831690636352211e90602401602060405180830381865afa1580156109cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ef91906132d0565b6001600160a01b031614610a165760405163452d40a160e01b815260040160405180910390fd5b6000858152600960205260409020546001600160a01b031615610a4c5760405163618edabf60e11b815260040160405180910390fd5b6040805180820182526001600160a01b038681168252602080830187815260008a8152600990925290849020925183546001600160a01b031916908316178355516001909201919091559051632142170760e11b8152908216906342842e0e90610abe908590309088906004016132ed565b600060405180830381600087803b158015610ad857600080fd5b505af1158015610aec573d6000803e3d6000fd5b5050604080518881526001600160a01b03881660208201529081018690527f6fb89e18301bb67cec000c9c666d1c4a6239ad6796e1f579d23d5490739ff16a9250606001905060405180910390a15050505050565b6000610b4c84611578565b90506001600160a01b0381163314610b77576040516359dc379f60e01b815260040160405180910390fd5b6000848152600960205260409020600201546002198101610bab5760405163defeaaf960e01b815260040160405180910390fd5b6040516301ffc9a760e01b815263516b636d60e11b600482015284906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1c91906132b3565b610c3957604051630fa9731b60e41b815260040160405180910390fd5b6040516331a9108f60e11b81526004810185905233906001600160a01b03831690636352211e90602401602060405180830381865afa158015610c80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca491906132d0565b6001600160a01b031614610ccb57604051630ff76c1760e01b815260040160405180910390fd5b60005b82811015610d4557600087815260096020526040902060020180546001600160a01b038816919083908110610d0557610d05613311565b60009182526020909120600290910201546001600160a01b031603610d3d57604051639e73380760e01b815260040160405180910390fd5b600101610cce565b506000868152600960209081526040808320815180830183526001600160a01b038a811682528185018a815260029384018054600180820183559189529690972092519590930290910180546001600160a01b0319169482169490941784559051929093019190915551632142170760e11b8152908216906342842e0e90610dd5908690309089906004016132ed565b600060405180830381600087803b158015610def57600080fd5b505af1158015610e03573d6000803e3d6000fd5b5050604080518981526001600160a01b03891660208201529081018790527f6cd6260f2c433df224ddb1f6a6bf56527967124ebe7cfbab89be9a27faaf15619250606001905060405180910390a1505050505050565b610e62336115d8565b565b630a85bd0160e11b5b949350505050565b7f00000000000000000000000000000000000000000000000000017dfcdece4000341015610eb65760405163cd1c886760e01b815260040160405180910390fd5b6040516331a9108f60e11b81526004810183905233906001600160a01b037f000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f1690636352211e90602401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906132d0565b6001600160a01b031614610f6857604051634c5678b560e01b815260040160405180910390fd5b6040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff1690636352211e90602401602060405180830381865afa158015610fcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff391906132d0565b6001600160a01b03161461101a5760405163f233e80d60e01b815260040160405180910390fd5b6040516365f8b3d360e11b815260048101839052602481018290527f000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f6001600160a01b03169063cbf167a690604401600060405180830381600087803b15801561108357600080fd5b505af1158015611097573d6000803e3d6000fd5b50506040516365f8b3d360e11b815260048101849052602481018590527f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff6001600160a01b0316925063cbf167a69150604401600060405180830381600087803b15801561110457600080fd5b505af1158015611118573d6000803e3d6000fd5b50506007805460010190555050604080516080810191829052633c23d06760e21b90915260848101839052807f000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f6001600160a01b031663f08f419c60a48301602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b89190613327565b60ff1681526020017f000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f6001600160a01b031663d755e5a5856040518263ffffffff1660e01b815260040161120e91815260200190565b602060405180830381865afa15801561122b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124f9190613327565b60ff1681526020017f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff6001600160a01b031663f08f419c846040518263ffffffff1660e01b81526004016112a591815260200190565b602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e69190613327565b60ff1681526020017f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff6001600160a01b031663d755e5a5846040518263ffffffff1660e01b815260040161133c91815260200190565b602060405180830381865afa158015611359573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137d9190613327565b60ff908116909152600780546000908152600d6020908152604091829020855181549287015193870151606090970151861663010000000263ff0000001997871662010000029790971663ffff0000199487166101000261ffff199094169190961617919091179190911692909217929092179055546108bb908490611f70565b611409338383610e75565b5050565b611415611f8a565b60085460ff161561143957604051630e203e8b60e01b815260040160405180910390fd5b6007547f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000009061148b908390613360565b11156114c1576007546114be907f0000000000000000000000000000000000000000000000000000000000000000613373565b90505b60005b818110156114dd576114d583611fe4565b6001016114c4565b50506008805460ff1916600117905550565b6114f93382611ffa565b6115155760405162461bcd60e51b815260040161081a90613386565b6108bb838383612058565b6108bb83838360405180602001604052806000815250611a80565b611543611f8a565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611409573d6000803e3d6000fd5b6000818152600260205260408120546001600160a01b0316806106e75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161081a565b7f00000000000000000000000000000000000000000000000000017dfcdece40003410156116195760405163cd1c886760e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006007541061165b576040516354db2d5d60e11b815260040160405180910390fd5b61166481611fe4565b50565b60006001600160a01b0382166116d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161081a565b506001600160a01b031660009081526003602052604090205490565b6116f5611f8a565b610e6260006121f4565b600061170a83611578565b90506001600160a01b0381163314611735576040516359dc379f60e01b815260040160405180910390fd5b60008381526009602052604081206002015490805b828110156117b157600086815260096020526040902060020180546001600160a01b03871691908390811061178157611781613311565b60009182526020909120600290910201546001600160a01b0316036117a957600191506117b1565b60010161174a565b816117cf57604051631a96433f60e11b815260040160405180910390fd5b60008681526009602052604081206002018054839081106117f2576117f2613311565b60009182526020918290206040805180820190915260029092020180546001600160a01b0316825260010154918101919091529050815b611834600186613373565b8110156118db576000888152600960205260409020600201611857826001613360565b8154811061186757611867613311565b9060005260206000209060020201600960008a8152602001908152602001600020600201828154811061189c5761189c613311565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501611829565b5060008781526009602052604090206002018054806118fc576118fc6133d4565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101919091559155815190820151604051632142170760e11b81526001600160a01b038316916342842e0e9161195e9130918b91906004016132ed565b600060405180830381600087803b15801561197857600080fd5b505af115801561198c573d6000803e3d6000fd5b50508351602080860151604080518e81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a15050505050505050565b6060600180546106fc90613279565b611409338383612246565b6000818152600260205260409020546060906001600160a01b0316611a3d5760405163163a09e160e31b815260040160405180910390fd5b611a4682612314565b611a4f836123ce565b611a588461241f565b604051602001611a6a93929190613406565b6040516020818303038152906040529050919050565b611a8a3383611ffa565b611aa65760405162461bcd60e51b815260040161081a90613386565b611ab28484848461255d565b50505050565b600a8181548110611ac857600080fd5b906000526020600020016000915090508054611ae390613279565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0f90613279565b8015611b5c5780601f10611b3157610100808354040283529160200191611b5c565b820191906000526020600020905b815481529060010190602001808311611b3f57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b0316611b9c5760405163163a09e160e31b815260040160405180910390fd5b6000611ba783612590565b90506000611bb4846125b5565b90506000611bc1856125d0565b90506000611bce866125e3565b9050611bfe84848484604051602001611bea9493929190613449565b60405160208183030381529060405261266b565b604051602001611c0e919061352d565b604051602081830303815290604052945050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000611c6182611578565b90506001600160a01b0381163314611c8c576040516359dc379f60e01b815260040160405180910390fd5b600082815260096020908152604091829020825180840190935280546001600160a01b031680845260019091015491830191909152611cde5760405163a629928760e01b815260040160405180910390fd5b604080518082018252600080825260208083018281528783526009825291849020925183546001600160a01b0319166001600160a01b0391821617845591516001909301929092558351918401519251632142170760e11b81529192908316916342842e0e91611d5491309188916004016132ed565b600060405180830381600087803b158015611d6e57600080fd5b505af1158015611d82573d6000803e3d6000fd5b50508351602080860151604080518a81526001600160a01b039094169284019290925282820152517f32c87699612c3c968cc92c27b1dc085d0fa34f62b98429ca3aa984789c05bcef9350908190036060019150a150505050565b611de5611f8a565b6001600160a01b038116611e4a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081a565b611664816121f4565b60006001600160e01b031982166380ac58cd60e01b1480611e8457506001600160e01b03198216635b5e139f60e01b145b806106e757506301ffc9a760e01b6001600160e01b03198316146106e7565b6000818152600260205260409020546001600160a01b03166116645760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161081a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f3782611578565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6114098282604051806020016040528060008152506127be565b6006546001600160a01b03163314610e625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081a565b6007805460010190819055611664908290611f70565b60008061200683611578565b9050806001600160a01b0316846001600160a01b0316148061202d575061202d8185611c28565b80610e6d5750836001600160a01b03166120468461077f565b6001600160a01b031614949350505050565b826001600160a01b031661206b82611578565b6001600160a01b0316146120cf5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161081a565b6001600160a01b0382166121315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161081a565b61213c600082611f02565b6001600160a01b0383166000908152600360205260408120805460019290612165908490613373565b90915550506001600160a01b0382166000908152600360205260408120805460019290612193908490613360565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122a75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161081a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040805160208082018352600080835284815260099091529190912054606091906001600160a01b0316156106e757600083815260096020526040908190208054600190910154915163516b636d60e11b815260048101929092526001600160a01b03169063a2d6c6da90602401600060405180830381865afa15801561239f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123c79190810190613572565b9392505050565b606060006123db836127f1565b905060006123e8846128b8565b90506123f3846128e7565b8282604051602001612407939291906135e9565b60405160208183030381529060405292505050919050565b604080516020808201835260008083528481526009909152918220600201546060925b8181101561255457600085815260096020526040902060020180548491908390811061247057612470613311565b6000918252602080832060029283020154898452600990915260409092200180546001600160a01b039092169163a2d6c6da9190859081106124b4576124b4613311565b9060005260206000209060020201600101546040518263ffffffff1660e01b81526004016124e491815260200190565b600060405180830381865afa158015612501573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125299190810190613572565b60405160200161253a929190614650565b60408051601f198184030181529190529250600101612442565b50909392505050565b612568848484612058565b612574848484846129e8565b611ab25760405162461bcd60e51b815260040161081a9061467f565b606061259b82612ae6565b6125a483612b0e565b604051602001611a6a9291906146d1565b60606125c0826128e7565b604051602001611a6a9190614721565b60606106e76125de83612b3c565b61266b565b606060006125f083612b0e565b6125f984612ae6565b612602856128b8565b61260b866127f1565b61261487612b84565b61261d88612c4f565b60405160200161263296959493929190614783565b6040516020818303038152906040529050806040516020016126549190614909565b604051602081830303815290604052915050919050565b6060815160000361268a57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614be560409139905060006003845160026126b99190613360565b6126c39190614962565b6126ce906004614976565b67ffffffffffffffff8111156126e6576126e661301d565b6040519080825280601f01601f191660200182016040528015612710576020820181803683370190505b509050600182016020820185865187015b8082101561277c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612721565b505060038651066001811461279857600281146127ab576127b3565b603d6001830353603d60028303536127b3565b603d60018303535b509195945050505050565b6127c88383612cb6565b6127d560008484846129e8565b6108bb5760405162461bcd60e51b815260040161081a9061467f565b6000818152600d6020526040902054600a8054606092610100900460ff1690811061281e5761281e613311565b90600052602060002001805461283390613279565b80601f016020809104026020016040519081016040528092919081815260200182805461285f90613279565b80156128ac5780601f10612881576101008083540402835291602001916128ac565b820191906000526020600020905b81548152906001019060200180831161288f57829003601f168201915b50505050509050919050565b6000818152600d6020526040902054600a80546060926301000000900460ff1690811061281e5761281e613311565b60608160000361290e5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561293857806129228161498d565b91506129319050600a83614962565b9150612912565b60008167ffffffffffffffff8111156129535761295361301d565b6040519080825280601f01601f19166020018201604052801561297d576020820181803683370190505b5090505b8415610e6d57612992600183613373565b915061299f600a866149a6565b6129aa906030613360565b60f81b8183815181106129bf576129bf613311565b60200101906001600160f81b031916908160001a9053506129e1600a86614962565b9450612981565b60006001600160a01b0384163b15612ade57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a2c9033908990889088906004016149ba565b6020604051808303816000875af1925050508015612a67575060408051601f3d908101601f19168201909252612a64918101906149ed565b60015b612ac4573d808015612a95576040519150601f19603f3d011682016040523d82523d6000602084013e612a9a565b606091505b508051600003612abc5760405162461bcd60e51b815260040161081a9061467f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e6d565b506001610e6d565b6000818152600d6020526040902054600c805460609260ff1690811061281e5761281e613311565b6000818152600d6020526040902054600b805460609262010000900460ff1690811061281e5761281e613311565b60606000612b4983612314565b612b52846123ce565b612b5b8561241f565b604051602001612b6d93929190614a0a565b60408051601f198184030181529190529392505050565b604080516020808201835260008083528481526009909152918220600201546060928391905b81811015612c455760008681526009602052604090206002018054612bf9919083908110612bda57612bda613311565b60009182526020909120600290910201546001600160a01b0316612df8565b92508251600014612c3d5783612c18612c13836001613360565b6128e7565b84604051602001612c2b93929190614aeb565b60405160208183030381529060405293505b600101612baa565b5091949350505050565b6040805160208082018352600080835284815260099091529182205460609290612c81906001600160a01b0316612df8565b90508051600014612caf5780604051602001612c9d9190614b81565b60405160208183030381529060405291505b5092915050565b6001600160a01b038216612d0c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161081a565b6000818152600260205260409020546001600160a01b031615612d715760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161081a565b6001600160a01b0382166000908152600360205260408120805460019290612d9a908490613360565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160208101909152600081526060906001600160a01b038316156106e7576040516301ffc9a760e01b8152635b5e139f60e01b600482015283906001600160a01b038216906301ffc9a790602401602060405180830381865afa158015612e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8a91906132b3565b15612caf57806001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015612ecd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e6d9190810190613572565b6001600160e01b03198116811461166457600080fd5b600060208284031215612f1d57600080fd5b81356123c781612ef5565b60005b83811015612f43578181015183820152602001612f2b565b50506000910152565b60008151808452612f64816020860160208601612f28565b601f01601f19169290920160200192915050565b6020815260006123c76020830184612f4c565b600060208284031215612f9d57600080fd5b5035919050565b6001600160a01b038116811461166457600080fd5b60008060408385031215612fcc57600080fd5b8235612fd781612fa4565b946020939093013593505050565b600080600060608486031215612ffa57600080fd5b83359250602084013561300c81612fa4565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561305c5761305c61301d565b604052919050565b600067ffffffffffffffff82111561307e5761307e61301d565b50601f01601f191660200190565b600080600080608085870312156130a257600080fd5b84356130ad81612fa4565b935060208501356130bd81612fa4565b925060408501359150606085013567ffffffffffffffff8111156130e057600080fd5b8501601f810187136130f157600080fd5b80356131046130ff82613064565b613033565b81815288602083850101111561311957600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060006060848603121561315057600080fd5b833561315b81612fa4565b95602085013595506040909401359392505050565b6000806040838503121561318357600080fd5b50508035926020909101359150565b6000602082840312156131a457600080fd5b81356123c781612fa4565b6000806000606084860312156131c457600080fd5b83356131cf81612fa4565b9250602084013561300c81612fa4565b600080604083850312156131f257600080fd5b82359150602083013561320481612fa4565b809150509250929050565b801515811461166457600080fd5b6000806040838503121561323057600080fd5b823561323b81612fa4565b915060208301356132048161320f565b6000806040838503121561325e57600080fd5b823561326981612fa4565b9150602083013561320481612fa4565b600181811c9082168061328d57607f821691505b6020821081036132ad57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156132c557600080fd5b81516123c78161320f565b6000602082840312156132e257600080fd5b81516123c781612fa4565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561333957600080fd5b815160ff811681146123c757600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106e7576106e761334a565b818103818111156106e7576106e761334a565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b600081516133fc818560208601612f28565b9290920192915050565b60008451613418818460208901612f28565b84519083019061342c818360208901612f28565b845191019061343f818360208801612f28565b0195945050505050565b683d913730b6b2911d1160b91b8152845160009061346e816009850160208a01612f28565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015285516134a081601b840160208a01612f28565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b601b92909101918201526618985cd94d8d0b60ca1b603b82015284516134ee816042840160208901612f28565b61088b60f21b604292909101918201528351613511816044840160208801612f28565b607d60f81b604492909101918201526045019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161356581601d850160208701612f28565b91909101601d0192915050565b60006020828403121561358457600080fd5b815167ffffffffffffffff81111561359b57600080fd5b8201601f810184136135ac57600080fd5b80516135ba6130ff82613064565b8181528560208385010111156135cf57600080fd5b6135e0826020830160208601612f28565b95945050505050565b713c672069643d226d657267652d626561722d60701b81528351600090613617816012850160208901612f28565b7f223e3c646573633e4d6572676520426561723c2f646573633e3c67207374726f6012918401918201527f6b653d22626c61636b22207374726f6b652d77696474683d223130222073747260328201527f6f6b652d6c696e656361703d22726f756e6422207374726f6b652d6c696e656a60528201527f6f696e3d22726f756e64223e3c7061746820643d224d3134312e37343620333660728201527f342e3534364338382e30383936203333382e3136362036372e3736383620333360928201527f392e3131372035342e39373036203337382e3631384335382e3031313220343160b28201527f382e3239322036342e33323732203432392e3533372038302e3736383620343360d28201527f372e3235433130342e363336203434382e373039203137302e3837362034333260f28201527f2e373732203234372e323833203432322e303035433335342e383436203433356101128201527f2e333737203432342e383233203434352e303534203433382e343232203433376101328201527f2e3235433435382e333731203432342e353639203436362e343939203431342e6101528201527f323937203436342e3232203337382e363138433434352e303939203335312e306101728201527f3334203433332e333536203333392e363834203430332e323433203335362e336101928201527f33384c3336352e373139203333362e3430334c3134312e373436203336342e356101b28201527f34365a222066696c6c3d222333383338333822202f3e3c7061746820643d224d6101d28201527f3238392e343938203130312e383736433333312e3939362038302e37383332206101f28201527f3332392e383638203130312e333431203332382e313935203134392e3935344c6102128201527f3238392e343938203130312e3837365a222066696c6c3d2223333833383338226102328201527f202f3e3c7061746820643d224d3136362e333731203133342e3731433135392e6102528201527f3632372039332e36313631203136382e3832392038332e373738203230382e356102728201527f38362039362e303132384c3136362e333731203133342e37315a222066696c6c6102928201527f3d222333383338333822202f3e3c7061746820643d224d3332382e31393520316102b28201527f34392e393534433238372e3135322036362e36393639203230362e32343120366102d28201527f362e36393639203136322e383533203134322e393138433134322e35323920316102f28201527f39382e363334203134312e323732203232322e353833203137322e32333420326103128201527f34312e343139433233362e333934203238352e333933203236392e31383120326103328201527f37392e393735203333342e303538203234312e343139433334322e32363620326103528201527f32382e353231203334392e33203138322e393738203332382e313935203134396103728201527f2e3935345a222066696c6c3d222346384638463822202f3e3c7061746820643d6103928201527f224d3138322e373838203431362e3134324c3137322e323334203331392e39386103b28201527f36483330352e393135563432352e353233433236372e323037203433382e33316103d28201527f203232362e353031203434382e303135203138322e373838203431362e3134326103f28201527f5a222066696c6c3d222346384638463822202f3e3c7061746820643d224d32306104128201527f332e383935203433382e343232433138382e383636203434312e3935362031326104328201527f362e313638203436362e383833203131322e3433203432392e303431433131336104528201527f2e343132203430322e303132203131352e363238203337382e343739203132306104728201527f2e393833203335352e313635433132382e393732203332302e333836203134336104928201527f2e393437203238362e303937203137322e323334203234312e3432433233372e6104b28201527f323632203238312e383938203236372e383537203237322e363131203333322e6104d28201527f383835203234322e353932433336312e303532203238322e363636203337372e6104f28201527f3835203331372e353831203337372e363633203334362e393537433337372e366105128201527f203335362e383432203338302e303132203336372e313632203337372e3636336105328201527f203337382e363138433337372e363633203337382e363138203337332e3932376105528201527f203430302e383938203337332e393237203432392e303431433337332e3932376105728201527f203435372e313835203239372e373036203436352e333933203238392e3439386105928201527f203432392e303431433238312e323839203339322e3639203238362e353035206105b28201527f3431302e343836203239372e373036203334362e393537433236332e353220336105d28201527f33392e3936203234302e363639203334302e353936203139352e3638372033346105f28201527f362e393537433230322e333539203335382e343133203231382e3932352034336106128201527f342e383839203230332e383935203433382e3432325a222066696c6c3d2223336106328201527f383338333822202f3e3c7061746820643d224d3239342e313838203133332e356106528201527f3337433237382e353538203134302e353635203237322e303333203134362e336106728201527f3833203236342e383732203136302e353038433238332e373239203137302e396106928201527f3438203239332e333136203138302e313532203330382e3236203230332e38396106b28201527f354c3332312e313539203138362e333036433331352e333832203135392e34336106d28201527f203331302e363939203134362e323634203239342e313838203133332e3533376106f28201527f5a222066696c6c3d222336393639363922207374726f6b653d22626c61636b226107128201527f207374726f6b652d77696474683d22372e363231363222207374726f6b652d6c6107328201527f696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d226107528201527f726f756e64222f3e3c7061746820643d224d3230372e323431203133392e32326107728201527f38433231392e32203135322e333234203231332e363733203135322e303932206107928201527f3231372e373934203136302e333335433230362e313034203136312e382031396107b28201527f372e303532203136392e363933203137362e373532203139352e3531344331376107d28201527f342e303034203138372e373239203137332e333032203138372e3334203136396107f28201527f2e373136203137352e353739433136362e3133203136332e383139203139352e6108128201527f323831203132362e313331203230372e323431203133392e3232385a222066696108328201527f6c6c3d222336393639363922207374726f6b653d22626c61636b22207374726f6108528201527f6b652d77696474683d22372e363231363222207374726f6b652d6c696e6563616108728201527f703d22726f756e6422207374726f6b652d6c696e656a6f696e3d22726f756e646108928201527f222f3e3c7061746820643d224d3234342e35203237312e323837433332342e356108b28201527f203237312e32383720333334203136302e38383220323430203136302e3838326108d28201527f43313436203136302e383832203136342e35203237312e323837203234342e356108f28201527f203237312e3238375a222066696c6c3d222346384638463822207374726f6b656109128201527f3d22626c61636b22207374726f6b652d77696474683d223130222f3e3c7061746109328201527f6820643d224d3231352e363232203139352e363837433232362e3137352031386109528201527f352e313333203235352e343931203138392e383234203236302e3138322031396109728201527f382e303332433234382e343535203230392e373538203232372e3334382032306109928201527f372e343133203231352e363232203139352e3638375a222066696c6c3d22626c6109b28201527f61636b22202f3e3c7061746820643d224d3232312e343835203232382e3532316109d28201527f433234322e383238203233372e363037203234352e343939203233362e3732336109f28201527f203236332e37203232382e353231222066696c6c3d226e6f6e6522202f3e3c2f610a128201527f673e3c636972636c652063783d223139342e373838222063793d223136352e36610a328201527f34352220723d223130222066696c6c3d22626c61636b222f3e3c636972636c65610a528201527f2063783d223238362e353939222063793d223136362e39392220723d22313022610a728201527f2066696c6c3d22626c61636b222f3e3c67207374726f6b653d22000000000000610a928201526146466145046144fe61431d610aac8501896133ea565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203237364c3238362e333637203237372e323432563331332e323860608201527f384c3238362e373332203331332e3635334c3330332e343634203330332e373660808201527f334c3238362e373332203237365a22202f3e3c7061746820643d224d3238362e60a08201527f373332203237364c323730203330332e3736334c3238362e373332203331332e60c08201527f363533563239362e313538563237365a22202f3e3c7061746820643d224d323860e08201527f362e373332203331332e3635334c3330332e343634203330332e3736334c32386101008201527f362e373332203239362e313538563331332e3635335a22202f3e3c70617468206101208201527f643d224d323730203330332e3736334c3238362e373332203331332e363533566101408201527f3239362e3135384c323730203330332e3736335a22202f3e3c2f673e3c672073610160820152663a3937b5b29e9160c91b6101808201526101870190565b866133ea565b7f22207374726f6b652d77696474683d22322e323831303922207374726f6b652d81527f6c696e656361703d22726f756e6422207374726f6b652d6c696e656a6f696e3d60208201527f22726f756e64222066696c6c3d226e6f6e65223e3c7061746820643d224d323860408201527f362e373332203333302e353134563331362e3832314c323730203330362e393360608201527f364c3238362e373332203333302e3531345a22202f3e3c7061746820643d224d60808201527f3238362e373332203331362e3832314c3238362e353236203331372e3037325660a08201527f3332392e3931334c3238362e373332203333302e3531344c3330332e3437342060c08201527f3330362e3933364c3238362e373332203331362e3832315a22202f3e3c2f673e60e0820152631e17b39f60e11b6101008201526101040190565b9695505050505050565b60008351614662818460208801612f28565b835190830190614676818360208801612f28565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600083516146e3818460208801612f28565b6201015960ed1b9083019081528351614703816003840160208801612f28565b64102132b0b960d91b60039290910191820152600801949350505050565b724d6572676520426561722e202042656172202360681b81526000825161474f816013850160208701612f28565b7f2e20204552433438383320636f6d706f7361626c65204e4654000000000000006013939091019283015250602c01919050565b7f7b2274726169745f74797065223a2022457865637574696f6e20436c69656e7481526c111610113b30b63ab2911d101160991b6020820152600087516147d181602d850160208c01612f28565b7f227d2c207b2274726169745f74797065223a2022436f6e73656e73757320436c602d918401918201527034b2b73a111610113b30b63ab2911d101160791b604d820152875161482881605e840160208c01612f28565b7f227d2c207b2274726169745f74797065223a2022457865637574696f6e20436f605e9290910191820152703637bab9111610113b30b63ab2911d101160791b607e820152865161488081608f840160208b01612f28565b6148d56148cf608f838501017f227d2c207b2274726169745f74797065223a2022436f6e73656e73757320436f8152703637bab9111610113b30b63ab2911d101160791b602082015260310190565b886133ea565b9150506148e68161227d60f01b9052565b6148fc6148f660028301876133ea565b856133ea565b9998505050505050505050565b6e2261747472696275746573223a205b60881b8152815160009061493481600f850160208701612f28565b605d60f81b600f939091019283015250601001919050565b634e487b7160e01b600052601260045260246000fd5b6000826149715761497161494c565b500490565b80820281158282048414176106e7576106e761334a565b60006001820161499f5761499f61334a565b5060010190565b6000826149b5576149b561494c565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061464690830184612f4c565b6000602082840312156149ff57600080fd5b81516123c781612ef5565b7f3c7376672069643d226d657267652d62656172222077696474683d223530302281527f206865696768743d22353030222076696577426f783d2230203020353030203560208201527f30302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f3230306040820152661817b9bb33911f60c91b606082015260008451614a9e816067850160208901612f28565b845190830190614ab5816067840160208901612f28565b8451910190614acb816067840160208801612f28565b651e17b9bb339f60d11b60679290910191820152606d0195945050505050565b60008451614afd818460208901612f28565b7f2c207b2274726169745f74797065223a20224163636573736f727900000000009083019081528451614b3781601b840160208901612f28565b6c111610113b30b63ab2911d101160991b601b92909101918201528351614b65816028840160208801612f28565b61227d60f01b60289290910191820152602a0195945050505050565b7f2c207b2274726169745f74797065223a20224261636b67726f756e64222c20228152683b30b63ab2911d101160b91b602082015260008251614bcb816029850160208701612f28565b61227d60f01b6029939091019283015250602b0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208c81805e5d5bb3d1962422ca0c8133908441dbda4e1215e4e78bb4573d5bbb2264736f6c63430008110033

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

000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff

-----Decoded View---------------
Arg [0] : consensusLayerBear_ (address): 0xfb3999711d4f309F6B71504268F79b3fD578DA6F
Arg [1] : executionLayerBear_ (address): 0x22Cd0e2680f4B9aE140E3b9AbFA3463532e290Ff

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fb3999711d4f309f6b71504268f79b3fd578da6f
Arg [1] : 00000000000000000000000022cd0e2680f4b9ae140e3b9abfa3463532e290ff


[ 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.